You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Peter Danielsen (JIRA)" <ji...@apache.org> on 2007/08/23 17:00:35 UTC
[jira] Created: (AXIS2-3148) Endpoint Extension handling bug in
WSDL20ToAxisServiceBuilder
Endpoint Extension handling bug in WSDL20ToAxisServiceBuilder
-------------------------------------------------------------
Key: AXIS2-3148
URL: https://issues.apache.org/jira/browse/AXIS2-3148
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: kernel
Affects Versions: 1.3
Environment: XP, JDK 1.5
Reporter: Peter Danielsen
I encountered a NullPointerException when trying to run WSDL2Java on a WSDL2 file that uses the HTTP binding. The cause of the exception is in WSDL20ToAxisServiceBuilder.processEndpoint where it's trying to use SOAP endpoint extensions regardless of which binding is in use. It should first check to see which binding is being used and then use binding-specific code to deal with the endpoint extensions.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-3148) Endpoint Extension handling bug in
WSDL20ToAxisServiceBuilder
Posted by "Sean Sullivan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543667 ]
Sean Sullivan commented on AXIS2-3148:
--------------------------------------
I am using Axis 2 version 1.3 and Sun JDK 1.5.0_13
I have a WSDL2 file that uses the HTTP binding. When I run wsdl2java, the program fails with a NullPointerException.
Is there a workaround?
This is the stack trace:
c:\axis2-1.3\bin\wsdl2java -ss -wv 2.0 -p com.mycorp.foo -o src -uri .\webservices\TmsServices.wsdl
Using AXIS2_HOME: c:\axis2-1.3
Using JAVA_HOME: C:\Progra~1\Java\jdk1.5.0_13
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException
: Error parsing WSDL
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:147)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.AxisFault
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateServi
ce(WSDL20ToAxisServiceBuilder.java:236)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:101)
... 2 more
Caused by: java.lang.NullPointerException
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.createAxisMes
sage(WSDL20ToAxisServiceBuilder.java:976)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateOpera
tions(WSDL20ToAxisServiceBuilder.java:926)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processInterf
ace(WSDL20ToAxisServiceBuilder.java:849)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processServic
e(WSDL20ToAxisServiceBuilder.java:306)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateServi
ce(WSDL20ToAxisServiceBuilder.java:233)
... 3 more
> Endpoint Extension handling bug in WSDL20ToAxisServiceBuilder
> -------------------------------------------------------------
>
> Key: AXIS2-3148
> URL: https://issues.apache.org/jira/browse/AXIS2-3148
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.3
> Environment: XP, JDK 1.5
> Reporter: Peter Danielsen
> Attachments: patch.txt, Reserve.wsdl
>
>
> I encountered a NullPointerException when trying to run WSDL2Java on a WSDL2 file that uses the HTTP binding. The cause of the exception is in WSDL20ToAxisServiceBuilder.processEndpoint where it's trying to use SOAP endpoint extensions regardless of which binding is in use. It should first check to see which binding is being used and then use binding-specific code to deal with the endpoint extensions.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-3148) Endpoint Extension handling bug in
WSDL20ToAxisServiceBuilder
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS2-3148:
------------------------------------
Assignee: Keith Godwin Chapman
> Endpoint Extension handling bug in WSDL20ToAxisServiceBuilder
> -------------------------------------------------------------
>
> Key: AXIS2-3148
> URL: https://issues.apache.org/jira/browse/AXIS2-3148
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.3
> Environment: XP, JDK 1.5
> Reporter: Peter Danielsen
> Assignee: Keith Godwin Chapman
> Attachments: patch.txt, Reserve.wsdl
>
>
> I encountered a NullPointerException when trying to run WSDL2Java on a WSDL2 file that uses the HTTP binding. The cause of the exception is in WSDL20ToAxisServiceBuilder.processEndpoint where it's trying to use SOAP endpoint extensions regardless of which binding is in use. It should first check to see which binding is being used and then use binding-specific code to deal with the endpoint extensions.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-3148) Endpoint Extension handling bug in
WSDL20ToAxisServiceBuilder
Posted by "Peter Danielsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Danielsen updated AXIS2-3148:
-----------------------------------
Attachment: patch.txt
Reserve.wsdl
I'm attaching the WSDL2 file I used to produce the problem. It's based on what's in the WSDL2 Primer. I'm also attaching a patch file that modifies WSDL20ToAxisServiceBuilder's processEndpoint method to call a binding-specific method to handle the extensions, either processSOAPBindingEndpointExtensions(Endpoint, AxisEndpoint) or processHTTPBindingEndpointExtensions(Endpoint, AxisEndpoint).
Ideally, I think it would be more modular to move the binding-specific processing (for both Endpoint and Binding) out of this class to separate classes for SOAP and HTTP and have them implement a common interface with one method for endpoint extensions and one for binding extensions. This class might then look up the binding in a property file to determine which class to use and invoke the appropriate method via the interface.
> Endpoint Extension handling bug in WSDL20ToAxisServiceBuilder
> -------------------------------------------------------------
>
> Key: AXIS2-3148
> URL: https://issues.apache.org/jira/browse/AXIS2-3148
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.3
> Environment: XP, JDK 1.5
> Reporter: Peter Danielsen
> Attachments: patch.txt, Reserve.wsdl
>
>
> I encountered a NullPointerException when trying to run WSDL2Java on a WSDL2 file that uses the HTTP binding. The cause of the exception is in WSDL20ToAxisServiceBuilder.processEndpoint where it's trying to use SOAP endpoint extensions regardless of which binding is in use. It should first check to see which binding is being used and then use binding-specific code to deal with the endpoint extensions.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS2-3148) Endpoint Extension handling bug in
WSDL20ToAxisServiceBuilder
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas resolved AXIS2-3148.
-------------------------------------
Resolution: Fixed
> Endpoint Extension handling bug in WSDL20ToAxisServiceBuilder
> -------------------------------------------------------------
>
> Key: AXIS2-3148
> URL: https://issues.apache.org/jira/browse/AXIS2-3148
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.3
> Environment: XP, JDK 1.5
> Reporter: Peter Danielsen
> Assignee: Keith Godwin Chapman
> Attachments: patch.txt, Reserve.wsdl
>
>
> I encountered a NullPointerException when trying to run WSDL2Java on a WSDL2 file that uses the HTTP binding. The cause of the exception is in WSDL20ToAxisServiceBuilder.processEndpoint where it's trying to use SOAP endpoint extensions regardless of which binding is in use. It should first check to see which binding is being used and then use binding-specific code to deal with the endpoint extensions.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-3148) Endpoint Extension handling bug in
WSDL20ToAxisServiceBuilder
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578114#action_12578114 ]
Davanum Srinivas commented on AXIS2-3148:
-----------------------------------------
Keith,
I checked in a revision 636600. Please cross check.
thanks,
dims
> Endpoint Extension handling bug in WSDL20ToAxisServiceBuilder
> -------------------------------------------------------------
>
> Key: AXIS2-3148
> URL: https://issues.apache.org/jira/browse/AXIS2-3148
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.3
> Environment: XP, JDK 1.5
> Reporter: Peter Danielsen
> Assignee: Keith Godwin Chapman
> Attachments: patch.txt, Reserve.wsdl
>
>
> I encountered a NullPointerException when trying to run WSDL2Java on a WSDL2 file that uses the HTTP binding. The cause of the exception is in WSDL20ToAxisServiceBuilder.processEndpoint where it's trying to use SOAP endpoint extensions regardless of which binding is in use. It should first check to see which binding is being used and then use binding-specific code to deal with the endpoint extensions.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org