perfsonar-dev - Re: FW: [pS-dev] [Fwd: problem with SOAPClient]
Subject: perfsonar development work
List archive
- From: Maciej Glowiak <>
- To: Michael Michalis <>
- Cc:
- Subject: Re: FW: [pS-dev] [Fwd: problem with SOAPClient]
- Date: Thu, 09 Nov 2006 13:59:49 +0100
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA CXBIWXMAAEU1AABFNQF8gVf5AAAAB3RJTUUH1QYQDjo6uEWvwgAAAM5JREFUGNNN0LFqAkEUheGj KRZsfATrvENgYyH4APabxwgWGUUQC99BsNDCInUq7VImbbDZ0kayxBXMuN7jvTuKVh//mZlmQKZ1 EhQ8GAVgZECspEBdWQHRjR70KlgFKkoUaCw3ijSYQ4n5HfBK4a4jDcdDQPol/80Sr9BxZOOL4Fmr Jq8VBx7eopaSPvWGOm67fqol3j1q0XNs7Nk2cs6MU6gPNzf+ZGKQX4Ek8H6rAnFZnXB2vJxJcv8g C2P+WzL4tD+Txc4KydrIkh+eAdo01QbjQ84vAAAAAElFTkSuQmCC
- Organization: Poznan Supercomputing and Networking Center
Michael,
Bug should be corrected. Null Pointer Exception occured if key was null (because of trim operation on null object reference).
Maciej
Michael Michalis wrote:
-----Original Message-----
From: Michael Michalis [mailto:] Sent: Thursday, November 09, 2006 9:31 AM
To: Maciej Glowiak
Cc:
Subject: RE: [pS-dev] [Fwd: problem with SOAPClient]
I've run the tests directly to the service(without tomcat as stated in the
installation manual ) and it seems that there is a
java.lang.nullPointerException at
org.perfsonar.service.lookupService.xmlType.LSAction.getKeyFromMetadata. So does this mean that the service does not recognise the key(accessPoint)
in the request?
To add some infrormation this is the output of the sonar.log file after I
submit a Register request
INFO: RequestHandler: Service received a request
----------------------
DEBUG: RequestHandler: Calling on parser to parse the request
----------------------
DEBUG: RequestHandler: Message object constructed from request. Request is
of type: LSRegisterRequest
----------------------
DEBUG: MessageHandlerFactory: classname asked for is
org.perfsonar.commons.messages.LSRegisterRequest
----------------------
DEBUG: LSRegisterRequest: MessageHandler created
----------------------
DEBUG: XmlTypeLSServiceEngine: started... ----------------------
DEBUG: RequestHandler: Calling on MessageHandler [class
org.perfsonar.commons.messages.LSRegisterRequest] to satisfy request
----------------------
DEBUG: XmlTypeLSServiceEngine: takeAction for action [LS_REGISTER]
----------------------
DEBUG: XmlTypeLSServiceEngine: action valid for this ServiceEngine, serving
----------------------
DEBUG: ExistDbFactory: Creating XML RPC Data Repository:
(xmldb:exist://localhost:21/exist/xmlrpc/db/ls, lookupservice, sonar)
----------------------
DEBUG: XmlDbDataRepository: created
----------------------
DEBUG: ExistDbFactory: Creating XML RPC Storage Manager
----------------------
DEBUG: ExistDbXmlrpcXmlStorageManager: initStorage with data repository
----------------------
DEBUG: LSRegisterAction: service.ls.lookup_info_timeout=true
----------------------
DEBUG: LSRegisterAction: LS register - action REGISTER started
----------------------
So it seems the service receives the request , the request is recognised as
LSRegister and the Messagehandler is created so does the LSService engine.
Then something goes terribly wrong.
There is nothing about this in the other logs. I hope this will help to
determine the problem
-Michalis
-----Original Message-----
From: Michael Michalis
[mailto:]
Sent: Thursday, November 09, 2006 8:50 AM
To:
Subject: FW: [pS-dev] [Fwd: problem with SOAPClient]
-----Original Message-----
From: Michael Michalis [mailto:] Sent: Thursday, November 09, 2006 8:50 AM
To: 'Maciej Glowiak'
Subject: RE: [pS-dev] [Fwd: problem with SOAPClient]
Hi Maciej,
It appears that the service fails only with the LSRegister request. For the
other types of request even for LSUpdate it works just fine. Were any
changes involving the handler of the Register request or maybe some schema
changes?
-Michalis
-----Original Message-----
From: Maciej Glowiak [mailto:] Sent: Wednesday, November 08, 2006 1:54 PM
To: Perfsonar Development List; Michael Michalis
Subject: Re: [pS-dev] [Fwd: problem with SOAPClient]
By the way, the server log could be useful to diagnose what happened with the server.
If you set up the server I can test some requests with my client.
Let me know if so. My yahoo_id and skype_id are "maciej_psnc".
Maciej
Maciej Glowiak wrote:
Michael,org.apache.axis.message.SOAPFaultBuilder.createFault(_SOAPFaultBuilder.java:
Please post such e-mails on the mailing list. Perhaps other participants had similar problems and they will be able to help you. (or just send CC to the list)
I don't know what the problem may be. I tested SOAPClient today and it worked fine. I think the problem is with your tomcat installation.
Maybe you didn't set proper properties in catalina.properties file? Then the LS seems to be deployed properly but in case of coming request it may return null ptr ex.
Maybe some other opinions?
Maciej
-------- Original Message --------
Subject: problem with SOAPClient
Date: Wed, 08 Nov 2006 13:13:33 +0200
From: Michael Michalis
<>
To: Maciej Glowiak
<>
Hi Maciej,
I've downloaded from svn the entire perfsonar directory and rebuilt it
using the instructions in the wiki.
I've validaded axis and the page of the LookupService is shown on
firefox as normal. I've tryied to test the installation using the
included tests ( ls-run-client-register ) but I get an exception saying
connection was refused. Then I tried to communicate with the service
from another pc via the SOAPClient and I got the following exception:
End point: http://194.42.2.67:80/axis/services/LookupService
Request file: C:\LSRegisterRequest.xml
Response file: C:\response.xml
SOAPClient.makeRequest: General exception encountered by client
AxisFault
faultCode:
{_http://schemas.xmlsoap.org/soap/envelope/}Server.userException_
faultSubcode:
faultString: _java.lang.NullPointerException_
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:localhost.localdomain
_java.lang.NullPointerException_
at
222_)org.apache.axis.message.SOAPFaultBuilder.endElement(_SOAPFaultBuilder.java:1
at
29_)org.apache.axis.encoding.DeserializationContext.endElement(_DeserializationC
at
ontext.java:1087_)org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
her.dispatch(UnknownSource)Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
at org.apache.xerces.parsers.XML11Configuration.parse(UnknownSource)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)org.apache.axis.encoding.DeserializationContext.parse(_DeserializationContex
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at
t.java:227_)org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(_MustUnderstandCh
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(_SOAPPart.java:696_)
at org.apache.axis.Message.getSOAPEnvelope(_Message.java:435_)
at
ecker.java:62_)
at org.apache.axis.client.AxisClient.invoke(_AxisClient.java:206_)
at org.apache.axis.client.Call.invokeEngine(_Call.java:2784_)
at org.apache.axis.client.Call.invoke(_Call.java:2767_)
at org.apache.axis.client.Call.invoke(_Call.java:1792_)
at ls.common.SOAPClient.makeRequest(_SOAPClient.java:98_)
at ls.common.SOAPClient.main(_SOAPClient.java:158_)
Client exiting
It seems the server returned null or something. Do you have any idea why
this problem is happening. Iwould very much appreciate any information
about this issue.
Best Regards,
Michalis Michael
--
--------------------------------------------------------------------
| Maciej Glowiak Network Research and Development ||
|
Poznan Supercomputing and Networking Center ||
| (+48 61) 858 2024 http://monstera.man.poznan.pl/ ||
====================================================================
- FW: [pS-dev] [Fwd: problem with SOAPClient], Michael Michalis, 11/09/2006
- RE: [pS-dev] [Fwd: problem with SOAPClient], Michael Michalis, 11/09/2006
- <Possible follow-up(s)>
- FW: [pS-dev] [Fwd: problem with SOAPClient], Michael Michalis, 11/09/2006
- Re: FW: [pS-dev] [Fwd: problem with SOAPClient], Maciej Glowiak, 11/09/2006
Archive powered by MHonArc 2.6.16.