Skip to Content.
Sympa Menu

perfsonar-dev - FW: [pS-dev] [Fwd: problem with SOAPClient]

Subject: perfsonar development work

List archive

FW: [pS-dev] [Fwd: problem with SOAPClient]


Chronological Thread 
  • From: Michael Michalis <>
  • To: Maciej Glowiak <>
  • Cc:
  • Subject: FW: [pS-dev] [Fwd: problem with SOAPClient]
  • Date: Thu, 09 Nov 2006 10:16:50 +0200



-----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,
>
> 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
>
org.apache.axis.message.SOAPFaultBuilder.createFault(_SOAPFaultBuilder.java:
222_)
>
>
> at
>
org.apache.axis.message.SOAPFaultBuilder.endElement(_SOAPFaultBuilder.java:1
29_)
>
>
> at
>
org.apache.axis.encoding.DeserializationContext.endElement(_DeserializationC
ontext.java:1087_)
>
>
> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
>
> at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
> Source)
>
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown
>
> Source)
>
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
>
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
>
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
>
> at
>
org.apache.axis.encoding.DeserializationContext.parse(_DeserializationContex
t.java:227_)
>
>
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(_SOAPPart.java:696_)
>
> at org.apache.axis.Message.getSOAPEnvelope(_Message.java:435_)
>
> at
>
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(_MustUnderstandCh
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/ ||
====================================================================




Archive powered by MHonArc 2.6.16.

Top of Page