iSelfSchooling.com - Since 1999  References  |  Job Openings
    Home  | Search more  | Oracle Syntax  | Computer Institute   | (Login or Register to access to VIDEOS)
 

Copyright & User Agreement

   Suggestions Email2aFriendHomepage us! |  Bookmark

Services

  Vision/Mission

  Services

  Biography

  Contact Us

 FREE Training

  Start...

  SQL

  PL/SQL

  Forms 

  Reports

  DBA Fundamentals

  Performance

  Prepare for OCP

  ShareUrNotes

...

  Acknowledgement

  Who is who

  University Directory

  Links...

 

 

 

Oracle Tips/Questions and Answers:

 

More Resources by Google:

 

Question:

When the user run a report sometimes they get the following error message:

Please let us know how we can fix this problem.
-----
javax.servlet.jsp.JspException: Portlet execution failed
at gov.senate.transaact.common.ui .tags.ExecuteControllerTag .doStartTag(ExecuteControllerTag.java:68)

at htdocs._adminreports._AdminRepo rtsGenerationPortlet._jspServic e(_AdminReportsGenerationPortle t.java:57)
at com.orionserver.http.OrionHttpJ spPage.service (OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTab le.service(JspPageTable.java:350)
at oracle.jsp.runtimev2.JspServlet .internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet .service(JspServlet.java :413)
at javax.servlet.http.HttpServlet .service(HttpServlet.java:853)
at com.evermind.server.http .ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j .JAZNFilter.doFilter(Unknown Source
at com.evermind.server.http .ServletRequestDispatcher .invoke(ServletRequestDispatcher.java:663)
at com.evermind.server.http .ServletRequestDispatcher .forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http .HttpRequestHandler.processRequ est (HttpRequestHandler.java:830)
at com.evermind.server.http .AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind.server.http .AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind.util.ReleasableRes ourcePooledExecutor$MyWorker .run (ReleasableResourcePooledExecuto r.java:192)
at java.lang.Thread.run(Thread.java:534)
Caused By: java.lang.OutOfMemoryError


Answer:

OC4J as a component of Oracle Application Server
When OC4J is installed as a component of Oracle Application Server, OC4J system properties must be manually added to the opmn.xml configuration file. Options will be passed to managed OC4J instances at startup.

Set Java system properties in the <data> element where the id attribute is "java-options". This <data> element is enclosed within the <category id="start-parameters"> subelement of the <ias-component id="OC4J"> element in the XML structure. For example:

<ias-component id="OC4J">
<process-type id="OC4J_Portal"  module-id="OC4J">
<module-data>
<category id="start-parameters ">
<data id="java-options" value= "-server -Djava.security.policy=/u01 /oracle/iAS/mid101202/j2ee /OC4J_Portal/config/java2 .policy  -Djava.awt.headless=true -Xms256m -Xmx512m"/>
</category>
...
</module-data>
</process-type>
</ias-component>


Standalone OC4J
OC4J runtime options can be set by passing arguments on the oc4j.jar command line at OC4J startup. The syntax for oc4j.jar is as follows:

java [props] -jar oc4j.jar [args]


Note that system runtime options are specified before the oc4j.jar while the OC4J runtime arguments ([args]) are specified after oc4j.jar in the syntax. For example:

java -Xms256m -Xmx512m -jar oc4j.jar -validateXML -verbosity 10



Above options set an initial heap size of 256MB and a maximum heap size of 512MB.



Good Luck!

 

 
 
Google
 
Web web site