You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-user@ws.apache.org by Christian Ewers <CE...@de.ibm.com> on 2007/03/10 17:11:54 UTC
wsdl2java error for wsn-consumer
Hi,
I want to add the wsn-comsumer apability to the WS-ServiceGroupEntry.wsdl.
Just adding the needed elements and edit the muse.xml works, but I want to
get the wsdl file "accepted" by the wsdl2java tool to stay compatible.
When I apply wsdl2java to the wsdl I get the following error:
#####
java.lang.NullPointerException
at
org.apache.muse.util.ReflectUtils.getArrayClassFromClass(ReflectUtils.java:131)
at
org.apache.muse.tools.inspector.ResourceInspector.getJavaType(ResourceInspector.java:509)
at
org.apache.muse.tools.inspector.ResourceInspector.createJavaMethod(ResourceInspector.java:374)
at
org.apache.muse.tools.inspector.ResourceInspector.getOperations(ResourceInspector.java:562)
at
org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspector.java:880)
at
org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.inspect(SimpleAnalyzer.java:403)
at
org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.analyze(SimpleAnalyzer.java:342)
at
org.apache.muse.tools.generator.Wsdl2Java.run(Wsdl2Java.java:173)
at
org.apache.muse.tools.generator.Wsdl2Java.main(Wsdl2Java.java:265)
SEVERE: [ID = 'CodeGenFailed'] Code generation failed, see the exception
information below.
An exception was caught: null
######
I added the following imports and elements to the wsdl-file
##definitions
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
##import
<xsd:schema
elementFormDefault="qualified"
targetNamespace="http://docs.oasis-open.org/wsn/b-2">
<xsd:include schemaLocation="WS-BaseNotification-1_3.xsd" />
</xsd:schema>
##messages
<wsdl:message name="Notify">
<wsdl:part name="Notify" element="wsnt:Notify"/>
</wsdl:message>
##portType
<wsdl:operation name="Notify">
<wsdl:input
wsa:Action="http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/NotifyRequest"
message="tns:Notify"/>
</wsdl:operation>
Any ideas what's wrong?
Thanks,
Christian
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
Re: wsdl2java error for wsn-consumer
Posted by Andrew Eberbach <ae...@us.ibm.com>.
Ok that fix is in. I was updating the WSDL file with the new rmd file
name, but I was doing this *after* I had already written the WSDL file out
to disk. Sorry about that.
Thanks,
Andrew
Andrew Eberbach
Autonomic Computing
(919) 254-2645
T/L: 444-2645
aeberbac@us.ibm.com
Andrew Eberbach/Durham/IBM@IBMUS
04/26/2007 02:17 PM
Please respond to
muse-user@ws.apache.org
To
muse-user@ws.apache.org
cc
Subject
Re: wsdl2java error for wsn-consumer
Hi
Sorry for the really late reply. I fixed this in wsdlmerge but not in
wsdl2java. I will work on getting this fixed asap and get it into the
build. Sorry about this, the obvious workaround is to name the rmd the
same as the wsdl (replacing the suffix with .rmd).
Thanks,
Andrew
Andrew Eberbach
Autonomic Computing
(919) 254-2645
T/L: 444-2645
aeberbac@us.ibm.com
Bogdan Solomon <bs...@ncct.uottawa.ca>
04/18/2007 09:56 AM
Please respond to
muse-user@ws.apache.org
To
muse-user@ws.apache.org
cc
Subject
Re: wsdl2java error for wsn-consumer
Andrew Eberbach wrote:
>
> Hi,
>
> First, I fixed the rmd filename changing in the wsdl.
>
>
Hi,
I was wondering for what version this was fixed as I had the same issue
today with Muse 2.2. The wsdl2java generates a new .rmd name with the same
name as the resource, but it fails to update the porttype of the new wsdl
created.
--
View this message in context:
http://www.nabble.com/wsdl2java-error-for-wsn-consumer-tf3381426.html#a10059132
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
Re: wsdl2java error for wsn-consumer
Posted by Andrew Eberbach <ae...@us.ibm.com>.
Hi
Sorry for the really late reply. I fixed this in wsdlmerge but not in
wsdl2java. I will work on getting this fixed asap and get it into the
build. Sorry about this, the obvious workaround is to name the rmd the
same as the wsdl (replacing the suffix with .rmd).
Thanks,
Andrew
Andrew Eberbach
Autonomic Computing
(919) 254-2645
T/L: 444-2645
aeberbac@us.ibm.com
Bogdan Solomon <bs...@ncct.uottawa.ca>
04/18/2007 09:56 AM
Please respond to
muse-user@ws.apache.org
To
muse-user@ws.apache.org
cc
Subject
Re: wsdl2java error for wsn-consumer
Andrew Eberbach wrote:
>
> Hi,
>
> First, I fixed the rmd filename changing in the wsdl.
>
>
Hi,
I was wondering for what version this was fixed as I had the same issue
today with Muse 2.2. The wsdl2java generates a new .rmd name with the same
name as the resource, but it fails to update the porttype of the new wsdl
created.
--
View this message in context:
http://www.nabble.com/wsdl2java-error-for-wsn-consumer-tf3381426.html#a10059132
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
Re: wsdl2java error for wsn-consumer
Posted by Bogdan Solomon <bs...@ncct.uottawa.ca>.
Andrew Eberbach wrote:
>
> Hi,
>
> First, I fixed the rmd filename changing in the wsdl.
>
>
Hi,
I was wondering for what version this was fixed as I had the same issue
today with Muse 2.2. The wsdl2java generates a new .rmd name with the same
name as the resource, but it fails to update the porttype of the new wsdl
created.
--
View this message in context: http://www.nabble.com/wsdl2java-error-for-wsn-consumer-tf3381426.html#a10059132
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
Re: wsdl2java error for wsn-consumer
Posted by Andrew Eberbach <ae...@us.ibm.com>.
Hi,
This was a problem with the array parameter logic. The fix is checked in.
Thanks,
Andrew
Andrew Eberbach
Autonomic Computing
(919) 254-2645
T/L: 444-2645
aeberbac@us.ibm.com
Christian Ewers <CE...@de.ibm.com>
03/10/2007 11:11 AM
Please respond to
muse-user@ws.apache.org
To
muse-user@ws.apache.org
cc
Subject
wsdl2java error for wsn-consumer
Hi,
I want to add the wsn-comsumer apability to the WS-ServiceGroupEntry.wsdl.
Just adding the needed elements and edit the muse.xml works, but I want
to
get the wsdl file "accepted" by the wsdl2java tool to stay compatible.
When I apply wsdl2java to the wsdl I get the following error:
#####
java.lang.NullPointerException
at
org.apache.muse.util.ReflectUtils.getArrayClassFromClass(ReflectUtils.java:131)
at
org.apache.muse.tools.inspector.ResourceInspector.getJavaType(ResourceInspector.java:509)
at
org.apache.muse.tools.inspector.ResourceInspector.createJavaMethod(ResourceInspector.java:374)
at
org.apache.muse.tools.inspector.ResourceInspector.getOperations(ResourceInspector.java:562)
at
org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspector.java:880)
at
org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.inspect(SimpleAnalyzer.java:403)
at
org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.analyze(SimpleAnalyzer.java:342)
at
org.apache.muse.tools.generator.Wsdl2Java.run(Wsdl2Java.java:173)
at
org.apache.muse.tools.generator.Wsdl2Java.main(Wsdl2Java.java:265)
SEVERE: [ID = 'CodeGenFailed'] Code generation failed, see the exception
information below.
An exception was caught: null
######
I added the following imports and elements to the wsdl-file
##definitions
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
##import
<xsd:schema
elementFormDefault="qualified"
targetNamespace="http://docs.oasis-open.org/wsn/b-2">
<xsd:include schemaLocation="WS-BaseNotification-1_3.xsd" />
</xsd:schema>
##messages
<wsdl:message name="Notify">
<wsdl:part name="Notify" element="wsnt:Notify"/>
</wsdl:message>
##portType
<wsdl:operation name="Notify">
<wsdl:input
wsa:Action="
http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/NotifyRequest"
message="tns:Notify"/>
</wsdl:operation>
Any ideas what's wrong?
Thanks,
Christian
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org