Clarity

Expand all | Collapse all

Soap invoke error

navzjoshi00

navzjoshi00Nov 25, 2014 05:08 AM

  • 1.  Soap invoke error

    Posted Nov 19, 2014 06:06 AM

    Hi All,

     

    I am frequently getting the error "Failed to send a SOAP message generated to server name ". Status code 500: Internal server error at com.niku.union.gel.tags

    Without changing the code the process works some of the time and sometimes i get the above error. I am not sure what is happening.

    Please help me with this.

     

     

     

     

     

     

    Thanks

    Nipun



  • 2.  Re: Soap invoke error

     
    Posted Nov 21, 2014 02:33 PM

    Hi All - Has anyone seen this who might be able to help Nipun out? Thanks! Chris

    Nipun R wrote:

     

    Hi All,

     

    I am frequently getting the error "Failed to send a SOAP message generated to server name ". Status code 500: Internal server error at com.niku.union.gel.tags

    Without changing the code the process works some of the time and sometimes i get the above error. I am not sure what is happening.

    Please help me with this.

     

     

     

     

     

     

    Thanks

    Nipun



  • 3.  Re: Soap invoke error

    Posted Nov 23, 2014 10:47 PM

    Hi Nipun,

     

    Provide with the whole big error which you are getting so that error can be analyzed into.

     

    Thanks & Regards

    Viraj Khara



  • 4.  Re: Soap invoke error

    Posted Nov 24, 2014 12:27 AM

    Please check the get tags and the library that you use.

     

    Also, as Viraj has mentioned, "Provide with the whole big error which you are getting so that error can be analyzed into."

     

    NJ



  • 5.  Re: Soap invoke error

    Posted Nov 24, 2014 12:29 AM


  • 6.  Re: Soap invoke error

    Posted Nov 24, 2014 12:30 AM


  • 7.  Re: Soap invoke error

    Posted Nov 25, 2014 05:44 AM

    Hi All,

     

    BPM-0704: An error occurred while executing custom script: org.apache.commons.jelly.JellyTagException: null:254:64: <soap:invoke> Failed to send a SOAP message generated to 'https://clarityurl.com/niku/xog'.HTTP Error: Status-Code: 500: Internal Server Error at com.niku.union.gel.tags.soap.InvokeTag.doTag(InvokeTag.java:76) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at com.niku.union.gel.tags.ScriptTag.doTag(ScriptTag.java:20) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at com.niku.union.gel.GELScript.run(GELScript.java:48) at com.niku.union.gel.GELController.invoke(GELController.java:74) at com.niku.bpm.services.ExecuteCustomAction.run(ExecuteCustomAction.java:207) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.RuntimeException: HTTP Error: Status-Code: 500: Internal Server Error at com.niku.union.xml.SimpleSOAPMessage.processRequest(SimpleSOAPMessage.java:316) at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:88) at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:63) at com.niku.union.gel.tags.soap.InvokeTag.doTag(InvokeTag.java:72) ... 19 more Root cause java.lang.RuntimeException: HTTP Error: Status-Code: 500: Internal Server Error at com.niku.union.xml.SimpleSOAPMessage.processRequest(SimpleSOAPMessage.java:316) at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:88) at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:63) at com.niku.union.gel.tags.soap.InvokeTag.doTag(InvokeTag.java:72) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at com.niku.union.gel.tags.ScriptTag.doTag(ScriptTag.java:20) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at com.niku.union.gel.GELScript.run(GELScript.java:48) at com.niku.union.gel.GELController.invoke(GELController.java:74) at com.niku.bpm.services.ExecuteCustomAction.run(ExecuteCustomAction.java:207) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722)

     

    Thanks

    Nipun



  • 8.  Re: Soap invoke error

    Posted Nov 25, 2014 04:56 AM


  • 9.  Re: Soap invoke error

    Posted Nov 25, 2014 04:58 AM

    The workaround is to remove the first line from the XML file that contains the XML processing instruction (i.e. the <?xml ... ?> line).  This defect isn't published yet as a knowledge article on the website, when it is, it would contain the following:

     

    CLRT-73713 XOG Write returns error if it contains an XML processing instruction at the start (<?xml ... ?>)

    Description:

    XML files typically begin with a processing instruction that identifies the file as XML. The example XOG files provided with the XOG client also include them. They look like this:

     

    <?xml version="1.0" encoding="UTF-8"?>

     

    To send the files to Clarity to be processed requires embedding the contents of this file into a SOAP request, which is also XML. As such, the processing instruction should be removed since the SOAP request has the one it needs already at the beginning and additional ones are not needed/desired in the file.

     

    The following error occurs in the client:

     

    Failed to retrieve response document
    com.niku.xog.XOGException: java.lang.RuntimeException: HTTP Error: Status-Code: 500: Internal Server Error
    at com.niku.xog.client.XOGClient.processRequest(XOGClient.java:1096)
    at com.niku.xog.client.XOGClient.processRequest(XOGClient.java:1007)
    at com.niku.xog.client.XOGClient.processRequest(XOGClient.java:679)
    at com.niku.xog.client.XOGClient.processRequest(XOGClient.java:589)
    at com.niku.xog.client.XOGClient.processRequests(XOGClient.java:1435)
    at com.niku.xog.client.XOGClient.processCmd(XOGClient.java:1358)
    at com.niku.xog.client.XOGClient.startShell(XOGClient.java:1287)
    at com.niku.xog.client.XOGClient.invokeCommand(XOGClient.java:1248)
    at com.niku.xog.client.XOGClient.main(XOGClient.java:142)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at com.werken.forehead.Forehead.run(Forehead.java:551)
    at com.werken.forehead.Forehead.main(Forehead.java:581)
    Caused by: java.lang.RuntimeException: HTTP Error: Status-Code: 500: Internal Server Error
    at com.niku.union.xml.SimpleSOAPMessage.processRequest(SimpleSOAPMessage.java:316)
    at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:88)
    at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:79)
    at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:56)
    at com.niku.xog.client.XOGClient.processRequest(XOGClient.java:1092)
    ... 14 more

     

    It also produces the following error in the app-ca.log files:

     

    ERROR 2013-12-10 09:26:43,758 [http-bio-14001-exec-423] niku.xog (clarity:none:none:none) XOG POST failed
    java.util.NoSuchElementException: ParseError at [row,col]:[9,9]
    Message: The processing instruction target matching "[xX][mM][lL]" is not allowed.

     

    Steps to Reproduce:

    1. Run XOG from the command prompt: bin\xog.bat
    2. Login to your Clarity 13.3 server: login admin/admin@yourserver
    3. Save the following XML to a file and then call it in the xog client: call yourfilename.xml  <?xml version="1.0" encoding="UTF-8"?>
    <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_user.xsd">
    <Header version="6010" action="write" objectType="user" externalSource="ORACLE-FINANCIAL"/>
    <Users>
    <User userLanguage="English" userStatus="InActive" userName="xoguser10" userType="Internal" externalId="2323">
    <PersonalInformation lastName="xoglastname10" firstName="xogfirstname10" emailAddress="xog10@niku.com"/>
    <Resource resourceId="xoguser10"/>
    <Company companyId="xogtestcompany"/>
    <General addedBy="admin" addedDate="2001-09-05"/>
    <OBSAssocs/>
    </User>
    </Users>
    </NikuDataBus>

    Expected Result:The write should complete with a successful insert or update of a Clarity user
    Actual Result:Error 500 is produced
    Workaround:Remove the processing instruction (first line beginning with <? ...?>) from the XOG file.

     

     

    NJ



  • 10.  Re: Soap invoke error

    Posted Nov 25, 2014 06:20 AM

    Thanks NJ for your suggestions. I will work it out.

     

     

     

    Thanks

    Nipun



  • 11.  Re: Soap invoke error

    Posted Dec 01, 2014 04:09 AM

    Were you able to resolve the issue ?

     

    NJ



  • 12.  Re: Soap invoke error

    Posted Dec 01, 2014 11:03 AM

    Hi NJ

     

    I haven't got the error after the post. I will update when it occurs.

    Thanks for your time

     

     

     

    Nipun



  • 13.  Re: Soap invoke error

    Posted Nov 25, 2014 05:08 AM

    Can you post the xog output as well ?

     

    NJ



  • 14.  Re: Soap invoke error

    Posted Nov 25, 2014 05:12 AM

    The message states -

    generated to 'https://claritytenvt.highmark.com/niku/xog'.HTTP

     

    Is ".HTTP" suffix part of the address you are trying to use ?

     

    NJ



  • 15.  Re: Soap invoke error

    Posted Nov 25, 2014 05:14 AM

    This might be another reason if it works fine sometimes, and it fails -

     

    https://communities.ca.com/message/98018261#98018261

     

    NJ



  • 16.  Re: Soap invoke error

    Posted Nov 25, 2014 05:46 AM

    No .HTTP is not suffix to the URl. The error brings that out.

     

     

     

    Thanks

    Nipun