Clarity

  • 1.  Hickups with v13.3 XOG client

    Posted Feb 10, 2014 04:15 PM

    Now that the XOG GUI client is gone from v13.3 we can enjoy all the pleasures of the command line client.

    I was just trying to XOG in some portlets with v13.3 client and got

    Login Succeeded
    Request Document: ..\Input\zInst_r_portlet_03.xml
    Writing output to ..\Output\zinst_r_results.xml
    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:1444)
            at com.niku.xog.client.XOGClient.invokeCommand(XOGClient.java:1237)
            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(DelegatingMethodAcces
    sorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            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 Se
    rver 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)
            ... 12 more
    Logout Succeeded

     

    while the log is

    ERROR 2014-02-10 21:13:34,795 [http-bio-80-exec-18] 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.
        at com.sun.xml.internal.stream.XMLEventReaderImpl.next(XMLEventReaderImpl.java:252)
        at com.niku.union.utility.StreamUtils.getXOGHeaderMetaData(StreamUtils.java:438)
        at com.niku.xog.service.XOGSOAPServlet.doPost(XOGSOAPServlet.java:154)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at com.niku.union.web.filter.CharsetFilter.doFilter(CharsetFilter.java:68)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.filters.AddDefaultCharsetFilter.doFilter(AddDefaultCharsetFilter.java:88)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at com.niku.union.web.valves.ErrorPageRedirectValve.invoke(ErrorPageRedirectValve.java:70)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
        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:744)
    ERROR 2014-02-10 21:14:33,073 [http-bio-80-exec-18] 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.
        at com.sun.xml.internal.stream.XMLEventReaderImpl.next(XMLEventReaderImpl.java:252)
        at com.niku.union.utility.StreamUtils.getXOGHeaderMetaData(StreamUtils.java:438)

     

    When XOGing in the same files with v13.2 client no problem at all.

    What could have gone wrong with v13.3 XOG client

    Martti K.

     



  • 2.  RE: Hickups with v13.3 XOG client

    Posted Feb 11, 2014 06:59 AM

    Hey Martti,

    would you mind sharing the XOG document that you are trying to apply?

    Seems like an issue with "<?xml" not being at the start of the file. What exactly is at [row,col]:[9,9] ?

     

    http://stackoverflow.com/questions/19889132/xslthe-processing-instruction-target-matching-xxmmll-is-not-allowed

    Xerces-based tools will emit the following error

    The processing instruction target matching "[xX][mM][lL]" is not allowed.

    when an XML declaration is encountered anywhere other than at the top of an XML file.



  • 3.  RE: Hickups with v13.3 XOG client

    Posted Feb 11, 2014 02:54 PM

    Apparently if was a strange jave issue.

    Had not done XOGing with the command client for a while and apparently not at all on that PC.

    It had 64 bit jre 7 40 and some 32 bit jre 6.

    Did not work at all for v13.3 XOG (the errors I posted above) and some of the xml file worked with v.13.2 but some gave Content not allowed in the prologue. Eg the ITdesign GUI client file.

    After uinstalling the 32 bit jre 6 and installing 32 bit jre 7 51 both v13.3 and v13.2 gave no further errors.

    Though the ITdesign GUI client worked smoothest.

     

    Martti K.