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 "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2005/12/18 04:49:35 UTC
[jira] Created: (AXIS2-342) ADB generated code fails
ADB generated code fails
------------------------
Key: AXIS2-342
URL: http://issues.apache.org/jira/browse/AXIS2-342
Project: Apache Axis 2.0 (Axis2)
Type: Bug
Components: databinding
Reporter: Davanum Srinivas
Assigned to: Ajith Harshana Ranabahu
Please run WSDL2Java with ADB databinding on the axis2/modules/samples/wsdl/perf.wsdl:
(java org.apache.axis2.wsdl.WSDL2Java -o work -s -p samples.perf -d adb -t -ss -sd -uri C:\APACHE\axis2\modules\samples\wsdl\perf.wsdl)
Problem #1: Generated test client does not compile
Problem #2: If i fix the test client and run the test it fails with a NPE:
org.apache.axis2.om.OMException: java.lang.NullPointerException
at org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.next(StAXOMBuilder.java:280)
at org.apache.axis2.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:110)
at org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:290)
at samples.perf.databinding.PerfPortTypehandleStringArrayDatabindingSupporter.toOM(PerfPortTypehandleStringArrayDatabindingSupporter.java:30)
at samples.perf.PerfPortTypeStub.handleStringArray(PerfPortTypeStub.java:77)
at samples.perf.PerfPortTypeTest.testhandleStringArray(PerfPortTypeTest.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
Caused by: java.lang.NullPointerException
at org.apache.axis2.databinding.utils.ADBPullParser.handleNamespacesAndAttributes(ADBPullParser.java:342)
at org.apache.axis2.databinding.utils.ADBPullParser.next(ADBPullParser.java:248)
at org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.next(StAXOMBuilder.java:197)
... 28 more
Thanks,
dims
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (AXIS2-342) ADB generated code fails
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-342?page=all ]
Davanum Srinivas resolved AXIS2-342:
------------------------------------
Resolution: Fixed
Fixed now.
> ADB generated code fails
> ------------------------
>
> Key: AXIS2-342
> URL: http://issues.apache.org/jira/browse/AXIS2-342
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: databinding
> Reporter: Davanum Srinivas
> Assignee: Ajith Harshana Ranabahu
>
> Please run WSDL2Java with ADB databinding on the axis2/modules/samples/wsdl/perf.wsdl:
> (java org.apache.axis2.wsdl.WSDL2Java -o work -s -p samples.perf -d adb -t -ss -sd -uri C:\APACHE\axis2\modules\samples\wsdl\perf.wsdl)
> Problem #1: Generated test client does not compile
> Problem #2: If i fix the test client and run the test it fails with a NPE:
> org.apache.axis2.om.OMException: java.lang.NullPointerException
> at org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.next(StAXOMBuilder.java:280)
> at org.apache.axis2.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:110)
> at org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:290)
> at samples.perf.databinding.PerfPortTypehandleStringArrayDatabindingSupporter.toOM(PerfPortTypehandleStringArrayDatabindingSupporter.java:30)
> at samples.perf.PerfPortTypeStub.handleStringArray(PerfPortTypeStub.java:77)
> at samples.perf.PerfPortTypeTest.testhandleStringArray(PerfPortTypeTest.java:39)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
> Caused by: java.lang.NullPointerException
> at org.apache.axis2.databinding.utils.ADBPullParser.handleNamespacesAndAttributes(ADBPullParser.java:342)
> at org.apache.axis2.databinding.utils.ADBPullParser.next(ADBPullParser.java:248)
> at org.apache.axis2.om.impl.llom.builder.StAXOMBuilder.next(StAXOMBuilder.java:197)
> ... 28 more
> Thanks,
> dims
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira