Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

dimple sharma

Greenhorn
+ Follow
since Feb 18, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by dimple sharma

Hi Guys,

I am getting the following errors in StartUpBean. I have checked the JNDI name TimerStartUpJNDI, it is exist.

Can anybody have idea about why this error is comming?


Cannot create startup bean named TimerStartUpJNDI, exception was java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.NoSuchObjectException: CORBA INV_OBJREF 0x4942f791 No; nested exception is:
org.omg.CORBA.INV_OBJREF: Could not load stub for com.hsbc.pf.framework.startupejb.EJSRemoteStatefulTimerStartUpEJB_89a4b197 vmcid: IBM minor code: 791 completed: No
at com.ibm.CORBA.iiop.UtilDelegateImpl.wrapException(UtilDelegateImpl.java:706)
at javax.rmi.CORBA.Util.wrapException(Util.java:277)
at com.ibm.websphere.startupservice._AppStartUpHome_Stub.create(_AppStartUpHome_Stub.java:237)
at com.ibm.ws.startupservice.StartBeanInfo.getAppStartUpBean(StartBeanInfo.java:221)
at com.ibm.ws.startupservice.StartBeanInfo.start(StartBeanInfo.java:287)
at com.ibm.ws.startupservice.StartUpModule.appStart(StartUpModule.java:152)
at com.ibm.ws.startupservice.StartUpApplication.start(StartUpApplication.java:105)
at com.ibm.ws.startupservice.StartUpService.stateChanged(StartUpService.java:452)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java:1180)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent(DeployedApplicationImpl.java:1050)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:210)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:205)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:763)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:892)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2003)
at com.ibm.ws.runtime.component.ComponentImpl.runAsynchronousInitializer(ComponentImpl.java:159)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplications(ApplicationMgrImpl.java:745)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:524)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:820)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:149)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:820)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:408)
at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:187)
at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:133)
at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:387)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:53)
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:324)
at com.ibm.ws.bootstrap.WSLauncher.run(WSLauncher.java:219)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.rmi.NoSuchObjectException: CORBA INV_OBJREF 0x4942f791 No; nested exception is:
org.omg.CORBA.INV_OBJREF: Could not load stub for com.hsbc.pf.framework.startupejb.EJSRemoteStatefulTimerStartUpEJB_89a4b197 vmcid: IBM minor code: 791 completed: No
at com.ibm.CORBA.iiop.UtilDelegateImpl.mapSystemException(UtilDelegateImpl.java:200)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
at com.ibm.rmi.util.ProxyUtil.copyObject(ProxyUtil.java:483)
at com.ibm.CORBA.iiop.UtilDelegateImpl.copyObject(UtilDelegateImpl.java:805)
at javax.rmi.CORBA.Util.copyObject(Util.java:314)
at com.ibm.websphere.startupservice._AppStartUpHome_Stub.create(_AppStartUpHome_Stub.java:231)
... 31 more
Caused by: org.omg.CORBA.INV_OBJREF: Could not load stub for com.hsbc.pf.framework.startupejb.EJSRemoteStatefulTimerStartUpEJB_89a4b197 vmcid: IBM minor code: 791 completed: No
at com.ibm.rmi.util.Utility.connectRemote(Utility.java:509)
at com.ibm.rmi.util.Utility.autoConnect(Utility.java:438)
at com.ibm.rmi.util.ProxyUtil.copyObject(ProxyUtil.java:387)
... 34 more
.
[2/12/07 10:16:46:443 HKT] 0000000a StartBeanInfo E STUP0006E: Exception calling startup bean named TimerStartUpJNDI, exception was java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.NoSuchObjectException: CORBA INV_OBJREF 0x4942f791 No; nested exception is:
org.omg.CORBA.INV_OBJREF: Could not load stub for com.hsbc.pf.framework.startupejb.EJSRemoteStatefulTimerStartUpEJB_89a4b197 vmcid: IBM minor code: 791 completed: No
at com.ibm.CORBA.iiop.UtilDelegateImpl.wrapException(UtilDelegateImpl.java:706)
at javax.rmi.CORBA.Util.wrapException(Util.java:277)
at com.ibm.websphere.startupservice._AppStartUpHome_Stub.create(_AppStartUpHome_Stub.java:237)
at com.ibm.ws.startupservice.StartBeanInfo.getAppStartUpBean(StartBeanInfo.java:221)
at com.ibm.ws.startupservice.StartBeanInfo.start(StartBeanInfo.java:287)
at com.ibm.ws.startupservice.StartUpModule.appStart(StartUpModule.java:152)
at com.ibm.ws.startupservice.StartUpApplication.start(StartUpApplication.java:105)
at com.ibm.ws.startupservice.StartUpService.stateChanged(StartUpService.java:452)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java:1180)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent(DeployedApplicationImpl.java:1050)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:210)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:205)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:763)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:892)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2003)
at com.ibm.ws.runtime.component.ComponentImpl.runAsynchronousInitializer(ComponentImpl.java:159)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplications(ApplicationMgrImpl.java:745)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:524)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:820)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:149)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:820)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:408)
at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:187)
at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:133)
at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:387)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:53)
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:324)
at com.ibm.ws.bootstrap.WSLauncher.run(WSLauncher.java:219)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.rmi.NoSuchObjectException: CORBA INV_OBJREF 0x4942f791 No; nested exception is:
org.omg.CORBA.INV_OBJREF: Could not load stub for com.hsbc.pf.framework.startupejb.EJSRemoteStatefulTimerStartUpEJB_89a4b197 vmcid: IBM minor code: 791 completed: No
at com.ibm.CORBA.iiop.UtilDelegateImpl.mapSystemException(UtilDelegateImpl.java:200)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
at com.ibm.rmi.util.ProxyUtil.copyObject(ProxyUtil.java:483)
at com.ibm.CORBA.iiop.UtilDelegateImpl.copyObject(UtilDelegateImpl.java:805)
at javax.rmi.CORBA.Util.copyObject(Util.java:314)
at com.ibm.websphere.startupservice._AppStartUpHome_Stub.create(_AppStartUpHome_Stub.java:231)
... 31 more
Caused by: org.omg.CORBA.INV_OBJREF: Could not load stub for com.hsbc.pf.framework.startupejb.EJSRemoteStatefulTimerStartUpEJB_89a4b197 vmcid: IBM minor code: 791 completed: No
at com.ibm.rmi.util.Utility.connectRemote(Utility.java:509)
at com.ibm.rmi.util.Utility.autoConnect(Utility.java:438)
at com.ibm.rmi.util.ProxyUtil.copyObject(ProxyUtil.java:387)
... 34 more

Thanks in advance,

Dimple
13 years ago
Hi,

I am using weblogic version 6.1 sp pack 5. I am developing application in swing, which is working fine as Stand alone application. But when i tried it to convert in java web start mode, it is giving me error while getting initialContext !!! Source code snap is under :


properties = new Properties();

properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");

properties.put(Context.PROVIDER_URL,"t3://192.168.0.108:7001";);


Context ctx = new InitialContext(properties);


[errorMessage]


java.lang.InternalError: error initializing kernel
at weblogic.kernel.Kernel.ensureInitialized(Kernel.java:104)
at weblogic.jndi.WLInitialContextFactoryDelegate.<init>(WLInitialContextFactoryDelegate.java:166)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:147)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at iScheduler.client.util.DTSSUtil.getInitialContext(DTSSUtil.java:50)
at iScheduler.client.gui.frame.Main.getAllDepo(Main.java:263)
at iScheduler.client.gui.frame.Main.<init>(Main.java:45)
at iScheduler.client.gui.frame.Main.main(Main.java:222)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


I have included all jars in war file. My application jar name is test.jar, and jnlp file is TEST.jnlp. I have checked cache of java web start, it contains following files :

1. jnlp files

ALTEST.jnlp
AMDTEST.jnlp
ATDTEST.jnlp

2. jar files

RCtest.jar
RMtest.jar
RTtest.jar

Weblogic.jar hierachy is already included in above jar file.

Can anybody faced same problem ? Where i am wrong ? Plz help me to solve the above problem.

Thanks in advance,

Dimple
14 years ago
Hi,

I want to develop application where different user can give print command to the shared printer. All request will be stored in the queue of printer in application server and administrator can see the list of request pending for printing with other details like who initiated the request, time of the request made etc.

Can it be possible with JMS ? Anybody developed such application ?

Thanks in advance,

Dimpal
Hi,

thanks for reply.

I don't want to put properties file in jar file as it's need to be changed frequantly.

I put it in Weblogic Home and also set class path in startWebLogic.sh, though i am getting same error.


My code segment to get property value is as under "

public static String getKeyValue ( String key )
{
String valueString = "";
try
{
PropertyResourceBundle resBundle = ( PropertyResourceBundle ) PropertyResourceBundle.getBundle ( "iScheduler.properties" );
valueString = resBundle.getString ( key );
}
catch ( Exception ex )
{
ex.printStackTrace();
System.out.println ( " Exception ISchedulerClientResourceBundle.java in key " + key );
}
return valueString;
}


Stacktrace :


java.util.MissingResourceException: Can't find bundle for base name iScheduler.properties, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:511)
at ischeduler.support.common.ISchedulerClientResourceBundle.getKeyValue(ISchedulerClientResourceBundle.java:28)
at ischeduler.sfsb.menuaccess.MenuAccessBean.readMenuAccessFile(MenuAccessBean.java:40)
at ischeduler.sfsb.menuaccess.MenuAccessBean.ejbCreate(MenuAccessBean.java:29)
at ischeduler.sfsb.menuaccess.MenuAccess_7gkmty_Impl.ejbCreate(MenuAccess_7gkmty_Impl.java:135)
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:324)
at weblogic.ejb20.manager.StatefulSessionManager.create(StatefulSessionManager.java:828)
at weblogic.ejb20.manager.StatefulSessionManager.remoteCreate(StatefulSessionManager.java:880)
at weblogic.ejb20.internal.StatefulEJBHome.create(StatefulEJBHome.java:133)
at ischeduler.sfsb.menuaccess.MenuAccess_7gkmty_HomeImpl.create(MenuAccess_7gkmty_HomeImpl.java:74)
at ischeduler.sfsb.menuaccess.MenuAccess_7gkmty_HomeImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Exception ISchedulerClientResourceBundle.java in key DataSource




Can anybody tell me where i m wrong ?

Dimple
15 years ago
Hi,

Thanks for reply.

I am deploying standalone JAR file - that is a ejb application. So don't hv DefaultWebApp folder.

Do you hv any other idea ?

Dimple
15 years ago
Hi,

I want to use .properties file in my application. Hv any body know in web logic server where i hv to put this properties file ?

Thanks in advance,

Dimple
15 years ago
Hi,

when i am trying to read the xml file using the SAX parser in solaris environment in start element i m getting null value, the same work is perfactly working with windows environment.

i think there some bugs in the API for XML..

Anybody hv solutions ? whats ur say guys....


Thanks in advance,

Dimple
Hi,

I am getting folowing error, while trying to run weblogic server 8.1 on solaris platform.


Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "oraclePool": Io exception: The Network Adapter could not establish the connection>


In startWeblogic.sh i hv added following to add oci817_8 into path:


if [ -n "$LD_LIBRARY_PATH" ]
then
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$WL_HOME/lib/solaris:$WL_HOME/lib/solaris/oci817_8
else
LD_LIBRARY_PATH=$WL_HOME/lib/solaris:$WL_HOME/lib/solaris/oci817_8
fi

export LD_LIBRARY_PATH
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"


pool propaerties have defined as :

user=username
url=jdbc racle:thin:@database_server:1581 racle81 (we hv oracle on 1581 port)
dll=ocijdbc8
driver=oracle.jdbc.driver.OracleDriver
protocol=thin



Can any body can give idea where i am wrong ?

Thanks in advance,

Dimple
[ September 20, 2004: Message edited by: dimple sharma ]
16 years ago
Hi,


If in CMP bean we have composite primary key i.e there are two cmp field as primary key (PK class) then is it possible that one of it will auto generated.

I am using jbuilder as IDE and web logic as server 6.1 SP5, when i m compiling project and when it is running EJB it is giving me error :

when Automatic Key Generation is enabled, the Primary Key class must be java.lang.Integer or java.lang.Long.

Is any body hv solution ?

thanks in advance,

Dimple sharma
Hi,

ejbSelect is always faster than ejbFind method. If you have separate table then you might have to be write ejbFind method and in your session bean first you have to look up that bean ond have to call find method. Instead ejbSelect give you fast result as it don't need to have look up and morevore it's not runnning in pool.

As far as duplication concern you have to use MAX keyword not COUNT.

Regards
Hi,

u can use Select query to get Max of that column and then add +1 in that that value to generate next id. As it is select query, u hv ejbSelect abstract method in bean if u r using CMP, in case BMP u have to write ur own method to select max. Select query is fast bcoz it is not running in pool and they never exposed to a client. They can returns entities and value of cmp fields.

I think it would solve ur problem.

regards
Hi,

Actually i have situation where A is my transaction table having any other key as primary key. Here one field is mapped with master table primary key but as it can be repeated i have only option of having relationship of Many to one, unidirectional. I don't hv any other unique combination in table A, so that i can use any other relation type.

One to one or one to many is not possible as it is not unique key. Many to many is also not possible. If i am using bidirectional relation also then also before creating data how can i get the collection. If it is not allowing me to set one field how can relationship will be build.


I have noted that relationship of one to one or one to many is allowing to set the values. Means if primary key is used in cmr field then it set accessor it is not giving any error. But it is not solving my problem i have many to one relationship.

I don't know if i am only who r using these relationship, how can people handling these type of transaction entries ?
Hi guys,

Thanks.


No in ABean i have public abstract B getB();

A and B both are local interface. so obviously B means here local inteface.


I hv tried to set cmp field which mapped in cmr in ejbPostCreate() also, it is giving me the same error.

If any other suggestion u have then plz let me know. I have stucked with this problem.
Hi guys,

I am facing problem when creating entity bean. I am using oracle and weblogic server.

I have many to one unidirectional relationship. I hv two tables that i am interested with :

1. Table A

2. Table B.

In Table A, there is a FK refernece to Table B. e.g. CMP field a2 is mapped with b1 field in Table B. Here a2 is not primary key it is just foreing key. From Table A, it is Many to one unidirectional relation ship. In table B, b1 is primary key.

Here i hv CMR Accessor method in Table A and it is unidirectional. As it is many to one relationship exists Accessor methods in A EJB returning me (public B getB()).
When i am trying to call create method on home, it will give me the following errors. Peristance type of entity bean is CMP :

javax.ejb.EJBException: When a cmp-field and a cmr-field (relationship) are mapped to the same column, the setXXX method for the cmp-field may not be called. The cmp-field is read-only.

I have also tried to set that cmr filed in ejbPostCreate, though it' giving me error.

Can anybody hv faced this problem and knowing the solution ?

Thanks in advance,

Dimple sharma