Axis2
  1. Axis2
  2. AXIS2-181

java.lang.ExceptionInInitializerError is thrown by the codegen'ed MessageReceiver

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.92
    • Component/s: wsdl
    • Labels:
      None

      Description

      The codegen'ed MessageReceiver is throwing an java.lang.ExceptionInInitializerError

      Will attatch the WSDL that generated the problem

      1. ASF.LICENSE.NOT.GRANTED--ping.wsdl
        5 kB
        Ruchith Udayanga Fernando
      2. ASF.LICENSE.NOT.GRANTED--SimpleClient.java
        1 kB
        Ruchith Udayanga Fernando

        Activity

        Hide
        Ruchith Udayanga Fernando added a comment -

        wsdl file attached

        Show
        Ruchith Udayanga Fernando added a comment - wsdl file attached
        Hide
        Davanum Srinivas added a comment -

        how do i recreate the problem?

        thanks,
        dims

        Show
        Davanum Srinivas added a comment - how do i recreate the problem? thanks, dims
        Hide
        Ruchith Udayanga Fernando added a comment -

        You can codegen using the attached wsdl and try

        This automatically happens when you do 'maven jar' in the security module (in axis2/java/modules/security) - Ping.aar in the 'security/target' directory.

        You will have to use a client program to call the service, will attatch the file.

        Show
        Ruchith Udayanga Fernando added a comment - You can codegen using the attached wsdl and try This automatically happens when you do 'maven jar' in the security module (in axis2/java/modules/security) - Ping.aar in the 'security/target' directory. You will have to use a client program to call the service, will attatch the file.
        Hide
        Ruchith Udayanga Fernando added a comment -

        You will have to have the compiled codegen'ed stuff in the classpath to run this.

        Show
        Ruchith Udayanga Fernando added a comment - You will have to have the compiled codegen'ed stuff in the classpath to run this.
        Hide
        Ajith Harshana Ranabahu added a comment -

        This is not due to any code gen error but the build script. For the service archive all the files generated by the code generator is required. for XMLBeans special files with extension xsb are generated and absolutely required for the data binder. The problem was that the maven script failed to add these to the archive

        Show
        Ajith Harshana Ranabahu added a comment - This is not due to any code gen error but the build script. For the service archive all the files generated by the code generator is required. for XMLBeans special files with extension xsb are generated and absolutely required for the data binder. The problem was that the maven script failed to add these to the archive

          People

          • Assignee:
            Ajith Harshana Ranabahu
            Reporter:
            Ruchith Udayanga Fernando
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development