You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Marcel Glasa <ma...@azet.sk> on 2005/10/04 16:12:30 UTC
Re: Cocoon@Oracle 9iAS/Linux
Linux Red Hat 9 (2.4.20-8)
Oracle iAS 10g (9.0.4)
Cocoon 2.1.6
**************************************
ERRORS IN WEB BROWSER
**************************************
Internal Server Error
Message: java.lang.NullPointerException
Description: org.apache.cocoon.ProcessingException: Failed to execute
pipeline.: java.lang.RuntimeException: java.lang.NullPointerException
Sender: org.apache.cocoon.servlet.CocoonServlet
Source: Cocoon Servlet
Request URI
cause
java.lang.RuntimeException: java.lang.NullPointerException
request-uri
/cocoon_m/
full exception chain stacktrace
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.RuntimeException: java.lang.NullPointerException
.............
at java.lang.Thread.run(Thread.java:534)
Apache Cocoon 2.1.6
**************************************
ERRORS IN LOG FILES
**************************************
$ORACLE_HOME/j2ee/home/applications/cocoon_m/cocoon/WEB-INF/logs/error.log
FATAL_E (2005-10-03) 10:34.35:933 [core.xslt-processor] (/cocoon_m/)
AJPRequestHandler-ApplicationServerThread-5/TraxErrorHandler: Error in
TraxTransformer:
file:/opt/app/oracle/product/904/j2ee/home/applications/cocoon_m/cocoon/welcome.xslt;
Line 0; Column 0;
; SystemID:
file:/opt/app/oracle/product/904/j2ee/home/applications/cocoon_m/cocoon/welcome.xslt
javax.xml.transform.TransformerException: java.lang.NullPointerException
FATAL_E (2005-10-03) 10:34.36:633 [core.xslt-processor] (/cocoon_m/)
AJPRequestHandler-ApplicationServerThread-5/TraxErrorHandler: Error in
TraxTransformer:
file:/opt/app/oracle/product/904/j2ee/home/applications/cocoon_m/cocoon/stylesheets/system/error2html.xslt;
Line 0; Column 0;
; SystemID:
file:/opt/app/oracle/product/904/j2ee/home/applications/cocoon_m/cocoon/stylesheets/system/error2html.xslt
javax.xml.transform.TransformerException: java.lang.NullPointerException
ERROR (2005-10-03) 10:34.36:663 [sitemap] (/cocoon_m/)
AJPRequestHandler-ApplicationServerThread-5/ErrorHandlerHelper: An
exception occured while handling errors at
file:/opt/app/oracle/product/904/j2ee/home/applications/cocoon_m/cocoon/sitemap.xmap:852:24
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.RuntimeException: java.lang.NullPointerException
ERROR (2005-10-03) 10:34.36:728 [access] (/cocoon_m/)
AJPRequestHandler-ApplicationServerThread-5/CocoonServlet: Internal
Cocoon Problem
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.RuntimeException: java.lang.NullPointerException
$ORACLE_HOME/j2ee/home/applications/cocoon_m/cocoon/WEB-INF/logs/sitemap.log
WARN (2005-10-03) 10:34.34:266 [sitemap.serializer.xhtml]
(/cocoon_m/)
AJPRequestHandler-ApplicationServerThread-5/AbstractTextSerializer:
Cannot know if transformer needs namespaces attributes - assuming NO.
java.lang.NullPointerException
INFO (2005-10-03) 10:34.36:300 [sitemap] (/cocoon_m/)
AJPRequestHandler-ApplicationServerThread-5/HandleErrorsNode: Processing
handle-errors at
file:/opt/app/oracle/product/904/j2ee/home/applications/cocoon_m/cocoon/sitemap.xmap:852:24
WARN (2005-10-03) 10:34.36:381 [sitemap.serializer.html]
(/cocoon_m/)
AJPRequestHandler-ApplicationServerThread-5/AbstractTextSerializer:
Cannot know if transformer needs namespaces attributes - assuming NO.
java.lang.NullPointerException
*************************************************
SOLUTION
*************************************************
A. Via command line
1. log as oracle iAS user
su oracle
2. edit file $ORACLE_HOME/opmn/conf/opmn.xml
- end of file:
<ias-component id="OC4J">
<process-type id="home" module-id="OC4J" status="enabled">
<module-data>
<category id="start-parameters">
<data id="java-options" value="-server
-Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy
-Djava.awt.headless=true/>
- add following string to value= ... :
-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl
-Dorg.xml.sax.driver=oracle.xml.parser.v2.SAXParser
3. $ORACLE_HOME/opmn/bin/opmnctl reload
B. Via Oracle Enterprise Manager Application Server Control
1. log on to Oracle Enterprise Manager Application Server Control -->
http://ias_host:1810/
2. System Components > home > Administration > Server Properties
3. Command Line Options - Java Options:
-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl
-Dorg.xml.sax.driver=oracle.xml.parser.v2.SAXParser
4. push buton APPLY/OK
__________________________________________________
http://www.email.azet.sk - 2 000 MB na Vase e-maily!
__________________________________________________
http://www.email.azet.sk - 2 000 MB na Vase e-maily!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org