Skip to main content

JXTA-SOAP problem

5 replies [Last post]
kultcrowd
Offline
Joined: 2007-09-05
Points: 0

Hello all,

I am testing SOAP-JXTA package (https://soap.dev.java.net/). I compile everything using ant. The building process runs ok, but when I try to run one of the three examples provided, I get the following error:

Buildfile: /Users/fran/Documents/workspace/trunk/binding/java/examples/basicExample/HelloClient/build.xml
run_client:
[java] Starting ConsumerPeer ....
[java] Exception in thread "main" java.lang.NoSuchMethodError: net.jxta.document.StructuredDocumentUtils.copyElements(Lnet/jxta/document/StructuredDocument;Lnet/jxta/document/Element;Lnet/jxta/document/Element;)Lnet/jxta/document/Element;
[java] at net.jxta.platform.NetworkConfigurator.getParmDoc(NetworkConfigurator.java:1304)
[java] at net.jxta.platform.NetworkConfigurator.getPlatformConfig(NetworkConfigurator.java:1453)
[java] at net.jxta.platform.NetworkConfigurator.save(NetworkConfigurator.java:1272)
[java] at HelloClient.start(HelloClient.java:135)
[java] at HelloClient.main(HelloClient.java:91)
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 1 second

I don't know which is the problem. Any ideas???

Thanks in advance

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
stillwater
Offline
Joined: 2007-08-19
Points: 0

Hi you guys
where have you got the source code of JXTA-SOAP project? I mean not the binary code but java code. I am interested in Web Service invocation on smart phone with JXME and wonder whether I could get some hint from the project.

Thanks

ardarico
Offline
Joined: 2007-06-12
Points: 0

Hi,

I am the project owner.

In a couple of days I will look at the source code in order to fix bugs.

I know that currently only the basic example works, since the other examples are not JXTA 2.4.1-compliant.

The JXME version has one big issue: axis does not work on PDAs, so I have to move to ksoap (this upgrade will be managed by another project contributor).

Stay tuned!

Michele

ilmax
Offline
Joined: 2007-09-24
Points: 0

I have the some error. Have you found a solution?

heikopaulheim
Offline
Joined: 2007-10-08
Points: 0

I had the same problem. Removed the files jxme-cdc.jar and jxta-tools.jar (from jxme folder) from the build path, and it disappeared.

kultcrowd
Offline
Joined: 2007-09-05
Points: 0

Thanks!! It solved the problem

However, I am no able to make it work yet. I am running the server and client of the first example on the same computer. When the client tries to consume the service, I get the following error:

# Create ServiceDescriptor for 'HelloService' from msadv
--------------------------------------------------------
--- Service Descriptor ---
Description: The simple hello service example
SpecURI: jxta:/a.very.unique.spec/uri
Classname: HelloService
Name: HelloService
PeerGroupID: urn:jxta:jxta-NetGroup
PeerGroupName: NetPeerGroup
PeerGroupDescription: default Net Peer Group
Timeout: 5000
Creator: Distributed Systems Group
Version: 0.2
Secure: false
Policy Type: unset
--------------------------
# Deploy SOAPTransport
Deploying SOAP transport...
Deploying SOAP transport...done
# Write Service WSDL to file
# Creating Call object
# setOperation: "SayHello"
# Trying to invoke SOAP service...
java.lang.NullPointerException
at net.jxta.soap.transport.JXTASOAPTransportSender.invoke(JXTASOAPTransportSender.java:75)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at src.HelloClient.interactWithService(HelloClient.java:656)
at src.HelloClient.main(HelloClient.java:151)
Error invoking SOAP service!
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:
at net.jxta.soap.transport.JXTASOAPTransportSender.invoke(JXTASOAPTransportSender.java:146)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at src.HelloClient.interactWithService(HelloClient.java:656)
at src.HelloClient.main(HelloClient.java:151)

{http://xml.apache.org/axis/}hostname:Fran.local

at net.jxta.soap.transport.JXTASOAPTransportSender.invoke(JXTASOAPTransportSender.java:146)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at src.HelloClient.interactWithService(HelloClient.java:656)
at src.HelloClient.main(HelloClient.java:151)

Meanwhile the server doesn't shows any message

[java] Starting ProviderPeer ....
[java] Node PeerID :uuid-59616261646162614E50472050325033A62C31C458B841FC937FA908F951FEA503
[java] Peer started and correctly joined the NetPeerGroup urn:jxta:jxta-NetGroup
[java] My PeerID: urn:jxta:uuid-59616261646162614E50472050325033A62C31C458B841FC937FA908F951FEA503
[java] Create new SOAPService
[java] -------------------------------------------
[java] 1 Creating new SOAPService instance...
[java] 2 Creating ServiceDescriptor...
[java] --- Service Descriptor ---
[java] Description: The simple hello service example
[java] SpecURI: jxta:/a.very.unique.spec/uri
[java] Classname: HelloService
[java] Name: HelloService
[java] PeerGroupID: urn:jxta:jxta-NetGroup
[java] PeerGroupName: JXTA NetPeerGroup
[java] PeerGroupDescription: JXTA NetPeerGroup
[java] Timeout: 10000
[java] Creator: Distributed Systems Group
[java] Version: 0.2
[java] Secure: false
[java] Policy Type: unset
[java] --------------------------
[java] readFile64: Received request for: HelloService.wsdl
[java] Size of HelloService.wsdl is 1997
[java] Initialize the service...
[java] Setting security policy... NOT SET
[java] Saving msadv param fields...
[java] Starting new ServiceThread...
[java] Waiting for calls...

What's the problem?? Thanks in advance