Hi,
I'm trying to extend the wsn-producer example by adding the WS-Resource to
a remote ServiceGroup.
For doing so, I added the wsrf-sg:Content property to the existing resource
properties, extended the MyCapabilityImpl.java class by adding the
getContent(), setContent(Element e) methods and I added the WssgConstants.
CONTENT_QNAMEto the _PROPERTIESarray.
Property in the WSDL-File:
<xsd:element ref="wsrf-sg:Content" minOccurs="0" maxOccurs="1"/>
I added the following test-content to the WsResource.rmd file (also added
the wsrf-sg namespace)
<Property name="wsrf-sg:Content" modifiability="read-write" mutability=
"mutable">
<InitialValues>
<wsrf-sg:Content>
<wsrf-sg:RPDoc>
<myns:ServerName>TestServerName</myns:ServerName>
</wsrf-sg:RPDoc>
</wsrf-sg:Content>
</InitialValues>
</Property>
Now I'm getting the following exception when initializing the resource by
using the WsnTestclient. I didn't add any ServiceGroup related code so far.
java.lang.NullPointerException
at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
at
org.apache.muse.ws.notification.properties.ResourcePropertyChangeEvent.toXML(ResourcePropertyChangeEvent.java:97)
at
org.apache.muse.ws.notification.properties.ResourcePropertyChangeEvent.toXML(ResourcePropertyChangeEvent.java:80)
at
org.apache.muse.ws.notification.impl.SimpleNotificationProducer.publish(SimpleNotificationProducer.java:452)
at
org.apache.muse.ws.notification.properties.ChangeNotificationListener.propertyChanged(ChangeNotificationListener.java:99)
at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCollection.changeCompleted(SimpleResourcePropertyCollection.java:337)
at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCollection.insertResourceProperty(SimpleResourcePropertyCollection.java:718)
at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCollection.insertResourceProperty(SimpleResourcePropertyCollection.java:681)
at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCollection.addInitialValues(SimpleResourcePropertyCollection.java:169)
at
org.apache.muse.ws.resource.properties.impl.SimpleResourcePropertyCollection.applyMetadata(SimpleResourcePropertyCollection.java:297)
at
org.apache.muse.ws.resource.impl.SimpleWsResource.initialize(SimpleWsResource.java:215)
at
org.apache.muse.core.routing.RouterFilePersistence.reloadResource(RouterFilePersistence.java:139)
at
org.apache.muse.core.AbstractFilePersistence.reloadResources(AbstractFilePersistence.java:393)
at
org.apache.muse.core.AbstractFilePersistence.reload(AbstractFilePersistence.java:334)
at
org.apache.muse.core.routing.SimpleResourceRouter.initialize(SimpleResourceRouter.java:248)
at
org.apache.muse.core.platform.AbstractIsolationLayer.initialize(AbstractIsolationLayer.java:176)
at
org.apache.muse.core.platform.axis2.AxisIsolationLayer.setOperationContext(AxisIsolationLayer.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.axis2.engine.DependencyManager.configureBusinessLogicProvider(DependencyManager.java:70)
at
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:79)
at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:504)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:324)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:234)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
What am I doing wrong?
Thx,
Christian
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]