Clarity PPM

Expand all | Collapse all

XOG Invoke Failed java.lang.RuntimeException: HTTP Error: Status-Code: 403: Forbidden

Jump to Best Answer
  • 1.  XOG Invoke Failed java.lang.RuntimeException: HTTP Error: Status-Code: 403: Forbidden

    Posted 06-11-2018 07:30 PM

    I cannot login using XOG.

    http://servername/niku/wsdl  appears ok.

     

    From the Command prompt c:\xog

     

    >

    > login admin/password@servername:80
    URL: http://servername:80/niku/xog
    XOG Invoke Failed
    java.lang.RuntimeException: HTTP Error: Status-Code: 403: Forbidden
            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.login(XOGClient.java:543)
            at com.niku.xog.client.XOGClient.login(XOGClient.java:443)
            at com.niku.xog.client.XOGClient.processCmd(XOGClient.java:1502)
            at com.niku.xog.client.XOGClient.startShell(XOGClient.java:1439)
            at com.niku.xog.client.XOGClient.invokeCommand(XOGClient.java:1386)
            at com.niku.xog.client.XOGClient.main(XOGClient.java:159)
            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)
    >

     

     

     

    I am not performing any read or write operation at this stage.

    This error is on xog login.

     

    Could you please advise how to fix this issue?



  • 2.  Re: XOG Invoke Failed java.lang.RuntimeException: HTTP Error: Status-Code: 403: Forbidden

    Posted 06-12-2018 01:20 AM

    Hi Mayank,

     

    If you are accessing through the XOG client command line and receiving the error, just while trying to login, without any read action, then I would check the port which is being referred to.

    If you have access to CSA or properties.xml you will get to see which is the actual port being used. For example, I may use a HTTP mode, however the port configured may not be 80. 

    Again you may have already checked the same.

     

    Check if the port designated for HTTP traffic is being listened to. Also check if its feasible to test the same from a different machine, if it is related to port, then the problem will occur on all machines. These are some typical scenarios for login

     

    The second scenario, is related to XML file, in your case, you do not seem to be carrying out any read / write. Just for reference ->

     

    Identifying the location of a XOG file parsing error (invalid XML data) 

     

    Regards,

    Samik

     

     

     

     

     



  • 3.  Re: XOG Invoke Failed java.lang.RuntimeException: HTTP Error: Status-Code: 403: Forbidden

    Posted 06-12-2018 03:08 PM

    I would check to make sure the user has XOG permissions.

     

    V/r,

    Gene



  • 4.  Re: XOG Invoke Failed java.lang.RuntimeException: HTTP Error: Status-Code: 403: Forbidden

    Posted 06-12-2018 06:48 PM

    I have granted all permissions to the user and also made the user member of the system administrator group.

     

    We use SSO - siteminder <- not sure if there is any configuration issue.

     

    Thanks



  • 5.  Re: XOG Invoke Failed java.lang.RuntimeException: HTTP Error: Status-Code: 403: Forbidden

    Posted 06-12-2018 10:24 PM

    I should say that this issue surfaced only after the upgrade was carried out.

     

    Earlier,  on version 13.2, XOG worked fine.   After its upgrade to version 14.1, this issue came up.

     

    Any suggestion please ?

     

    Thank you.



  • 6.  Re: XOG Invoke Failed java.lang.RuntimeException: HTTP Error: Status-Code: 403: Forbidden

    Posted 06-13-2018 05:02 AM

    Hi Mayank.Joshi,

     

    I have experienced similar situation in SSO environment.

    Unfortunately, I could not remember details.

     

    Please check "External Authentication" in Resource properties is checked.

    If it is checked, please try to use SSO password for XOG.

    If it is not checked, please try to use PPM password for XOG.

     

    Regards,

    Shoichi

     



  • 7.  Re: XOG Invoke Failed java.lang.RuntimeException: HTTP Error: Status-Code: 403: Forbidden

    Posted 06-15-2018 01:46 AM

    Hello,

     

    Could some one please shed more light on why am I not able to run XOG after upgrade from version 13.2 to version 14.1.

     

    1. I restored the envioonment back to version 13.2.

    2. I ensure that XOG worked fine on version 13.2

    3. I upgraded successfully to version 14.1.

    4. XOG fails on version 14.1.   <====  why?



  • 8.  Re: XOG Invoke Failed java.lang.RuntimeException: HTTP Error: Status-Code: 403: Forbidden

    Posted 06-15-2018 01:56 AM

    app-system.log reported :----------------

     

     

    2018/06/15 14:51:31.456 | SEVERE: An exception occured writing the response entity
    2018/06/15 14:51:31.471 | ClientAbortException:  java.net.SocketException: Software caused connection abort: socket write error
    2018/06/15 14:51:31.487 |  at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:413)
    2018/06/15 14:51:31.487 |  at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:480)
    2018/06/15 14:51:31.502 |  at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:310)
    2018/06/15 14:51:31.518 |  at org.apache.catalina.connector.OutputBuffer.writeByte(OutputBuffer.java:457)
    2018/06/15 14:51:31.518 |  at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:77)
    2018/06/15 14:51:31.534 |  at java.io.FilterOutputStream.write(FilterOutputStream.java:77)
    2018/06/15 14:51:31.549 |  at java.io.FilterOutputStream.write(FilterOutputStream.java:125)
    2018/06/15 14:51:31.565 |  at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
    2018/06/15 14:51:31.565 |  at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:282)
    2018/06/15 14:51:31.580 |  at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
    2018/06/15 14:51:31.580 |  at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:135)
    2018/06/15 14:51:31.596 |  at java.io.OutputStreamWriter.write(OutputStreamWriter.java:220)
    2018/06/15 14:51:31.612 |  at java.io.Writer.write(Writer.java:157)
    2018/06/15 14:51:31.612 |  at org.restlet.representation.StringRepresentation.write(StringRepresentation.java:234)
    2018/06/15 14:51:31.627 |  at org.restlet.representation.CharacterRepresentation.write(CharacterRepresentation.java:73)
    2018/06/15 14:51:31.643 |  at org.restlet.ext.jaxrs.internal.provider.ConverterProvider.writeTo(ConverterProvider.java:159)
    2018/06/15 14:51:31.658 |  at org.restlet.ext.jaxrs.internal.wrappers.provider.SingletonProvider.writeTo(SingletonProvider.java:347)
    2018/06/15 14:51:31.674 |  at org.restlet.ext.jaxrs.internal.util.JaxRsOutputRepresentation.write(JaxRsOutputRepresentation.java:109)
    2018/06/15 14:51:31.690 |  at org.restlet.engine.adapter.ServerCall.writeResponseBody(ServerCall.java:506)
    2018/06/15 14:51:31.705 |  at org.restlet.engine.adapter.ServerCall.sendResponse(ServerCall.java:450)
    2018/06/15 14:51:31.705 |  at org.restlet.ext.servlet.internal.ServletCall.sendResponse(ServletCall.java:456)
    2018/06/15 14:51:31.721 |  at org.restlet.engine.adapter.ServerAdapter.commit(ServerAdapter.java:193)
    2018/06/15 14:51:31.736 |  at org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:150)
    2018/06/15 14:51:31.752 |  at com.ca.platform.osf.object.odata.ClarityODataServletHelper.handle(ClarityODataServletHelper.java:231)
    2018/06/15 14:51:31.768 |  at org.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:1086)
    2018/06/15 14:51:31.768 |  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    2018/06/15 14:51:31.783 |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    2018/06/15 14:51:31.799 |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2018/06/15 14:51:31.814 |  at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    2018/06/15 14:51:31.814 |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2018/06/15 14:51:31.830 |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2018/06/15 14:51:31.846 |  at com.niku.union.web.filter.ClarityContentFilter.doFilter(ClarityContentFilter.java:145)
    2018/06/15 14:51:31.861 |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2018/06/15 14:51:31.877 |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2018/06/15 14:51:31.892 |  at com.niku.union.web.filter.XSSFilter.doFilter(XSSFilter.java:69)
    2018/06/15 14:51:31.908 |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2018/06/15 14:51:31.924 |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2018/06/15 14:51:31.924 |  at com.niku.union.web.filter.CharsetFilter.doFilter(CharsetFilter.java:68)
    2018/06/15 14:51:31.939 |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2018/06/15 14:51:31.955 |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2018/06/15 14:51:31.970 |  at org.apache.catalina.filters.AddDefaultCharsetFilter.doFilter(AddDefaultCharsetFilter.java:88)
    2018/06/15 14:51:31.986 |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2018/06/15 14:51:32.002 |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2018/06/15 14:51:32.017 |  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    2018/06/15 14:51:32.017 |  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    2018/06/15 14:51:32.033 |  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
    2018/06/15 14:51:32.048 |  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    2018/06/15 14:51:32.064 |  at com.niku.union.web.valves.ErrorPageRedirectValve.invoke(ErrorPageRedirectValve.java:70)
    2018/06/15 14:51:32.080 |  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
    2018/06/15 14:51:32.080 |  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    2018/06/15 14:51:32.111 |  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    2018/06/15 14:51:32.126 |  at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:193)
    2018/06/15 14:51:32.126 |  at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
    2018/06/15 14:51:32.142 |  at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
    2018/06/15 14:51:32.158 |  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2018/06/15 14:51:32.173 |  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    2018/06/15 14:51:32.189 |  at java.lang.Thread.run(Thread.java:745)
    2018/06/15 14:51:32.189 | Caused by: java.net.SocketException: Software caused connection abort: socket write error
    2018/06/15 14:51:32.204 |  at java.net.SocketOutputStream.socketWrite0(Native Method)
    2018/06/15 14:51:32.204 |  at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)
    2018/06/15 14:51:32.220 |  at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
    2018/06/15 14:51:32.236 |  at org.apache.coyote.ajp.AjpProcessor.output(AjpProcessor.java:295)
    2018/06/15 14:51:32.236 |  at org.apache.coyote.ajp.AbstractAjpProcessor$SocketOutputBuffer.doWrite(AbstractAjpProcessor.java:1195)
    2018/06/15 14:51:32.251 |  at org.apache.coyote.Response.doWrite(Response.java:520)
    2018/06/15 14:51:32.267 |  at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:408)
    2018/06/15 14:51:32.282 |  ... 56 more
    2018/06/15 14:51:32.282 |
    2018/06/15 14:51:32.282 | Jun 15, 2018 2:51:31 PM org.restlet.engine.adapter.HttpServerHelper handle
    2018/06/15 14:51:32.298 | WARNING: Error while handling an HTTP server call:
    2018/06/15 14:51:32.314 | Jun 15, 2018 2:51:31 PM org.restlet.engine.adapter.HttpServerHelper handle
    2018/06/15 14:51:32.314 | INFO: Error while handling an HTTP server call
    2018/06/15 14:51:32.329 | java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
    2018/06/15 14:51:32.345 |  at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:450)
    2018/06/15 14:51:32.345 |  at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:119)
    2018/06/15 14:51:32.360 |  at org.restlet.ext.servlet.internal.ServletCall.sendResponse(ServletCall.java:423)
    2018/06/15 14:51:32.376 |  at org.restlet.engine.adapter.ServerAdapter.commit(ServerAdapter.java:205)
    2018/06/15 14:51:32.392 |  at org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:150)
    2018/06/15 14:51:32.392 |  at com.ca.platform.osf.object.odata.ClarityODataServletHelper.handle(ClarityODataServletHelper.java:231)
    2018/06/15 14:51:32.407 |  at org.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:1086)
    2018/06/15 14:51:32.423 |  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    2018/06/15 14:51:32.438 |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    2018/06/15 14:51:32.454 |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2018/06/15 14:51:32.454 |  at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    2018/06/15 14:51:32.470 |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2018/06/15 14:51:32.485 |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2018/06/15 14:51:32.501 |  at com.niku.union.web.filter.ClarityContentFilter.doFilter(ClarityContentFilter.java:145)
    2018/06/15 14:51:32.516 |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2018/06/15 14:51:32.532 |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2018/06/15 14:51:32.532 |  at com.niku.union.web.filter.XSSFilter.doFilter(XSSFilter.java:69)
    2018/06/15 14:51:32.548 |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2018/06/15 14:51:32.563 |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2018/06/15 14:51:32.579 |  at com.niku.union.web.filter.CharsetFilter.doFilter(CharsetFilter.java:68)
    2018/06/15 14:51:32.579 |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2018/06/15 14:51:32.594 |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2018/06/15 14:51:32.610 |  at org.apache.catalina.filters.AddDefaultCharsetFilter.doFilter(AddDefaultCharsetFilter.java:88)
    2018/06/15 14:51:32.626 |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2018/06/15 14:51:32.641 |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2018/06/15 14:51:32.657 |  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    2018/06/15 14:51:32.672 |  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    2018/06/15 14:51:32.688 |  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
    2018/06/15 14:51:32.704 |  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    2018/06/15 14:51:32.704 |  at com.niku.union.web.valves.ErrorPageRedirectValve.invoke(ErrorPageRedirectValve.java:70)
    2018/06/15 14:51:32.719 |  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
    2018/06/15 14:51:32.735 |  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    2018/06/15 14:51:32.750 |  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    2018/06/15 14:51:32.766 |  at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:193)
    2018/06/15 14:51:32.766 |  at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
    2018/06/15 14:51:32.782 |  at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
    2018/06/15 14:51:32.797 |  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2018/06/15 14:51:32.813 |  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    2018/06/15 14:51:32.828 |  at java.lang.Thread.run(Thread.java:745)
    2018/06/15 14:51:32.828 |



  • 9.  Re: XOG Invoke Failed java.lang.RuntimeException: HTTP Error: Status-Code: 403: Forbidden

    Posted 06-15-2018 03:20 AM

    Hi Mayank.Joshi,

     

    Did you use Java 8 Update 111 or later version?

    In Java 8 Update 111, Basic Authentication for HTTPS tunneling is disabled.

    The userid/password may not be sent from XOG to proxy correctly.

    Please try to use old Java if you use above Java version.

     

    Java 8 release changes 

     

    Disable Basic authentication for HTTPS tunneling
    In some environments, certain authentication schemes may be undesirable when proxying HTTPS. Accordingly, the Basic authentication scheme has been deactivated, by default, in the Oracle Java Runtime, by adding Basic to the jdk.http.auth.tunneling.disabledSchemes networking property. Now, proxies requiring Basic authentication when setting up a tunnel for HTTPS will no longer succeed by default. If required, this authentication scheme can be reactivated by removing Basic from the jdk.http.auth.tunneling.disabledSchemes networking property, or by setting a system property of the same name to "" ( empty ) on the command line. Additionally, the jdk.http.auth.tunneling.disabledSchemes and jdk.http.auth.proxying.disabledSchemes networking properties, and system properties of the same name, can be used to disable other authentication schemes that may be active when setting up a tunnel for HTTPS, or proxying plain HTTP, respectively. JDK-8160838 (not public)

     

    Regards,

    Shoichi



  • 10.  Re: XOG Invoke Failed java.lang.RuntimeException: HTTP Error: Status-Code: 403: Forbidden

    Posted 06-18-2018 01:35 AM

    Hi Mayank,

     

    CA PPM 14.1 is an old version with no support on patches, at this time we have CA PPM 15.4 SP1, can you try to upgrade to that version and give a try?

     

    Regards
    Suman Pramanik 



  • 11.  Re: XOG Invoke Failed java.lang.RuntimeException: HTTP Error: Status-Code: 403: Forbidden

    Posted 06-18-2018 06:04 PM

    yep, that's where we are heading to from version 13.2.

    the problem got resolved now.



  • 12.  Re: XOG Invoke Failed java.lang.RuntimeException: HTTP Error: Status-Code: 403: Forbidden
    Best Answer

    Posted 06-18-2018 06:06 PM

    Thanks all for your support.

     

    The issue got resolved as follows:

     

    One of the JVM parameter was like this:     -Djava.io.tmpdir=D:\javatmp

     

    The issue occurred when D:\javatmp did not exist.

     

    I created the folder and then after the issue disappeared.

     

    I believe the upgrade process is appending this parameter, that one needs to be aware of.

    Cheers !



  • 13.  Re: XOG Invoke Failed java.lang.RuntimeException: HTTP Error: Status-Code: 403: Forbidden

    Posted 06-18-2018 11:36 PM

    The upgrade process / product is not doing this; instead it occurs when someone follows the tecdoc / kb on re-indexing the search indexes without making sure that the parameter value they chose is a valid one.

     

    Reference: "SRCH-02001: Error while retrieving search contents. Contact your system administrator." while searching or retrieving or adding documents to the knowledge store

     

    It was updated a couple of months ago to try and avoid this from occurring (as it had been happening on multiple occasions), but either it was still followed verbatim or an older copy of it had been used on the environment.

     

    Edit: In fact I would say it was here that this advice was likely followed: https://communities.ca.com/thread/104466621

    But since that time the folder/drive has become invalidated as a result of your environmental or version changes, and only now you run into the issue when trying to XOG.



  • 14.  Re: XOG Invoke Failed java.lang.RuntimeException: HTTP Error: Status-Code: 403: Forbidden

    Posted 06-19-2018 04:13 AM

    Thank Nick for the insight. 

     

    @Mayank Joshi: Glad its resolved now