CORBA in OC4J not working
Hi all,
I have completed instalation of O9iAS (Win 2000) and OC4J without any errors but I am still unable to run petstore in OC4J. I can populate the tables but any call of mainservlet results in 500 internal error. As obvious from stack trace, corba is not configured properly. What do I need in order to make Corba working (classpath, environment variables) in OC4J?
part of stack trace:
java.lang.ExceptionInInitializerError: org.omg.CORBA.INITIALIZE: cannot instantiate com.netscape.ejb.client.Util minor code: 0 completed: No
at javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:308)
at javax.rmi.CORBA.Util.(Util.java:54)
at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:182)
at javax.rmi.PortableRemoteObject.(PortableRemoteObject.java:62)
at com.sun.j2ee.blueprints.petstore.util.EJBUtil.getSCCHome(EJBUtil.java:50)
at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getSCCEJB(ModelManager.java:124)
at com.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl.(ShoppingClientControllerWebImpl.java:65)
at com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processRequest(RequestProcessor.java:76)
at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doProcess(MainServlet.java:118)
at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.java:104)
Thanks for any ideas
Petr
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Petr Nalevka ([email protected]):
Hi all,
I have completed instalation of O9iAS (Win 2000) and OC4J without any errors but I am still unable to run petstore in OC4J. I can populate the tables but any call of mainservlet results in 500 internal error. As obvious from stack trace, corba is not configured properly. What do I need in order to make Corba working (classpath, environment variables) in OC4J?
part of stack trace:
java.lang.ExceptionInInitializerError: org.omg.CORBA.INITIALIZE: cannot instantiate com.netscape.ejb.client.Util minor code: 0 completed: No
at javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:308)
at javax.rmi.CORBA.Util.(Util.java:54)
at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:182)
at javax.rmi.PortableRemoteObject.(PortableRemoteObject.java:62)
at com.sun.j2ee.blueprints.petstore.util.EJBUtil.getSCCHome(EJBUtil.java:50)
at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getSCCEJB(ModelManager.java:124)
at com.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl.(ShoppingClientControllerWebImpl.java:65)
at com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processRequest(RequestProcessor.java:76)
at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doProcess(MainServlet.java:118)
at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.java:104)
Thanks for any ideas
Petr<HR></BLOCKQUOTE>
Peter -
I believe (last I heard) that OC4J does not yet fully support everything needed for CORBA...if someone has heard differenly, they can chime in...
Cheers
Ray
null
Similar Messages
-
Hi
I am using OBIEE 10.1.3.4 on my machine for the past 2 months and everything was fine till last week. When I start oc4j from Start - Programs - Oracle Business Intelligence - Start OC4J, console comes up and quickly vanishes i.e. its not being started. Due to this I can't use Presentation, publisher etc. I can't even open Systems management page to set oc4jadmin configurations.
Do I need to do/check some settings? Any pointers to solve this issue will be highly appreciated.
Thanks
AKTo be clear, what is the exact behaviour you've got? : -
can you access the presentation services login page?
do you get a 500 internal server error?
do you get a host not found type error?
You'll find your presentation services logs in <oraclebidata>/web/log/sawserver.out.log
Check analytics log here: <OracleBI home>\oc4j_bi\j2ee\home\application-deployments\analytics\application.log
Check your logs in here too: <oracle BI home>\oc4j_bi\j2ee\home\log -
Application restart not working in oc4j
I have an application that runs if I stop and start oc4j using stop and start options, but if I restart from em console it does not work properly eventhough em says the status is up.
Using oc4j 10.1.3.3
The application starts thread in ContextInitialzed() method of ServletListener which implements ServlerContextListener. Does it have to do anything with that.
Also the application does not log to the logger which is set using JVMARGS -Djava.util.logging.config.file in oc4j.cmd file. It logs when oc4j is stopped and started.
Any ideas?Greetings,
Are you looking in j2ee/home/log/oc4j/log.xml for your log information? Also, you can set the level of logging to FINEST in your j2ee-logging.xml. Once this is done please post the logging info relevant to your issue.
-Mike -
Working on Tomcat Server but same code is not working on oc4j server of E-B
Hello,
I have a jsp page that is working properly in tomcat 6 server but when i deployed it on oc4j server 10.1.3.1.0 than it is not working. I am confuse.
ERROR MESSAGE:
500 Internal Server Error
Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
CODE JSP:
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta
http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1" />
<meta
name="author"
content="MAX" />
<title>Test Register Page</title>
<link
rel="stylesheet"
href="css/style.css"
type="text/css"
media="screen" />
</head>
<body>
<div id="content">
<form name="demo" onsubmit="return validate_form()" action="RegisterServlet" method="post">
<fieldset>
<legend>VIEW USER</legend>
<table border=1>
<tr>
<td width="200px" align="center"><b>Bank Name</b></td>
<td width="200px" align="center"><b>User Name</b></td>
</tr>
<%
Connection connection = null;
String connectionURL = "jdbc:oracle:thin:@10.38.60.55:1521:edwdevdb";
ResultSet rs = null;
Statement statement = null;
try
// Get a Connection to the database
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
connection = DriverManager.getConnection(connectionURL,
"scott", "tiger");
statement = connection.createStatement();
rs = statement.executeQuery(" SELECT user_info.USER_KEY,user_info.FI_ID,d_fi.fi_nm, user_info.User_Name from user_info INNER join d_fi on user_info.fi_id = d_fi.fi_id order by fi_nm ");
//Set 'authentication' flag
while (rs.next())
%>
<tr>
<td width="200px"><a href="SearchUser?bankname=<%=rs.getString("USER_KEY")%">> <%= rs.getString("FI_NM")%></a> </td>
<td width="200px"><%= rs.getString("User_Name")%></td>
</tr>
<%
catch(SQLException e)
finally
rs.close();
statement.close();
connection.close();
%>
</table>
<label> </label>
</fieldset>
</form>
</div>
</body>
</html>
WEB xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<description>Register</description>
<display-name>Register</display-name>
<!-- Declare Servlets -->
<servlet>
<servlet-name>BaseServlet</servlet-name>
<servlet-class>BaseServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CategoryServlet</servlet-name>
<url-pattern>/Category</url-pattern>
</servlet-mapping>
<!-- Welcome File List -->
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
</web-app>
Edited by: bappy007 on Oct 10, 2010 1:57 AM
Edited by: bappy007 on Oct 10, 2010 1:58 AMERROR IN LOG FILE:
10/10/10 15:18:55.843 edwportal: Servlet error
java.lang.NullPointerException
at test.jspService(_test.java:93)
at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:619) -
OC4J JSP Debugging not working for all the jsps
Hi,
Initially I was not able to debug jsps using Eclipse and OC4J. The jsp debugging started working once I made the below changes:
1) global-web-application.xml is modified
Changed the attribute development="true" in orion-web-app
Added the below init param for the JspServlet
<init-param>
<param-name>debug</param-name>
<param-value>class</param-value>
</init-param>
If the jsps are present in a sub directory under the webcontent none of the breakpoints are working. I am still be able to view the jsp pages on the browser.
Tools: Oracle 10g Application Server Standalone version(10.1.3.5.0), JDK5, Windows XP, Eclipse Indigo
Project Structure:
Test (Eclipse Dynamic Web Project)
-WebContent
Sample.jsp ( Breakpoints are working)
-subF (Folder)
SubSample.jsp (Breakpoints are not working)
-WEB-INF
web.xml
Debugging worked for http://localhost:8888/Test/Sample.jsp
Debugging not working for http://localhost:8888/Test/subF/SubSample.jsp
Any help is highly appreciated.
Regards
DannyThis tells there is not enough main memory (not disk space) for the program to run.
- You can look the dump in ST22, it will have suggestions on increasing the ROLLAREA??, you can forward that to Basis.
- Most likely you will not have any more memory to assign so the above may not be feasible. Try to rework your query so it works with less data. -
Embedded OC4J Bindings Not Working
I am having trouble with loading an AppModule using the 10.1.3 OC4J Embedded AS. When try creating an ADF panel binding I get the following error:
javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: No such domain/application: "current-workspace-app/current-workspace-app";
However, I can get a working reference to the AppModule using:
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");
env.put(Context.SECURITY_CREDENTIALS, "welcome");
env.put(Context.PROVIDER_URL, "ormi://localhost:" + RMI_PORT + "/current-workspace-app");
Context ctx = new InitialContext(env);
AppModuleHome ejbhome = (AppModuleHome)PortableRemoteObject.narrow(ctx.lookup("AppModuleBean"), AppModuleHome.class);
RemoteAppModule ejb = ejbhome.create(env);
but I cannot use that in a data binding. Why does the first one using the generated code not work?Hi,
tried with JDeveloper 10.1.3.3 and this works for me. Try JDeveloper 10.1.3.3 - if it doesn't work, have a closer look at your sessionFacade
Frank -
Servlet forward not working with portal and oc4j
Scenario: page1.jsp, page2.jsp, MyServlet
Page1.jsp posts a form to MyServlet which then does some processing and forwards to page2.jsp.
Tests:
Works fine as a standalone app under oc4j.
Does not work as oc4j-driven portlet under latest portal. Specifically, it conks out on the forward.
Question:
Why?
What is the suggested workaround?
Michael Mogley
Software Engineer
LRN, Inc.James, thanks for responding but you are misunderstanding the problem. I have been able to do multipage and form-submit portlets as you describe for a long time. The issue is I am not able to use the jsp-forward directive within a validation servlet when using oc4j with portal. Here is what I'm trying to do in pseudocode:
EntryPoint.jsp
1. Enter form data.
2. Submit form to MyServlet.
MyServlet
1. Validate form.
2. If valid, <jsp-forward page="success.jsp"/>.
3. Else, <jsp-forward page="failure.jsp"/>.
The above works fine when used in an app running on oc4j outside of portal. It does not work when the same oc4j app is portletized. By the way, the portletized app WILL work if I change jsp-forward to jsp-include. So the problem is obviously in the forwarding.
Michael
I would try looking at the samples in the PDK-Java V2 that show how to do form input and multipage behavior. The form input shows you how to make a form in a portlet that when you submit it, the entered values appear in the portlet. The multipage portlet shows you how to have a portlet display one page and then when you click on a link, it shows you the second page.
It may make sense to copy the same code used for the samples and just tweak it to create a form that passes values from page1 to page2.
For more info on V2 parameters, see the article "A Primer on Parameters and Events" in the PDK-Previews (for subscribers to Developer Services only). You can also see the V1 article called "Understanding the Parameter Passing Portlet" for more info on parameter passing with portlets in V1.
James
James -
Remte JSP debugging for standalong OC4J 10.3.x not working
Follow the next steps:
1. Copying the ojc.jar, jdev-rt.jar and jdev-remote.jar to the OC4J_HOME/lib
directory
2. Add the next lines to the application.xml file
< !-- Remote Debug settings -->
< library path="../../../lib/jdev-rt.jar" />
< library path="../../../lib/ojc.jar" />
< library path="../../../lib/ojmisc.jar" />
3. Change the global-web-application.xml in a text editor.
From the following section:
< orion-web-app
jsp-cache-directory="./persistence"
servlet-webdir="/servlet"
development="false"
>
Change development="false" to development="true" to enable servlet
debugging.
4. In the global-web-application.xml file, modify the jsp servlet tags to be:
< servlet>
< servlet-name>jsp< /servlet-name>
< servlet-class>oracle.jsp.runtimev2.JspServlet< /servlet-class>
< init-param>
< param-name>debug_mode< /param-name>
< param-value>true< /param-value>
< /init-param>
< init-param>
< param-name>developer_mode< /param-name>
< param-value>true< /param-value>
< /init-param>
< init-param>
< param-name>encode_to_java< /param-name>
< param-value>true< /param-value>
< /init-param>
< init-param>
< param-name>emit_debuginfo< /param-name>
< param-value>true< /param-value>
< /init-param>
< init-param>
< param-name>jspjavacompiler< /param-name>
< param-value>oracle.jdevimpl.jsp.JspOjcCompiler< /param-value>
< /init-param>
< load-on-startup>0< /load-on-startup>
< /servlet>
5. Start the oc4j using the next command:
java -hotspot -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -jar oc4j.jar
6. Deploy the application
7. Select the Remote Debugging and Profiling option in the Run Configuration
for the project with the jsp to debug.
8. In the Debugger/Remote section of the run Configuration set the host, port
and timeout to the correct ones (name of the computer where you are running
the application).
When trying to run the jsp you are going to get the error:
STACK ERROR:
07/12/28 11:56:56
....\j2ee\home\application-deployments\MyJ2eeApp\MyJ2eeApp\persistence\_pages\_MyPage
error #552: illegal forward reference
07/12/28 11:56:56 /*@lineinfo:filename=/MyPage.jsp*/
07/12/28 11:56:56
2007-12-28 11:56:57.703 NOTIFICATION J2EE JSP-0008 Unable to dispatch JSP
Page : oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: _MyPage
Dependent class: oracle.jsp.runtimev2.JspPageInfo
Loader: oc4j:10.1.3
Code-Source: ..../j2ee/home/lib/ojsp.jar
Configuration: < code-source> in META-INF/boot.xml in ....\j2ee\home\oc4j.jar
This load was initiated at MyJ2eeAppInfo.web.MyJ2eeAppInfo.jsp26687282:0.0.0 using the loadClass() method.
The missing class is not available from any code-source or loader in the system.
at oracle.classloader.PolicyClassLoader.handleClassNotFound
(PolicyClassLoader.java:2068) [/C:/sw/oracle/oc4j101330/j2ee/home/lib/pcl.jar
(from system property java.class.path), by sun.misc.Launcher$AppClassLoader@9627532]
Reproduced the problem with the next products:
JDev OC4J Reproduced?
10.1.3.3.0 10.1.3.2.0 YES
10.1.3.3.0 10.1.3.3.0 YES
10.1.3.2.0 10.1.3.2.0 YES
When i try not use the following tags section
< init-param>
< param-name>emit_debuginfo< /param-name>
< param-value>true< /param-value>
< /init-param>
everything is working, but ojc not generate debug information for compiled JSP page and debugger doesn't stop at break points.
When i try use thise tags section, i got the next instructions for compiler in MyPage.java (it is generated from MyPage.jsp):
/*@lineinfo:filename=/MyPage.jsp*/
/*@lineinfo:generated-code*/
and compiler is generating next message in console:
error #552: illegal forward reference
07/12/28 11:56:56 /*@lineinfo:filename=/MyPage.jsp*/
and doesn't want to compile MyPage.java.
I need help with this problem! And i don't have any ideas how to solve it. People, help me, please!Dear dvohra, have you ever try yourself the method, which you suggest?
It is not working!
If i try to configure OC4j like in blog, IDE doesn't stop in JSP's break points.
So, I need in 100% working solution for remote debugging on oc4j 10.3.x. The main reason of using remote debug for me is that i have to develop portlets, and i have to invoke my portlets from portal. It is posible only when i deploy my portlet on stand alone oc4j!
I really need remote debug! And i'll be very thankful someone for 100% working solution! -
Response.addCookie() not working on OC4j stand alone server
Hi,
I have problem with response.addCookie(). see the code below:
if ((isCookie == null)||(!(isCookie.equals("yes")))) {
String cookiestr="I am OK";
Cookie m_cookie = new Cookie("msign",cookieStr);
m_cookie.setMaxAge(300);
response.addCookie(m_cookie);
This part of the code is in Struts Action class. The read Cookie part is in JSP.
Cookie[] cookies= request.getCookies();
if(cookies != null)
for (int i = 0; i < cookies.length; i++)
if (cookies.getName().equals("msign"))
String infor = cookies[i].getValue();
response.sendRedirect("hellow.jsp");
break;
Add cookie and read cookie work fine on my computer If I runs application on JDeveloper 10g embeded OC4j server. I can see the cookie in the Temporary Internet files
However, I deployed the application on OC4j standalone server, it does not work. response.addCookie() does not work at all. The cookie is not sent to the browser at all. There is no this cookie in Temporary internet file. The page is not directed to hellow.jsp.
Does anybody here know why? Any idea?
Thank you very much!
jfu
Edited by: jfu on Dec 15, 2009 1:26 PMHi,
I have problem with response.addCookie(). see the code below:
if ((isCookie == null)||(!(isCookie.equals("yes")))) {
String cookiestr="I am OK";
Cookie m_cookie = new Cookie("msign",cookieStr);
m_cookie.setMaxAge(300);
response.addCookie(m_cookie);
This part of the code is in Struts Action class. The read Cookie part is in JSP.
Cookie[] cookies= request.getCookies();
if(cookies != null)
for (int i = 0; i < cookies.length; i++)
if (cookies.getName().equals("msign"))
String infor = cookies[i].getValue();
response.sendRedirect("hellow.jsp");
break;
Add cookie and read cookie work fine on my computer If I runs application on JDeveloper 10g embeded OC4j server. I can see the cookie in the Temporary Internet files
However, I deployed the application on OC4j standalone server, it does not work. response.addCookie() does not work at all. The cookie is not sent to the browser at all. There is no this cookie in Temporary internet file. The page is not directed to hellow.jsp.
Does anybody here know why? Any idea?
Thank you very much!
jfu
Edited by: jfu on Dec 15, 2009 1:26 PM -
Startup class is not working in oc4j
hi
I have a servlet .In init of that servlet I will create an instance of a startup class .
In web.xml configuration I gave <load-on-startup></load-on-startup> .I created a war and an ear and deployed my application .The startup class is not called.
But when I configured the servlet in the default-web-app the startup class is running.
And furthur when I hot deploy my ear the startup class is running.
But when I restart my application server the startup class is not invoked.
can anybody help
Regards
Gajendran.Ghi
I had put auto-start=true in server.xml .then also it is not working.
when I redeploy my ear,the startup class is invoked,but when i restart the
server it does'nt
gaj -
Oracle 9iAS R2 - reports are not working - JSP Error
dear All
We are having issue in our Oracle 9i AS R2, the reports are not working, this thing happend suddenly , while runing any report the following messages are coming
==============
500 Internal Server Error
OracleJSP:
JSP Error:
Request URI:/repdemo/examples/Tools/test.jsp
Exception:
org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 0 completed: No
at com.inprise.vbroker.ProtocolEngine.PortfolioImpl.getConnector(PortfolioImpl.java:79)
at com.inprise.vbroker.ProtocolEngine.ManagerImpl.getConnector(ManagerImpl.java:147)
at com.inprise.vbroker.orb.DelegateImpl._bind(DelegateImpl.java:196)
at com.inprise.vbroker.orb.DelegateImpl.verifyConnection(DelegateImpl.java:365)
at com.inprise.vbroker.orb.DelegateImpl.is_local(DelegateImpl.java:493)
at org.omg.CORBA.portable.ObjectImpl._is_local(ObjectImpl.java:356)
at oracle.reports.engine._EngineReportStub.doneReport(_EngineReportStub.java:36)
at oracle.reports.definition.RWJspProxy.doneReport(RWJspProxy.java:261)
at oracle.reports.definition.RWReport.done(RWReport.java:1087)
at oracle.reports.jsp.ReportTag.release(ReportTag.java:398)
at oracle.jsp.runtime.OracleJspRuntime.releaseTagHandler0(OracleJspRuntime.java:1109)
at oracle.jsp.runtime.OracleJspRuntime.extraHandlePCFinally(OracleJspRuntime.java:1213)
at examples.tools._test._jspService(_test.java:292)
[SRC:/examples/Tools/test.jsp]
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
-=================
please help to resolve this issue.
thanks in advance.
regardsDear All
Just to share the solution of the problem.
We restarted the XServer which is on the other machine then Oracle 9i AS Middle Tiere and Infra. Once we restarted the XServer machine, and restarted the reports server , every thing back to normal.
regards -
Barcode report is not working in linux
hi,
i am running the report using the barcode, which is running perfectly in the windows server - i meant in the report builder.
but when i try run the same report in linux server through application, i am getting the below mentioned error:
Terminated with error:
REP-1401: 'beforereport': Fatal PL/SQL error occurred. ORA-39565: Message 39565 not found; product=RDBMS; facility=ORA
below mentioned is the code written in beforereport trigger:
globals.barcode_to_use := BarCodeConstants.BAR_CODE_128;
globals.bcobj := barcodemaker.new();
i have include the jar file path /ora/u01/oracle/v101/ds1/reports/jlib/oraclebarcode.jar both in class path and report_path, but still its not working.
any one had solve this issue?...pls help me out
for you info:
CLASSPATH=/ora/u01/oracle/v101/ds1/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEB-INF/lib/frmsrv.jar:/ora/u01/oracle/v101/ds1/jlib/repository.jar:/ora/u01/oracle/v101/ds1/jlib/ldapjclnt10.jar:/ora/u01/oracle/v101/ds1/jlib/debugger.jar:/ora/u01/oracle/v101/ds1/jlib/ewt3.jar:/ora/u01/oracle/v101/ds1/jlib/share.jar:/ora/u01/oracle/v101/ds1/jlib/utj.jar:/ora/u01/oracle/v101/ds1/jlib/zrclient.jar:/ora/u01/oracle/v101/ds1/reports/jlib/rwrun.jar:/ora/u01/oracle/v101/ds1/forms/java/frmwebutil.jar:/ora/u01/oracle/v101/ds1/reports/jlib/oraclebarcode.jar
RW=$ORACLE_HOME/reports; export RW
REPORTS_PATH=$ORACLE_HOME/reports/templates:$ORACLE_HOME/reports/samples/demo:$ORACLE_HOME/reports/integ:$ORACLE_HOME/reports/printers:${REPORTS_PATH}; export REPORTS_PATH
REPORTS_TMP=/tmp; export REPORTS_TMP
REPORTS_NO_DUMMY_PRINTER=TRUE; export REPORTS_NO_DUMMY_PRINTER
REPORTS_TAGLIB_URI=/WEB-INF/lib/reports_tld.jar; export REPORTS_TAGLIB_URI
REPORTS_CLASSPATH=$ORACLE_HOME/reports/jlib/rwbuilder.jar:$ORACLE_HOME/reports/jlib/rwrun.jar:$ORACLE_HOME/jlib/zrclient.jar:$ORACLE_HOME/j2ee/home/oc4j.jar:$ORACLE_HOME/j2ee/home/lib/ojsp.jar:$ORACLE_HOME/reports/jlib/oraclebarcode.jar; export REPORTS_CLASSPATH
repserver.conf file setting:
<engine id="rwEng" class="oracle.reports.engine.EngineImpl" initEngine="1" maxEngine="1" minEngine="0" engLife="50" maxIdle="30" callbackTimeOut="90000" jvmOptions="-Xms512m -Xmx512m" classPath="/ora/u01/oracle/v101/ds1/reports/jlib/oraclebarcode.jar">
<property name="sourceDir" value="/ora/u02/oraadmin/config/as2/app_qits_run"/>
<property name="tempDir" value="/ora/u02/oraadmin/config/as2/app_qits_tmp"/>
</engine>
<engine id="rwURLEng" class="oracle.reports.urlengine.URLEngineImpl" initEngine="1" maxEngine="1" minEngine="0" engLife="50" maxIdle="30" callbackTimeOut="60000" classPath="/ora/u01/oracle/v101/ds1/reports/jlib/oraclebarcode.jar"/>
thanks
renjishHello,
The first step if to find the PL/SQL line causing the error in 'cf_1formula':
create a procedure Trace in your Reports : (modify the line trace_file := Text_IO.Fopen('d:\temp\rep_trace.txt', 'A'); to adapt the filename to your system)
PROCEDURE Trace (trace_string in varchar2) IS
trace_file Text_IO.File_Type;
BEGIN
trace_file := Text_IO.Fopen('d:\temp\rep_trace.txt', 'A');
Text_IO.Put_Line(trace_file, trace_string);
Text_IO.Fclose (trace_file);
END;
Then, add some calls to this procedure in the program unit 'cf_1formula'
trace('Before line 1';
<PL/SQL code of line 1>
trace('Before line 2';
<PL/SQL code of line 2>
trace('Before line 3';
<PL/SQL code of line 3>
Excecute the Reports and find in the file 'd:\temp\rep_trace.txt' the last line executed.
Regards -
Hello,
I have installed Oracle Developer Suite 10gR2 (Forms/Reports) on my desktop, they were both working fine for a long time. I installed Discoverer 10gR2 (Administrator and Desktop) on the same machine recently. The Oracle Forms is still good, I can run forms on the local machine after I start OC4J instance. But the Reports is always hanging, even Showjobs. I can access http://host:port/reports/rwservlet, but anything under that is not working, hanging.......
Please help! Thanks in advance.Hello,
The problem may be a PATH problem.
Start the reports server after having set the PATH :
set ORACLE_HOME=d:\oracle\ods1012
set PATH=%ORACLE_HOME%\jdk\jre\bin\classic;%ORACLE_HOME%\jdk\jre\bin;%ORACLE_HOME%\jdk\jre\bin\client;%ORACLE_HOME%\jlib;%ORACLE_HOME%\bin;%ORACLE_HOME%\jdk\bin;%ORACLE_HOME%\jre\1.4.2\bin\client;%ORACLE_HOME%\jre\1.4.2\bin;
Regards -
Client.ole2 is not working
Hi i'm migrating to from fomrs 4.5 to 10g as DDE package are not supported in the
10g. i'm using client.ole2
I have written following code to open a stored excel sheet(which is a template for entering the data). this is not working not giving any error.
please tell me where is the error
declare
application client_ole2.obj_type;
workbooks client_OLE2.OBJ_TYPE;
workbook client_OLE2.OBJ_TYPE;
worksheets client_OLE2.OBJ_TYPE;
worksheet client_OLE2.OBJ_TYPE;
worksheet2 client_OLE2.OBJ_TYPE;
worksheet3 client_OLE2.OBJ_TYPE;
args1 client_ole2.list_type;
L_PATH VARCHAR2(100);
COMMAND1 VARCHAR2(5000);
BEGIN
l_PATH := SFN_GET_DIRECTORY_PATH('DIR0003');
COMMAND1 := L_PATH||'\Formats\EMP_NEW_UPLOAD.xls';
application := Client_OLE2.create_obj('Excel.Application');
workbooks := Client_OLE2.Get_Obj_Property(application, 'Workbooks');
args1 := Client_Ole2.create_arglist;
Client_Ole2.add_arg(args1, 'c:\emp.xls');
workbook := Client_Ole2.invoke_obj(workbooks, 'Open', args1);
worksheets := Client_Ole2.get_obj_property(workbook, 'worksheets');
CLIENT_OLE2.destroy_arglist(args1);
CLIENT_OLE2.SET_PROPERTY(application,'Visible',1);
CLIENT_OLE2.SET_PROPERTY(application,'DisplayAlerts',0);
end;As Gerald Krieger suggests, it sounds as if you have not installed the Jacob library correctly. Most WebUtil functions, like CLIENT_GET_FILE_NAME, are included in the base 10g install -- OLE functionality, however, is not. This is because the Jacob library, which is required for OLE support, is not an Oracle product and, as such, could not legally be distributed by Oracle.
Jacob can be downloaded from http://sourceforge.net/projects/jacob-project
Configuring the OC4J for developing/testing OLE-enabled forms involves these steps:
1. Download the Jacob library and extract two files -- jacob.jar & jacob.dll
2. Place a signed copy of jacob.jar in ...\forms\java
3. Place a copy of jacob.dll in ...\forms\webutil
4. If you are not using Jacob 1.8, but are instead using a different version, you must edit ...\forms\server\webutil.cfg by locating the line which contains install.syslib.0.7.1=jacob.dll|94208|1.0|true and replacing 94208 with the size (in bytes) of your particular version of jacob.dll
If these instructions are unclear, please accept my apologies and refer to the WebUtil documentation for details.
Finally, be aware that your forms will not deploy correctly unless ...\forms\webutil.pll has been compiled. You must be connected to a WebUtil-ready database in order for webutil.pll to compile successfully.
Hope this helps,
Eric Adamson
Lansing, Michigan -
Jms is not working properly in clustered environment
Hi all,
i am using the application server oc4j 10.1.3.1.0 enterprise edition . my application is standalone application(thick client)
we are using the jndi.properties as follows ...
java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
java.naming.provider.url=opmn:ormi://172.16.1.38:6005:group/Security,opmn:ormi://172.16.1.38:6006:deceval_group/Security
java.naming.security.principal=oc4juser
java.naming.security.credentials=oc4juser
oracle.j2ee.rmi.loadBalance=lookup
we have two application servers in cluster topology as u can see above we have used one instance from one application server and one from another.
i have seen that for every instance there one jms server. at runtime it is taking one application servers services
say opmn port 6005 but when the application is connecting to the another application server say opmn 6006
here jms is not working properly when i send message
As we have clustered environment message must be propagated all the applications who use above jndi.properties.
if i keep use only one application server opmn say
java.naming.provider.url=opmn:ormi://172.16.1.38:6005:group/Security
then its is working excellently
please can u provide any solution ASAP
thanks in advance
ManuDear Aravindth
(.*?) means -> Select all contents from where you start and end,
For Ex. <month>(.*?)</month> then Select for start <month> and end last </month> tag.
(?) Match zero or one occurrences. Equivalent to {0,1}.
(*) Match zero or more occurrences. Equivalent to {0,}.
(+) Match one or more occurrences. Equivalent to {1,}.
(.) (Dot). Match any character except newline or another Unicode line terminator.
(.*?) means -> Zero or more times Match any character except newline or another Unicode line terminator + Match zero or more occurrences. Equivalent to {0,}.+Match zero or one occurrences. Equivalent to {0,1}.
Could you please refere the below cite :
http://www.javascriptkit.com/jsref/regexp.shtml
Thanks & Regards
T.R.Harihara SudhaN
Maybe you are looking for
-
Setting value for attribute 'PO_NUMBER_SOLD' using setter method
Hi Experts, I need to set the value of a screen field according to some condition. I am using setter method of this attribute to set the value but it is not getting changed. I have written following code in DO_PREPARE_OUTPUT method of implementation
-
Can't figure it out! How to open a fullscreen game in a separate window.
I have a game I like to play (Fairy Tower Pinball by LittleWing) but due to some glitch it will only play in fullscreen mode. In its options panel there are 3 different settings (desktop, standard and wide screen) but none of them seem to change the
-
How to reprogram my blackberry 8520 since it wont start/open?
-
Hi, I am using the tool DMEE in which i have a series of segment node for 5 different banks which optionally get utilized according to the condition i give for each of the 5 banks. I am right now having an issue with giving a second condition. Whenev
-
Finder - Folder Info and Resize Slider
Hi, I couldn't find this in any other discussions and hopefully it is a stupid question with an easy answer... I'm not a big fan of the new simplified finder. As I work with images and do a lot of resizing, renaming and select certain images from a f