Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 2 of 2

Thread: Error calling GetInstances operation from CMDB WS from ServiceCenter

  1. #1
    Junior Member
    Join Date
    Nov 2008
    Posts
    11

    Default Error calling GetInstances operation from CMDB WS from ServiceCenter

    Hello all,

    I'm having a problem invoking the operation GetInstances from the CMDB ws from ServiceCenter.
    In that operation it appears a field called attributes of the type ArrayOf_String:

    this.attributes = new ArrayOf_String();
    this.$$elementChildren.push( "attributes" );

    In my sript library I have created a new array as follows:

    var atributos = new Array();
    atributos.push("Name");
    baseElement.attributes = atributos;

    When I invoke the webservice it appears the following error in the catalina.out file:

    INFO: com.systinet.wasp.server.adaptor.JavaInvoker - Unexpected non-whitespace chars 4e(N) 61(a) 6d(m) 65(e)
    EXCEPTION: Unexpected non-whitespace chars 4e(N) 61(a) 6d(m) 65(e)
    org.idoox.xmlrpc.MessageProcessingException: Unexpected non-whitespace chars 4e(N) 61(a) 6d(m) 65(e)
    at com.idoox.wasp.serialization.SerializationHelper.n extNonWhitespace(SerializationHelper.java:855)
    at com.idoox.wasp.serialization.xml.XMLReflectionDese rializer.deserializeArray(XMLReflectionDeserialize r.java:738)
    at com.idoox.wasp.serialization.xml.XMLReflectionDese rializer.deserializeStatic(XMLReflectionDeserializ er.java:132)
    at com.idoox.wasp.serialization.xml.XMLReflectionDese rializer.deserialize(XMLReflectionDeserializer.jav a:67)
    at com.idoox.wasp.serialization.xml.XMLBasicConstruct Deserializer.deserialize(XMLBasicConstructDeserial izer.java:169)
    at com.idoox.wasp.serialization.xml.XMLSimpleDeserial izer.deserialize(XMLSimpleDeserializer.java:139)
    at com.idoox.wasp.serialization.xml.XMLReflectionDese rializer.deserializeField(XMLReflectionDeserialize r.java:667)
    at com.idoox.wasp.serialization.xml.XMLReflectionDese rializer.deserializeStructure(XMLReflectionDeseria lizer.java:600)
    at com.idoox.wasp.serialization.xml.XMLReflectionDese rializer.deserializeStatic(XMLReflectionDeserializ er.java:136)
    at com.idoox.wasp.serialization.xml.XMLReflectionDese rializer.deserialize(XMLReflectionDeserializer.jav a:67)
    at com.idoox.wasp.serialization.xml.XMLBasicConstruct Deserializer.deserialize(XMLBasicConstructDeserial izer.java:169)
    at com.idoox.wasp.serialization.xml.XMLSimpleDeserial izer.deserialize(XMLSimpleDeserializer.java:139)
    at com.idoox.wasp.serialization.SerializationHelper.d eserializeElement(SerializationHelper.java:437)
    at com.idoox.wasp.serialization.WaspSerializationHelp er.deserialize(WaspSerializationHelper.java:224)
    at com.systinet.wasp.server.adaptor.JavaInvoker.fillC allParamsXml(JavaInvoker.java:1202)
    at com.systinet.wasp.server.adaptor.JavaInvoker.begin Invoke(JavaInvoker.java:478)
    at com.idoox.wasp.server.adaptor.JavaAdaptorImpl.begi nInvoke(JavaAdaptorImpl.java:63)
    at com.idoox.wasp.server.AdaptorTemplate.javaInvocati on(AdaptorTemplate.java:510)
    at com.idoox.wasp.server.AdaptorTemplate.doDispatch(A daptorTemplate.java:395)
    at com.idoox.wasp.server.AdaptorTemplate.dispatch(Ada ptorTemplate.java:328)
    at com.idoox.wasp.server.ServiceConnector.dispatch(Se rviceConnector.java:378)
    at com.systinet.wasp.ServiceManagerImpl.dispatchReque st(ServiceManagerImpl.java:625)
    at com.systinet.wasp.ServiceManagerImpl.dispatch(Serv iceManagerImpl.java:461)
    at com.systinet.wasp.ServiceManagerImpl$DispatcherCon nHandler.handlePost(ServiceManagerImpl.java:2525)
    at com.systinet.transport.servlet.server.Servlet.doPo st(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:174)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:174)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:874)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Thread.java:595)


    For some reason the ws don't like the name of that attribute. I have tried with other attributes, but I get the same error with all of them.

    However, I have another ScriptLibrary calling the GraphQuery function instead the GetInstances and that call has several arrays of strings in the
    input SOAP message and I'm filling that fields in the same way I do with the GetInstances operation and that operation don't inform of that error.

    Has anyone get any idea where is the problem?

    Regards,

    Jose Carlos

  2. #2
    Junior Member
    Join Date
    Nov 2008
    Posts
    11

    Default

    Finally I found the error: the problem was in the node attributes has an items node nested so I need to fill each of the items with the line atributos.items.push("Name"); instead atributos.push("Name");

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts