Topic
  • 9 replies
  • Latest Post - ‏2013-04-25T07:55:08Z by nicolas.leralle
loveneesh
loveneesh
13 Posts

Pinned topic Error View/Previewing the documents

‏2013-04-24T13:53:08Z |

Hi,

I am getting the below exception when clicking on the documents for preview in P8 repository. I am not able to view any of the documents in ICN.

I have executed all the configuration steps, so not sure why its not working.

Thx.

[4/24/13 9:50:09:378 EDT] 00000021 SystemOut     O CIWEB Error: [xxxx @xxxxx.com] com.ibm.ecm.struts.actions.p8.P8RetrieveDocumentAction.execute()

java.lang.NoClassDefFoundError: com.ibm.ecm.util.p8.P8AnnotationExporter (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)
at com.ibm.ecm.struts.actions.p8.P8RetrieveDocumentAction.executeAction(P8RetrieveDocumentAction.java:119)
at com.ibm.ecm.struts.actions.p8.P8BaseAction.executeBaseAction(P8BaseAction.java:180)
at com.ibm.ecm.struts.actions.BaseAction.execute(BaseAction.java:176)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at com.ibm.ecm.struts.controller.ControllerServlet.process(ControllerServlet.java:239)

The above exception is followed by:

 

[4/24/13 9:50:09:379 EDT] 00000021 SystemOut     O CIWEB Error: [xxxxx@ xxxxxx.com] com.ibm.ecm.mediator.p8.P8DocumentMediator.writeJSONMediator()
java.lang.NullPointerException
at com.ibm.ecm.mediator.p8.P8DocumentMediator.toJSONObject(P8DocumentMediator.java:197)
at com.ibm.ecm.mediator.BaseMediator.toJSONString(BaseMediator.java:338)
at com.ibm.ecm.mediator.BaseMediator.writeJSON(BaseMediator.java:422)
at com.ibm.ecm.mediator.BaseMediator.writeJSON(BaseMediator.java:406)
at com.ibm.ecm.mediator.BaseMediator.writeJSONResponse(BaseMediator.java:464)
  • nicolas.leralle
    nicolas.leralle
    102 Posts

    Re: Error View/Previewing the documents

    ‏2013-04-24T15:04:25Z  

    Hi.

     

    Are you able to open properties page?

    If not, check the security on the target Document class (Security tab in FEM, not Default Instance Security).

    If you can, please test following URL : http://<server>:<port>/navigator/viewers/verify.jsp

     

    You'll see if everything seems alright in your viewers configuration.

     

    Best regards,

     

    Nicolas

  • loveneesh
    loveneesh
    13 Posts

    Re: Error View/Previewing the documents

    ‏2013-04-24T15:24:59Z  

    Hi.

     

    Are you able to open properties page?

    If not, check the security on the target Document class (Security tab in FEM, not Default Instance Security).

    If you can, please test following URL : http://<server>:<port>/navigator/viewers/verify.jsp

     

    You'll see if everything seems alright in your viewers configuration.

     

    Best regards,

     

    Nicolas

    Hi Nicolas,

    Yes, I am able to see the properties of the documents.

     

    Here is the result of verify viewer jsp:

     

    Verify ViewONE Pro

    Setting Value Validity
    iviewproConfigurationDirectory (in web.xml) C:\\Program Files (x86)\\IBM\\ECMClient\\config Ok
    Streamer configuration file C:\Program Files (x86)\IBM\ECMClient\config\iviewpro.streamer.properties Ok
    Streamer cache directory C:\Program Files (x86)\IBM\ECMClient\config\cache Ok
    Streamer log directory C:\Program Files (x86)\IBM\ECMClient\config Ok
    Streamer log file C:\Program Files (x86)\IBM\ECMClient\config\streamer.log Ok
    Redact configuration file C:\Program Files (x86)\IBM\ECMClient\config\iviewpro.redacttofile.properties Ok
    Redact log directory C:\Program Files (x86)\IBM\ECMClient\config Ok
    Redact log file C:\Program Files (x86)\IBM\ECMClient\config\redacttofile.log

    Ok

    the only things i see in red are:

    XSLT verification failed. XSLT is required by ViewONE Pro for import/export of annotations. Exception: java.lang.ClassCastException Error Message: com.ibm.xtq.xslt.jaxp.compiler.TransformerFactoryImpl incompatible with javax.xml.transform.TransformerFactory

     

     

    Verify Client Side Plugins

    Plugin Status
    IBM AFP Viewer Plugin not installed. feature cannot be used.
    Adobe Reader not installed. feature cannot be used.

     

  • nicolas.leralle
    nicolas.leralle
    102 Posts

    Re: Error View/Previewing the documents

    ‏2013-04-24T15:34:40Z  

    Hi Nicolas,

    Yes, I am able to see the properties of the documents.

     

    Here is the result of verify viewer jsp:

     

    Verify ViewONE Pro

    Setting Value Validity
    iviewproConfigurationDirectory (in web.xml) C:\\Program Files (x86)\\IBM\\ECMClient\\config Ok
    Streamer configuration file C:\Program Files (x86)\IBM\ECMClient\config\iviewpro.streamer.properties Ok
    Streamer cache directory C:\Program Files (x86)\IBM\ECMClient\config\cache Ok
    Streamer log directory C:\Program Files (x86)\IBM\ECMClient\config Ok
    Streamer log file C:\Program Files (x86)\IBM\ECMClient\config\streamer.log Ok
    Redact configuration file C:\Program Files (x86)\IBM\ECMClient\config\iviewpro.redacttofile.properties Ok
    Redact log directory C:\Program Files (x86)\IBM\ECMClient\config Ok
    Redact log file C:\Program Files (x86)\IBM\ECMClient\config\redacttofile.log

    Ok

    the only things i see in red are:

    XSLT verification failed. XSLT is required by ViewONE Pro for import/export of annotations. Exception: java.lang.ClassCastException Error Message: com.ibm.xtq.xslt.jaxp.compiler.TransformerFactoryImpl incompatible with javax.xml.transform.TransformerFactory

     

     

    Verify Client Side Plugins

    Plugin Status
    IBM AFP Viewer Plugin not installed. feature cannot be used.
    Adobe Reader not installed. feature cannot be used.

     

     

    You may have missed post deployments steps:

     

    http://pic.dhe.ibm.com/infocenter/p8docs/v5r1m0/index.jsp?topic=%2Fcom.ibm.installingeuc.doc%2Feucde007.htm

     

    Best regards,

     

    Nicolas

  • loveneesh
    loveneesh
    13 Posts

    Re: Error View/Previewing the documents

    ‏2013-04-24T15:48:30Z  

     

    You may have missed post deployments steps:

     

    http://pic.dhe.ibm.com/infocenter/p8docs/v5r1m0/index.jsp?topic=%2Fcom.ibm.installingeuc.doc%2Feucde007.htm

     

    Best regards,

     

    Nicolas

    Hi Nicolas,

    I have already setup the "PATH" variable as mentioned in the documentation. Also I am running ICN on Windows Server, so I assume X Window server configuration is not needed.

    Thanks

    Loveneesh

  • nicolas.leralle
    nicolas.leralle
    102 Posts

    Re: Error View/Previewing the documents

    ‏2013-04-24T15:54:25Z  

    Hi Nicolas,

    I have already setup the "PATH" variable as mentioned in the documentation. Also I am running ICN on Windows Server, so I assume X Window server configuration is not needed.

    Thanks

    Loveneesh

    This sounds like a classloading issue.


    Did you add some features on your ICN (plugins...)?

    Can you check on WAS that classes are loaded with local class loader first (parent last)?

     

    Best regards,


    Nicolas

  • loveneesh
    loveneesh
    13 Posts

    Re: Error View/Previewing the documents

    ‏2013-04-24T15:59:18Z  

    This sounds like a classloading issue.


    Did you add some features on your ICN (plugins...)?

    Can you check on WAS that classes are loaded with local class loader first (parent last)?

     

    Best regards,


    Nicolas

    First of all would like to thank you for the quick response.

    I have not added any extra feature on top of basic ICN.

     

    Here is the classloading settings for navigator application

     

    Class loader orderClasses loaded with parent class loader first
    Classes loaded with local class loader first (parent last)
    WAR class loader policyClass loader for each WAR file in application
    Single class loader for application

     

  • nicolas.leralle
    nicolas.leralle
    102 Posts

    Re: Error View/Previewing the documents

    ‏2013-04-24T16:22:43Z  

    First of all would like to thank you for the quick response.

    I have not added any extra feature on top of basic ICN.

     

    Here is the classloading settings for navigator application

     

    Class loader orderClasses loaded with parent class loader first
    Classes loaded with local class loader first (parent last)
    WAR class loader policyClass loader for each WAR file in application
    Single class loader for application

     

    Can you paste the startServer.log file from your WebSphere profile where ICN is deployed?

    There is a problem with your XSL libraries (xml-apis and javax.xml), which may be the root cause of your problem.

    What is your JRE version?

    Best regards,

    Nicolas

  • loveneesh
    loveneesh
    13 Posts

    Re: Error View/Previewing the documents

    ‏2013-04-24T18:40:10Z  

    Can you paste the startServer.log file from your WebSphere profile where ICN is deployed?

    There is a problem with your XSL libraries (xml-apis and javax.xml), which may be the root cause of your problem.

    What is your JRE version?

    Best regards,

    Nicolas

    Here is the JRE Version:

     

    C:\Program Files\IBM\WebSphere\AppServer\java\jre\bin>java -version
    java version "1.6.0"
    Java(TM) SE Runtime Environment (build pwa6460sr9fp1ifix-20110401_01(SR9 FP1+IZ95392+IZ95393+IZ97453))
    IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows Server 2008 R2 amd64-64 jvmwa6460sr9-20110216_75791 (JIT enabled, AOT enabled)
    J9VM - 20110216_075791
    JIT  - r9_20101028_17488ifx4
    GC   - 20101027_AA)
    JCL  - 20110401_02

    Attached is the startServer.log file.

    Thanks.

    Attachments

  • nicolas.leralle
    nicolas.leralle
    102 Posts

    Re: Error View/Previewing the documents

    ‏2013-04-25T07:55:08Z  

    Here is the JRE Version:

     

    C:\Program Files\IBM\WebSphere\AppServer\java\jre\bin>java -version
    java version "1.6.0"
    Java(TM) SE Runtime Environment (build pwa6460sr9fp1ifix-20110401_01(SR9 FP1+IZ95392+IZ95393+IZ97453))
    IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows Server 2008 R2 amd64-64 jvmwa6460sr9-20110216_75791 (JIT enabled, AOT enabled)
    J9VM - 20110216_075791
    JIT  - r9_20101028_17488ifx4
    GC   - 20101027_AA)
    JCL  - 20110401_02

    Attached is the startServer.log file.

    Thanks.

    I do not notice strange information.

    There are two differences between your verify.jsp and mine : I pass XSLT validation and in the "Verifiy Client Side Plugins" Adobe Reader is set to "Installed".

    Sorry to be unhelpful.

     

    Best regards,


    Nicolas