Error in run EJB
I deploy EJB in OC4J successfull but when I run it has an error:
07/03/02 14:25:41 java.lang.NullPointerException: domain was null
07/03/02 14:25:41 at com.evermind.server.rmi.RMIServer.addNode(RMIServer.j
ava:847)
07/03/02 14:25:41 at com.evermind.server.rmi.RMIServer.getConnection(RMISe
rver.java:950)
07/03/02 14:25:41 at com.evermind.server.rmi.RMIInitialContextFactory.getI
nitialContext(RMIInitialContextFactory.java:382)
07/03/02 14:25:41 at javax.naming.spi.NamingManager.getInitialContext(Nami
ngManager.java:662)
07/03/02 14:25:41 at javax.naming.InitialContext.getDefaultInitCtx(Initial
Context.java:243)
07/03/02 14:25:41 at javax.naming.InitialContext.init(InitialContext.java:
219)
07/03/02 14:25:41 at javax.naming.InitialContext.<init>(InitialContext.jav
a:195)
07/03/02 14:25:41 at test.HelloClient.<init>(HelloClient.java:29)
07/03/02 14:25:41 at Hello.jspService(_Hello.java:47)
07/03/02 14:25:41 at com.orionserver.http.OrionHttpJspPage.service(OrionHt
tpJspPage.java:56)
07/03/02 14:25:41 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTabl
e.java:350)
07/03/02 14:25:41 at oracle.jsp.runtimev2.JspServlet.internalService(JspSe
rvlet.java:509)
07/03/02 14:25:41 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.ja
va:413)
07/03/02 14:25:41 at javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:853)
07/03/02 14:25:41 at com.evermind.server.http.ServletRequestDispatcher.inv
oke(ServletRequestDispatcher.java:824)
07/03/02 14:25:41 at com.evermind.server.http.ServletRequestDispatcher.for
wardInternal(ServletRequestDispatcher.java:330)
07/03/02 14:25:41 at com.evermind.server.http.HttpRequestHandler.processRe
quest(HttpRequestHandler.java:830)
07/03/02 14:25:41 at com.evermind.server.http.HttpRequestHandler.run(HttpR
equestHandler.java:285)
07/03/02 14:25:41 at com.evermind.server.http.HttpRequestHandler.run(HttpR
equestHandler.java:126)
07/03/02 14:25:41 at com.evermind.util.ReleasableResourcePooledExecutor$My
Worker.run(ReleasableResourcePooledExecutor.java:192)
07/03/02 14:25:41 at java.lang.Thread.run(Thread.java:534)
07/03/02 14:25:45 OrionCMTConnection not closed, check your code!
07/03/02 14:25:45 Logical connection not closed, check your code!
07/03/02 14:25:45 (Use -Djdbc.connection.debug=true to find out where the leaked
connection was created)
Help me please!!!
Thanks!!!
I deploy EJB in OC4J successfull but when I run it has an error:
07/03/02 14:25:41 java.lang.NullPointerException: domain was null
07/03/02 14:25:41 at com.evermind.server.rmi.RMIServer.addNode(RMIServer.j
ava:847)
07/03/02 14:25:41 at com.evermind.server.rmi.RMIServer.getConnection(RMISe
rver.java:950)
07/03/02 14:25:41 at com.evermind.server.rmi.RMIInitialContextFactory.getI
nitialContext(RMIInitialContextFactory.java:382)
07/03/02 14:25:41 at javax.naming.spi.NamingManager.getInitialContext(Nami
ngManager.java:662)
07/03/02 14:25:41 at javax.naming.InitialContext.getDefaultInitCtx(Initial
Context.java:243)
07/03/02 14:25:41 at javax.naming.InitialContext.init(InitialContext.java:
219)
07/03/02 14:25:41 at javax.naming.InitialContext.<init>(InitialContext.jav
a:195)
07/03/02 14:25:41 at test.HelloClient.<init>(HelloClient.java:29)
07/03/02 14:25:41 at Hello.jspService(_Hello.java:47)
07/03/02 14:25:41 at com.orionserver.http.OrionHttpJspPage.service(OrionHt
tpJspPage.java:56)
07/03/02 14:25:41 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTabl
e.java:350)
07/03/02 14:25:41 at oracle.jsp.runtimev2.JspServlet.internalService(JspSe
rvlet.java:509)
07/03/02 14:25:41 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.ja
va:413)
07/03/02 14:25:41 at javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:853)
07/03/02 14:25:41 at com.evermind.server.http.ServletRequestDispatcher.inv
oke(ServletRequestDispatcher.java:824)
07/03/02 14:25:41 at com.evermind.server.http.ServletRequestDispatcher.for
wardInternal(ServletRequestDispatcher.java:330)
07/03/02 14:25:41 at com.evermind.server.http.HttpRequestHandler.processRe
quest(HttpRequestHandler.java:830)
07/03/02 14:25:41 at com.evermind.server.http.HttpRequestHandler.run(HttpR
equestHandler.java:285)
07/03/02 14:25:41 at com.evermind.server.http.HttpRequestHandler.run(HttpR
equestHandler.java:126)
07/03/02 14:25:41 at com.evermind.util.ReleasableResourcePooledExecutor$My
Worker.run(ReleasableResourcePooledExecutor.java:192)
07/03/02 14:25:41 at java.lang.Thread.run(Thread.java:534)
07/03/02 14:25:45 OrionCMTConnection not closed, check your code!
07/03/02 14:25:45 Logical connection not closed, check your code!
07/03/02 14:25:45 (Use -Djdbc.connection.debug=true to find out where the leaked
connection was created)
Help me please!!!
Thanks!!!
Similar Messages
-
Error while running EJB Client
Hi All,
I have just written a program in EJB for currency conversion. But while running the client , i am getting the following error:
C:\Java Source Code\EJB>java CalculatorClient
java.lang.NoSuchMethodError: loadClass0
at com.sun.corba.ee.internal.util.JDKClassLoader.specialLoadClass(Native
Method)
at com.sun.corba.ee.internal.util.JDKClassLoader.loadClass(JDKClassLoade
r.java:58)
at com.sun.corba.ee.internal.util.JDKBridge.loadClassM(JDKBridge.java:18
0)
at com.sun.corba.ee.internal.util.JDKBridge.loadClass(JDKBridge.java:83)
at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.loadClass(Util.java:37
8)
at javax.rmi.CORBA.Util.loadClass(Unknown Source)
at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(Unknown Sour
ce)
at javax.rmi.PortableRemoteObject.<clinit>(Unknown Source)
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
a:57)
etc........
The files that have been created are in the same folder which are as follows:
Calculator.java Calculator.class - Remote Interface
CalculatorHome.java CalculatorHome.class - Home Interface
CalculatorEJB.java CalculatorEJB.class - EJB class
ejbClient.jar - Client Jar
ejb.ear
The version for J2EE is 1.2.1
Version for Jdk is 1.4.2
Operating System - WinXP
Could somebody pls help?
Cooljacks... but you did deploy it to an application server, right?
-
Error while running EJB from Client
I am able to successfuly deploy the EJB in Oracle 8.1.5, While running the Client code I am getting the following error, can any one help how to solve.
org.omg.CORBA.INTERNAL[completed=MAYBE, reason=java.lang.ClassNotFoundException: com.visigenic.vbroker.ds.DSUser]
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at org.omg.CORBA.SystemException.<init>(Compiled Code)
at org.omg.CORBA.INTERNAL.<init>(Compiled Code)
at com.visigenic.vbroker.orb.ORB.create(Compiled Code)
at com.visigenic.vbroker.orb.ORB.create(Compiled Code)
at com.visigenic.vbroker.orb.ORB.locator(Compiled Code)
at com.visigenic.vbroker.orb.ORB.bind(Compiled Code)
at com.visigenic.vbroker.orb.UnboundStubDelegate.bind(Compiled Code)
at com.visigenic.vbroker.orb.UnboundStubDelegate.request(Compiled Code)
at com.visigenic.vbroker.orb.UnboundStubDelegate.request(Compiled Code)
at org.omg.CORBA.portable.ObjectImpl._request(Compiled Code)
at org.omg.CORBA._st_InitialReferences.get(Compiled Code)
at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(Compiled Code)
at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(Compiled Code)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(Compiled Code)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(Compiled Code)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.defaultSession(Compiled Code)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.lookup(Compiled Code)
at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(Compiled Code)
at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(Compiled Code)
at javax.naming.InitialContext.lookup(Compiled Code)
at Date.Client.main(Compiled Code)
nullVerify if the connect.properties match your deployment mode viz Local, EJB or Oracle8i.
Uday -
Error in running EJB Client on a remote machine
I delploy my beans and can run the EJB Client locally. However when I try to run the Client on another machine, there are errors.
Here is the errors
Syntax error
Out of environment space
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/enterprise/appclient/Main
I have follow the step in the j2ee tutorial and set the env variables according. Here is the bat file I write
set APPCPATH=CBSAppClient.jar
set VMARGS=-Dj2eelogin.name=guest -Dj2eelogin.password=guest123 -Dorg.omg.CORBA.ORBInitialHost=192.168.0.2
runclient -client CBSApp.ear -name CBSClient -textauth
Do anyone facing the same problem with me?
And how can I solve the problems?
This is really URGENT, please helpYou are running on Windows 9x or Me, right? The darn OS has 300 or so bytes allocated for environment by default.
Try setting the Initial environment to 4096 in the Properties|Memory tab for the batch file. That will get rid of "Out of environment space". The syntax error is another matter; Windows (except NT and derivatives) shells do not allow '=' in an environment variables value. You cannot overcome that. Some software (Sybase for instance) interprets # as = just because of that. Unfortunately, the JVM doesn't take such an approach.
Better, grab copies of Unix utilities for Windows (www.gnu.org) including the wonderful shell 'bash' and write .sh scripts, which are inherently more powerful. -
Error while running EJB from java client on JBOSS
Hi
As i am new to EJB i have created a helloworld application in ejb which is working fine when i try to call it from servlet but when i try to invoke the same ejb from java client (i.e from diff jvm) on jboss i got the following error:
javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1399)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.gl.TestClient.main(TestClient.java:39)
Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:254)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1370)
... 4 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:228)
... 5 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:266)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:69)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:62)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:224)
... 5 more
Following is my code:
Home Interface:
package com.gl;
import javax.ejb.CreateException;
public interface testHome extends EJBHome {
String JNDI_NAME = "testBean";
public test create()
throws java.rmi.RemoteException,CreateException;
Remote Interface:
package com.gl;
import java.rmi.RemoteException;
import javax.ejb.EJBObject;
public interface test extends EJBObject {
public String welcomeMessage() throws RemoteException;
Bean:
package com.gl;
import java.rmi.RemoteException;
import javax.ejb.EJBException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
public class testbean implements SessionBean {
public void ejbActivate() throws EJBException, RemoteException {
// TODO Auto-generated method stub
public void ejbPassivate() throws EJBException, RemoteException {
// TODO Auto-generated method stub
public void ejbRemove() throws EJBException, RemoteException {
// TODO Auto-generated method stub
public void setSessionContext(SessionContext arg0) throws EJBException,
RemoteException {
// TODO Auto-generated method stub
public void ejbCreate(){}
public String welcomeMessage(){
return "Welcome to the World of EJB";
ejb-jar.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>testBean</ejb-name>
<home>com.gl.testHome</home>
<remote>com.gl.test</remote>
<ejb-class>com.gl.testbean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
jboss.xml:
<?xml version='1.0' ?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
<jboss>
<enterprise-beans>
<entity>
<ejb-name>testBean</ejb-name>
<jndi-name>testBean</jndi-name>
</entity>
</enterprise-beans>
</jboss>
Client code:
package com.gl;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
public class TestClient {
public static void main(String[] args) throws Exception{
try{
/* Properties props=new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
props.put(Context.PROVIDER_URL, "localhost:1099");
System.out.println("Properties ok");
//env.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.HttpNamingContextFactory");
//env.put(Context.PROVIDER_URL,"http://localhost:8080");
//env.put(Context.SECURITY_PRINCIPAL, "");
//env.put(Context.SECURITY_CREDENTIALS, "");
Context ctx=new InitialContext(props);
System.out.println("context ok");
//testHome home = (testHome)ctx.lookup("testBean");
Object obj = ctx.lookup ("testBean");
System.out.println("ojb = " + obj);
testHome ejbHome = (testHome)PortableRemoteObject.narrow(obj,testHome.class);
test ejbObject = ejbHome.create();
String message = ejbObject.welcomeMessage();
System.out.println("home ok");
System.out.println("remote ok");
System.out.println(message);
catch(Exception e){e.printStackTrace();}
I am able to successfully deployed my ejb on JBOSS but i m getting above error when i am trying to invoke ejb from java client.
kindly suggest me something to solve this issue.
Regards
Gagan
Edited by: Gagan2914 on Aug 26, 2008 3:28 AMIs it a remote lookup? Then maybe this will help:
[http://wiki.jboss.org/wiki/JBoss42FAQ]
- Roy -
Error while running ejbc. Fatal error from EJB Compiler ---- Error while pr
Hi!
I was deploying a test application for a session bean with sun 1 studio 5 and I started getting this message while deploying.
I had tested the bean previously and I had no problems.
I found this in the sun app server 7 release notes, but I don't understand what I'm supposed to do...
"Deployment of CMP beans fails.
The following error is thrown because there are no <query-params> entries in the container-managed persistence (CMP) bean in sun-ejb-jar.xml file:
Error while running ejbc. Fatal error from EJB Compiler ---- Error while processing CMP beans.
Solution
Even if it isn't necessary for the CMP beans, add the query-params tag for finders in the sun-ejb-jar.xml file with the empty parameters."
Here is my sun-ejb-jar.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Sun ONE Application Server 7.0 EJB 2.0//EN" "http://www.sun.com/software/sunone/appserver/dtds/sun-ejb-jar_2_0-0.dtd">
<sun-ejb-jar>
<enterprise-beans>
<name>GestorDoBanco_EJBModule</name>
<ejb>
<ejb-name>Cliente</ejb-name>
<jndi-name>ejb/Cliente</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/Cliente.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>ClienteAssociadoAConta</ejb-name>
<jndi-name>ejb/ClienteAssociadoAConta</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/ClienteAssociadoAConta.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>Conta</ejb-name>
<jndi-name>ejb/Conta</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/Conta.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>GestorDoBanco</ejb-name>
<jndi-name>ejb/GestorDoBanco</jndi-name>
<pass-by-reference>false</pass-by-reference>
</ejb>
<ejb>
<ejb-name>MensagemM003</ejb-name>
<jndi-name>ejb/MensagemM003</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/MensagemM003.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>MensagemM003Rejeitada</ejb-name>
<jndi-name>ejb/MensagemM003Rejeitada</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/MensagemM003Rejeitada.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>MensagemM012</ejb-name>
<jndi-name>ejb/MensagemM012</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/MensagemM012.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>MensagemM012Rejeitada</ejb-name>
<jndi-name>ejb/MensagemM012Rejeitada</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/MensagemM012Rejeitada.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>MensagemM103</ejb-name>
<jndi-name>ejb/MensagemM103</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/MensagemM103.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>MensagemM112</ejb-name>
<jndi-name>ejb/MensagemM112</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/MensagemM112.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>Registo</ejb-name>
<jndi-name>ejb/Registo</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/Registo.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>TransaccaoConfirmada</ejb-name>
<jndi-name>ejb/TransaccaoConfirmada</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/TransaccaoConfirmada.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>TransaccaoFinalizada</ejb-name>
<jndi-name>ejb/TransaccaoFinalizada</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/TransaccaoFinalizada.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<ejb>
<ejb-name>TransaccaoIniciada</ejb-name>
<jndi-name>ejb/TransaccaoIniciada</jndi-name>
<pass-by-reference>false</pass-by-reference>
<cmp>
<mapping-properties>pcImpl0/moduleComp1/Data/TransaccaoIniciada.mapping</mapping-properties>
</cmp>
<refresh-period-in-seconds>600</refresh-period-in-seconds>
</ejb>
<pm-descriptors>
<pm-descriptor>
<pm-identifier>SunONE</pm-identifier>
<pm-version>1.0</pm-version>
<pm-class-generator>com.iplanet.ias.persistence.internal.ejb.ejbc.JDOCodeGenerator</pm-class-generator>
<pm-mapping-factory>com.iplanet.ias.cmp.NullFactory</pm-mapping-factory>
</pm-descriptor>
<pm-inuse>
<pm-identifier>SunONE</pm-identifier>
<pm-version>1.0</pm-version>
</pm-inuse>
</pm-descriptors>
<cmp-resource>
<jndi-name>mysqlpmanager</jndi-name>
<default-resource-principal>
<name>bes</name>
<password>besbes</password>
</default-resource-principal>
</cmp-resource>
</enterprise-beans>
</sun-ejb-jar>
Thanks in advance for any help.
Nunohttp://docs.sun.com/source/817-2175-10/decmp.html
Please go to the above docs and look thru the examples given in it.
Example 2
This query returns all products in a specified price range. It defines two query parameters which are the lower and upper bound for the price: double low, double high. The filter compares the query parameters with the price field:
"low < price && price < high"
The finder element of the sun-ejb-jar.xml file would look like this:
<finder>
<method-name>findInRange</method-name>
<query-params>double low, double high</query-params>
<query-filter>low < price && price <
high</query-filter
</finder>
I hope this hepls. In your case u just have to make it null. -
ORA-00904 Error while running CMP EJB
When I am running my CMP bean, I get following error,
2006-07-02 09:58:17,171 DEBUG org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.AccountBean#fi ndByAccountNumber] Executing SQL: SELECT t0_a.ACCOUNT.UOID FROM ACCOUNT t0_a WHERE (t0_a.ACCOUNT.ACCOUNT_NUMBER = ?)
2006-07-02 09:58:17,250 ERROR [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.AccountBean#fi ndByAccountNumber] Find failed java.sql.SQLException:
ORA- 00904: "T0_A"."ACCOUNT"."ACCOUNT_NUMBER": invalid identifier.
Why is it giving invalide identifier? the length of this identifer is also less then 30 and there are no special characters being used in it.I think I have read that you cannot use the "." to navigate through the object, you can only use it for accessing a field of an object (i.e. a column of a table in the DB).
So, never use more than 1 "." in your requests. In your case, I guess that you need to reformulate the request. -
The server deploy EJB but I run EJB Client program,The error msg is can't find JNDI
Hi all:
I am using Weblogic 6.1/SP2. I use the console to start
server and deploy EJB jar,from the msg I see my EJB jar
been deployed. When I run EJB Client program, the error
msg is can't find JNDI name t3://URL:11003.....
I check my ejb-jar.xml amd weblogic-ejb-jar.xml are fine.
Last week I did deploy EJB and ran the client both
suceessful. Any ideas, Thank you.Sabha:
Thank you for your help info, I soloved the problem.
The problem is the ejb jar was deleted(I don't why)
then System Admin to deploy EJB jar from Admin console.
After that everything is fine.
"Sabha" <[email protected]> wrote:
Run weblogic.Admin -url ... LIST to see whether the JNDI name is there
. or
you can view the jndi tree of the server from the console (right click
on
server name) and check whether the ejb home is bound to the correct jndi
name.
-Sabha
"Matthew Shinn" <[email protected]> wrote in message
news:[email protected]..
Hi Albert,
I would double check to make sure the EJB was indeed deployed (check
server log). What message did you see that leads you to believe itwas
successfully deployed? Also, verify the JNDI name you are lookingup in
your client matches the JNDI name for the EJB. If this doesn't solve
the problem, please post the error message and stack trace you are
seeing on the client.
- Matt
Albert Pi wrote:
Hi all:
I am using Weblogic 6.1/SP2. I use the console to start
server and deploy EJB jar,from the msg I see my EJB jar
been deployed. When I run EJB Client program, the error
msg is can't find JNDI name t3://URL:11003.....
I check my ejb-jar.xml amd weblogic-ejb-jar.xml are fine.
Last week I did deploy EJB and ran the client both
suceessful. Any ideas, Thank you. -
Error while running ejbc - Deployment time
Whilst trying to deploy my WSE through J2EE deploy tool i get the follwoing error:
Deployment failed on target Server localhost:4848 : Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception
I am not using ejb as far as I'm aware. I have succesfully buit my WSE using asant with no compilation errors.
Here is copy of the code
package rcews;
import java.rmi.RemoteException;
import java.util.Vector;
import java.sql.*;
import javax.sql.DataSource;
//import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.xml.rpc.server.ServletEndpointContext;
import javax.xml.rpc.server.ServiceLifecycle;
import javax.xml.rpc.ServiceException;
public class RceWSImplementation implements RceWSInterface, ServiceLifecycle {
private DataSource ds;
ServletEndpointContext endPtCntxt;
public void init(Object context) throws ServiceException {
try {
endPtCntxt = (ServletEndpointContext) context;
InitialContext ic = new InitialContext();
// Specify the logical name of the database
// Obtain the DataSource object associated with the logical name
ds = (DataSource) ic.lookup("java:comp/env/jdbc/rcedstar");
ic.close();
} catch(NamingException ne) {
ne.printStackTrace();
throw new ServiceException("\nCannot initialise JNDI ENC\n", ne);
public String [] getSignals() throws RemoteException {
Statement sqlStmnt;
ResultSet rs;
String countQuery = "SELECT COUNT(DISTINCT signal_ref) FROM tblSignals";
String query = "SELECT DISTINCT signal_ref FROM tblSignals ORDER BY signal_ref";
String[] signals = null;
int count = 0;
try {
// Establish connection with the database and return a Connection object
Connection con = ds.getConnection();
System.out.println("Connection made Successfully");
// Create and execute SQL statement
sqlStmnt = con.createStatement();
rs = sqlStmnt.executeQuery(countQuery);
if(rs.next()) {
int size = rs.getInt(0);
signals = new String[size];
rs = sqlStmnt.executeQuery(query);
// Move through ResultSet and pull singal reference information
while(rs.next()) {
signals[count] = rs.getString("signal_ref");
count++;
con.close();
} catch (Exception e) {
e.printStackTrace();
return signals;
public Vector getLampDurations(String[] signal_refs, String[] lamps, int hours) throws RemoteException {
// Varaible Declarations
Vector details = null;
String signals, lamp_colours;
PreparedStatement psqlStmt;
ResultSet rs;
String query = "SELECT signal_ref, light, SUM(duration), SUM(on_count) FROM tblsignals, tblsignal_events " +
"WHERE tblSignals.id = tblSignal_Events.id AND tblSignals.signal_ref IN (?) AND tblSignals.light IN (?) " +
"GROUP BY signal_ref, light" +
"HAVING SUM(duration) > ?";
StringBuffer sbSignals = new StringBuffer(50);
StringBuffer sbLamps = new StringBuffer(31);
// Build Strings for use in Prepared SQL statements
for(int i=0;i<signal_refs.length-1;i++) {
sbSignals.append("'" + signal_refs[i] + "'");
sbLamps.append("'" + lamps[i] + "'");
if (i <= signal_refs.length - 2) {
sbSignals.append(",");
sbLamps.append(",");
signals = new String(sbSignals);
lamp_colours = new String(sbLamps);
try {
// Establish connection with the database and return a Connection object
Connection con = ds.getConnection();
System.out.println("Connection made Successfully");
// Apply strings to statement
psqlStmt = con.prepareStatement(query);
psqlStmt.setString(1, signals);
psqlStmt.setString(2, lamp_colours);
psqlStmt.setInt(3, hours);
// Obtain data from DB
details = new Vector(4);
String[] results = new String[4];
rs = psqlStmt.executeQuery();
while(rs.next()) {
// Copy contents of the ResultSet into a String Array for each record
int i = 0;
results[i] = rs.getString(1); //Signal Reference
results[i++] = rs.getString(2); //Lamp (i.e colour)
double seconds = rs.getDouble(3); //Duration
seconds = seconds / (60*60); //Convert Seconds to Hours - would be nice to convert to Hours:mins:secs
results[i++] = String.valueOf(seconds);
results[i++] = String.valueOf(rs.getInt(4)); //Number of Times lamp has been switched on
// Append the string Array to a Vector
details.addElement(results);
if (psqlStmt != null) { psqlStmt.close(); }
if (con != null) { con.close(); }
} catch (Exception e) {
e.printStackTrace();
return details;
public void destroy() {
ds = null;
}Have since found this from the server log but I have no idea about how to solve this!
[#|2004-03-10T15:08:04.574+0000|INFO|j2ee-appserver1.4|javax.enterprise.system.tools.deployment|_ThreadID=13;|DPL5109: EJBC - START of EJBC for [RCE-WebService]|#]
Remote message: Processing beans ....
C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\RCE-WebService\WEB-INF\classes\rcews\RceWSInterface_Tie.java:32: '(' or '[' expected
super(new rcews.RCE-WebService_SerializerRegistry().getRegistry());
^
C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\RCE-WebService\WEB-INF\classes\rcews\RceWSInterface_Tie.java:32: ')' expected
super(new rcews.RCE-WebService_SerializerRegistry().getRegistry());
^
C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\RCE-WebService\WEB-INF\classes\rcews\RCE-WebService_SerializerRegistry.java:18: '{' expected
public class RCE-WebService_SerializerRegistry implements SerializerConstants {
^
C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\RCE-WebService\WEB-INF\classes\rcews\RCE-WebService_SerializerRegistry.java:33: <identifier> expected
registerSerializer(mapping,rcews.RceWSInterface_getLampDurations_RequestStruct.class, type, serializer);
^
C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\RCE-WebService\WEB-INF\classes\rcews\RCE-WebService_SerializerRegistry.java:33: '{' expected
registerSerializer(mapping,rcews.RceWSInterface_getLampDurations_RequestStruct.class, type, serializer);
^
C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\RCE-WebService\WEB-INF\classes\rcews\RCE-WebService_SerializerRegistry.java:65: illegal start of type
return registry;
^
C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\RCE-WebService\WEB-INF\classes\rcews\RCE-WebService_SerializerRegistry.java:65: <identifier> expected
return registry;
^
C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\RCE-WebService\WEB-INF\classes\rcews\RCE-WebService_SerializerRegistry.java:68: 'class' or 'interface' expected
private static void registerSerializer(TypeMapping mapping, Class javaType, QName xmlType,
^
C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\RCE-WebService\WEB-INF\classes\rcews\RCE-WebService_SerializerRegistry.java:74: 'class' or 'interface' expected
^
C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\RCE-WebService\WEB-INF\classes\rcews\RCE-WebService_SerializerRegistry.java:75: 'class' or 'interface' expected
^
10 errors -
Hi while we are running direct user provisioning to create a OIM user into APPS (fnd_user) and it is getting failed, however we tried creating a user account using testing utility "OracleEBiz.sh" and the user got created succesfully.
OIM-11.1.1.5
OAM-11.1.1.5
OID-11.1.1.5
R12-12.1.3
DB-11.2.0.3
Error Stack:
Running InitUtil
Running CreateUser
<Mar 22, 2013 9:40:41 PM PHT> <Error> <OIMCP.EBSUM> <BEA-000000> <================= Start Stack Trace =======================>
<Mar 22, 2013 9:40:41 PM PHT> <Error> <OIMCP.EBSUM> <BEA-000000> <oracle.iam.connectors.ebs.usermgmt.integration.EBSUserManagementHelper : getSSOIdentifierValue>
<Mar 22, 2013 9:40:41 PM PHT> <Error> <OIMCP.EBSUM> <BEA-000000> <Exception Occured>
<Mar 22, 2013 9:40:41 PM PHT> <Error> <OIMCP.EBSUM> <BEA-000000> <Description : Argument passed for LDAP port number is not a number.>
<Mar 22, 2013 9:40:41 PM PHT> <Error> <OIMCP.EBSUM> <BEA-000000> <oracle.iam.connectors.common.ConnectorException: Argument passed for LDAP port number is not a number.
at oracle.iam.connectors.ebs.common.dao.LDAPUtil.connectToLDAP(Unknown Source)
at oracle.iam.connectors.ebs.common.dao.LDAPUtil.connectToLDAP(Unknown Source)
at oracle.iam.connectors.ebs.usermgmt.integration.EBSUserManagementHelper.getSSOIdentifierValue(Unknown Source)
at oracle.iam.connectors.ebs.usermgmt.integration.EBSUserManagementHelper.createEBSUser(Unknown Source)
at oracle.iam.connectors.ebs.usermgmt.integration.EBSUserManagement.createUser(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpEBSCREATEUSER.CREATEUSER(adpEBSCREATEUSER.java:217)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpEBSCREATEUSER.implementation(adpEBSCREATEUSER.java:95)
at com.thortech.xl.client.events.tcBaseEvent.run(tcBaseEvent.java:196)
at com.thortech.xl.dataobj.tcDataObj.runEvent(tcDataObj.java:2492)
at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(tcScheduleItem.java:2919)
at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(tcScheduleItem.java:553)
at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:604)
at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.retryTask(tcProvisioningOperationsBean.java:1259)
at Thor.API.Operations.tcProvisioningOperationsIntfEJB.retryTaskx(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
<Mar 22, 2013 9:40:41 PM PHT> <Error> <OIMCP.EBSUM> <BEA-000000> <================= End Stack Trace =======================>
<Mar 22, 2013 9:40:41 PM PHT> <Error> <OIMCP.EBSUM> <BEA-000000> <====================================================>
<Mar 22, 2013 9:40:41 PM PHT> <Error> <OIMCP.EBSUM> <BEA-000000> <oracle.iam.connectors.ebs.usermgmt.integration.EBSUserManagementHelper : createEBSUser : Unable to search SSO or Inavlid SSO indentifier>
Regards,
Nikhilok - I think I've got it figured. Appears to be a known issue. You need to apply patch p17073913_121200.
I downloaded that and applied to my Linux version - then re-ran the UA. This time the GUI started and so now I'm going through the upgrade steps.
The patch is generic, so should work for your windows environment too. Good luck. -
Error while running ejbc..
Hi Friends
I got the following error while trying to deploy my stateful session bean into sun ONE application server.
Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- -- Failed to load deployment descriptor for: StatefulHello cause: java.io.IOException: Incorrect manifest format
I maintained the folder heirarchy same as in sun example of stateful session bean, CartBean.
Any help can greatly help me. Thank you.
Regards,
Nagaraju.Hi Friends
I got the following error while trying to deploy my stateful session bean into sun ONE application server.
Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- -- Failed to load deployment descriptor for: StatefulHello cause: java.io.IOException: Incorrect manifest format
I maintained the folder heirarchy same as in sun example of stateful session bean, CartBean.
Any help can greatly help me. Thank you.
Regards,
Nagaraju. -
Security Violation Error while running schedule task from OIM.
Hi All,
I am getting this error while running a custom java schedule task from OIM:
*Thor.API.Exceptions.tcAPIException [EJB:010160] Security Violation: User '<anonymous>' has insufficient permission to access EJB:*
type=<ejb>,application=Xellerate,module=xlDataObjectBeans.jar,ejb=tcReconciliationoperations,method=createDeleteReconciliationEvent
at Thor.API.Operations.tcReconciliationOperationsClient.createDeleteReconciliationEvent(UnKnown Source).
I got this error as soon as my code start creating Delete Reconciliation Event.
Note: I have already protected the JNDI Namespace.
Please provide some pointers.
Regards,
SunnyHi Rajiv,
Check this:
package com.centrica.iam.scheduletask;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileFilter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Set;
import oracle.iam.connectors.common.ConnectorLogger;
import com.thortech.xl.dataaccess.tcDataSet;
import com.thortech.xl.dataaccess.tcDataSetException;
import com.thortech.xl.dataobj.PreparedStatementUtil;
import com.thortech.xl.orb.dataaccess.tcDataAccessException;
import com.thortech.xl.scheduler.tasks.SchedulerBaseTask;
import Thor.API.tcResultSet;
import Thor.API.Exceptions.tcAPIException;
import Thor.API.Exceptions.tcInvalidValueException;
import Thor.API.Operations.tcLookupOperationsIntf;
import Thor.API.Operations.tcReconciliationOperationsIntf;
import Thor.API.Operations.tcSchedulerOperationsIntf;
public class CustomFlatFile extends SchedulerBaseTask {
private static tcSchedulerOperationsIntf schedulerIntf;
private static tcLookupOperationsIntf lookupIntf;
private static tcReconciliationOperationsIntf reconIntf;
String sObjectName;
String LookupName;
String LookupName2;
String FileDirectory;
String FileName;
String File;
String delimeter;
String isDeleteTrue;
HashMap<String, String> attrMap = new HashMap();
HashMap<String, String> delMap = new HashMap();
HashMap<String, String> finalMap = new HashMap();
ArrayList list = new ArrayList();
public boolean isReconStopped;
public CustomFlatFile()
isReconStopped = false;
public void init()
LookupName = getAttribute("Attribute Lookup Name");
FileDirectory = getAttribute("Directory Path");
FileName = getAttribute("File Name");
delimeter = getAttribute("Delimeter");
sObjectName = getAttribute("Resource Object Name");
isDeleteTrue = getAttribute("Is Delete Allowed");
public void execute(){
try {
System.out.println("Start Exceute");
//Initiate lookupIntf
lookupIntf = (tcLookupOperationsIntf)getUtility("Thor.API.Operations.tcLookupOperationsIntf");
reconIntf=(tcReconciliationOperationsIntf)getUtility("Thor.API.Operations.tcReconciliationOperationsIntf");
catch (tcAPIException tcapiexception){
tcapiexception.printStackTrace();
//logger.error(classname, s, tcapiexception.toString());
//logger.setStackTrace(tcapiexception, classname, s, tcapiexception.getMessage());
catch (Exception excep){
excep.printStackTrace();
//logger.error(classname, s, excep.toString());
//logger.setStackTrace(excep, classname, s, excep.getMessage());
attrMap = readLookup(LookupName);
System.out.println(attrMap.toString());
readFile();
if (isDeleteTrue.equalsIgnoreCase("true"))
performDelete();
System.out.println("Finish Execute");
public void performDelete()
System.out.println("Start Perform delete");
int k = list.size();
System.out.println("list size " + list.size());
try
Thread.sleep(15000);
/* Hashtable ahashtable[] = new Hashtable[k];
Hashtable hashtable = new Hashtable();
for (int i=0;i<k;i++)
hashtable.put("User Id", list.get(i));
ahashtable[i] = hashtable;
System.out.println(list.get(i));
Set set = reconIntf.provideDeletionDetectionData(sObjectName, ahashtable);
System.out.println("Set--" + set.toString());
tcResultSet tcresultset = reconIntf.getMissingAccounts(sObjectName, set);
System.out.println("tcresultset - " + tcresultset.getRowCount());
if (!(tcresultset.isEmpty()))
long l[] = reconIntf.deleteDetectedAccounts(tcresultset);
for (int i1=0;i1<l.length;i1++)
System.out.println("delete recon key " + l[i1]);
//Get the existing list of Managed users
tcDataSet tcdataset = new tcDataSet();
tcDataSet tcdataset1 = new tcDataSet();
String query = "select orf.orf_fieldname,prf.prf_columnname, sdk.sdk_name from orf, sdk, pkg, tos, prf, obj " +
"where pkg.obj_key = obj.obj_key and pkg.pkg_key = tos.pkg_key and tos.sdk_key is not null " +
"and tos.sdk_key=sdk.sdk_key and tos.tos_key=prf.tos_key and prf.prf_iskey='1' and prf.orf_key=orf.orf_key " +
"and orf.orf_parent_orf_key is null and obj.obj_name='" + sObjectName + "'";
tcdataset.setQuery(getDataBase(), query);
tcdataset.executeQuery();
String FFName = tcdataset.getString("prf_columnname");
String FName = tcdataset.getString("sdk_name");
String ROFName = tcdataset.getString("orf_fieldname");
System.out.println("form- " + FName + " Field- " + FFName);
query = "select " + FFName + " from " + FName + " udtable, oiu a, ost b " +
"where udtable.orc_key=a.orc_key and a.ost_key=b.ost_key and b.ost_status!='Revoked'";
System.out.println(query);
tcdataset1.setQuery(getDataBase(), query);
tcdataset1.executeQuery();
int i = tcdataset1.getRowCount();
ArrayList list1 = new ArrayList();
String s1 = null;
System.out.println("N. of rows--" + i);
for (int j=0;j<i;j++)
tcdataset1.goToRow(j);
s1 = tcdataset1.getString(0);
System.out.println("s1---" + s1);
if (!(list.contains(s1)))
list1.add(s1);
System.out.println("under if--" + s1);
//Getting the existing list of unmanaged users
query = "select distinct (b.rcd_value) from rce a, rcd b, orf c, obj d where a.rce_key=b.rce_key and " +
"b.orf_key=c.orf_key and c.orf_fieldname='" + ROFName + "' and a.rce_status!='Event Linked' " +
"and a.obj_key = d.obj_key and d.obj_name='" + sObjectName + "'";
tcdataset1.setQuery(getDataBase(), query);
tcdataset1.executeQuery();
i = tcdataset1.getRowCount();
System.out.println("No. Of Unmanaged Users " + i);
for (int j=0;j<i;j++)
tcdataset1.goToRow(j);
s1 = tcdataset1.getString(0);
System.out.println("s1---" + s1);
if (!(list.contains(s1)))
list1.add(s1);
System.out.println("under if--" + s1);
int k1 = list1.size();
System.out.println("list1 size--" + k1);
for (int j1=0;j1<k1;j1++)
delMap.clear();
delMap.put(ROFName, (String)list1.get(j1));
System.out.println(delMap.toString());
long l = reconIntf.createDeleteReconciliationEvent(sObjectName, delMap);
System.out.println("delete recon key--- " + l);
catch (Exception exception)
exception.printStackTrace();
public void readFile(){
String s = "readFile()";
//logger.setMethodStartLog(classname, s);
HashMap map = new HashMap();
try {
File = getFile();
BufferedReader reader = new BufferedReader(new FileReader(new
File(File)));
String line = "";
int k = attrMap.size();
String value[] = new String[k];
String Header[]= new String[k];
if (delimeter.equalsIgnoreCase("|"))
delimeter = "\\" + delimeter;
line = reader.readLine();
Header = line.split(delimeter);
while((line = reader.readLine()) != null)
value = line.split(delimeter);
k = value.length;
for (int i = 0;i<k;i++){
finalMap.put(attrMap.get(Header), value[i]);
System.out.println(finalMap.toString());
System.out.println("Start Ignoring Event");
if (!(reconIntf.ignoreEvent(sObjectName, finalMap)))
System.out.println("Not Ignored");
long l1 = reconIntf.createReconciliationEvent(sObjectName, finalMap, true);
System.out.println("Recon Key--" + l1);
else
System.out.println("ignore event ---" + finalMap.toString());
list.add(finalMap.get("User Id"));
System.out.println(list.size() + "add--" +finalMap.get("User Id") );
finalMap.clear();
catch (Exception exception)
exception.printStackTrace();
public boolean stop(){
String s = "stop()";
//logger.setMethodStartLog(classname, s);
//logger.info(classname, s, "Stopping Reconciliation........");
isReconStopped = true;
//logger.setMethodFinishLog(classname, s);
return true;
FileFilter fileFilter = new FileFilter()
public boolean accept(File file)
String sFilePath = file.getName();
if( sFilePath.startsWith(FileName) )
return true;
else
return false;
public String getFile() throws FileNotFoundException, Exception{
String s = "getFile()";
//logger.setMethodStartLog(classname, s);
String s1;
File dir = new File(FileDirectory);
File[] files = dir.listFiles(fileFilter);
if (files.length ==0)
throw new FileNotFoundException();
if (files.length>1)
throw new Exception("Multiple Matches found for this file name");
s1 = files[0].toString();
//logger.setMethodFinishLog(classname, s);
return s1;
public HashMap readLookup(String s1){
String s = "readLookup()";
//logger.setMethodStartLog(classname, s);
HashMap map = new HashMap();
try {
tcResultSet tc1= lookupIntf.getLookupValues(s1);
int i = tc1.getRowCount();
for (int j = 0;j<i;j++){
tc1.goToRow(j);
map.put(tc1.getStringValue("Lookup Definition.Lookup Code Information.Code Key"), tc1.getStringValue("Lookup Definition.Lookup Code Information.Decode"));
catch (tcAPIException tcapiexception){
tcapiexception.printStackTrace();
//logger.error(classname, s, tcapiexception.toString());
//logger.setStackTrace(tcapiexception, classname, s, tcapiexception.getMessage());
catch (Exception excep){
excep.printStackTrace();
//logger.error(classname, s, excep.toString());
//logger.setStackTrace(excep, classname, s, excep.getMessage());
return map; -
Error while running ejb2.0 in jdeveloper
Hello wen i am trying to run ejb stateless sesion bean application , i am getting below error, i have created with ejb2.0 version
javax.naming.NameNotFoundException: HiEjb not found
at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at model.HiEjbClient.main(HiEjbClient.java:14)
Process exited with exit code 0.I have reinstall changed the class path in environment variable and getting below error
*** Using port 7101 ***
C:\Users\DELL\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\bin\startWebLogic.cmd
[waiting for the server to complete its initialization...]
\Java\jdk1.6.0_38 was unexpected at this time.
Process exited.
Regards,
Shrikant1988 -
Error while running scheduled task
Im getting this error when I am running a scheduled task for adding all users to a group if they are managers:
Error while running task: Thor.API.Exceptions.tcAPIException: [EJB:010160]Security Violation: User: '<anonymous>' has insufficient permission to access EJB: type=<ejb>, application=Xellerate, module=xlDataObjectBeans.jar, ejb=tcGroupOperations, method=addMemberUser, methodInterface=Remote, signature={long,long}.
any idea?no luck.
im getting following errors:
updatamanagergroup.java:3: package Thor.API.Operations does not exist
import Thor.API.Operations.*;
^
updatamanagergroup.java:4: package Thor.API does not exist
import Thor.API.tcResultSet;
^
updatamanagergroup.java:5: package Thor.API does not exist
import Thor.API.tcUtilityFactory;
^
updatamanagergroup.java:6: package com.thortech.xl.crypto does not exist
import com.thortech.xl.crypto.tcCryptoUtil;
^
updatamanagergroup.java:7: package com.thortech.xl.scheduler.tasks does not exist
import com.thortech.xl.scheduler.tasks.SchedulerBaseTask;
^
updatamanagergroup.java:8: package com.thortech.xl.util.config does not exist
import com.thortech.xl.util.config.ConfigurationClient;
^
updatamanagergroup.java:13: cannot find symbol
symbol: class SchedulerBaseTask
public class updatamanagergroup extends SchedulerBaseTask
^
and so on....
23 errors
Edited by: user11136275 on Dec 24, 2009 12:22 AM -
Errors during deploying EJB app
Hello all,
I am trying the develop an EJB app in eclipse juno with weblogic 9.1. I have installed the oracle tools and weblogic has been configured with the EJB project in eclipse. When I start weblogic from the servers tab within eclipse the following error occurs:
There are 1 nested errors:
java.lang.NoClassDefFoundError: Class not found: com.mainframe.pdu.types.PDU24
at weblogic.ejb.container.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:270)
at weblogic.ejb.container.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:215)
at weblogic.ejb.container.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:868)
The jar file containing the PDU24 class is in the project build path and it is included in the order/export tab also. Since I am pretty new with all this I probably missed a vital step somewhere. Any help will be appreciated.
Also, what would be helpful is if I could be recommended a tutorial on how to create an ejb app on eclipse using weblogic as the runtime.
Cheers.Hi There,
is the PDU24 a class from weblogic or a 3rd party library that you are using into your project.? Also, I recommend that you create a new domain into WLS using the OEPE wizard when creating a new runtime server. Doing it that way, it is going to add all necessary classes that you need to run EJB-based applications.
Our latest tutorial on ADF development on OEPE covers creation of entity classes on part 2: here is the link. http://www.oracle.com/webfolder/technetwork/eclipse/adf/gettingStarted/Tutorial/ADFwithOEPE_2.html
Cheers,
Juan Camilo
Maybe you are looking for
-
I can type but if I make a mistake and want to retype or delete what I've typed it just beeps at me and won't allow me to type. I can use the cut and paste feature to fix things but what a complete hassle. How do I fix this annoying problem?
-
HP Laserjet 1022 and Other USB Devices
Hi All, I have an issue with a HP Laserjet 1022 printer and a HP Pavilion A145.uk desktop computer. When the printer is connected to the computer it all works fine, when I try to insert a Kingston flash drive all I get is a message saying USB Device
-
Anybody know of a way to drive a Casio CW-K85 media printer from a Mac?
The title says it all. Since the thing has its own keyboard, and its own graphics, and apparently even the ability to create graphics, hooking it up to my iMac isn't a big deal, but it would be nice. Unfortunately, it only comes with software for Win
-
Hi, i write role in httpd.conf, to redirect to an external application, as this: ProxyPass /pippo/ http://<myhost>:7777/pls/orasso/ORASSO.wwsso_app_admin.fapp_process_login?p_app_id=DF435C2A789ACE9C183480A1A6A982CD ProxyPassReverse /pippo/ http://<my
-
Start and Theme menu missing in Black
Hello all, I have a issue with my Lumia 1020 (Black update).... the Start + Theme menu is missing (I do have the Theme menu available). But have tried everything, hard reset, update ... etc. Its not fixed it. Also the volume menu (drop down to select