I am stuck with this problem in connection to Database.  Can someone
please help me resolve this issue?  

When I do the default (clouscape) where the tables are created as
default, I am fine but as soon as I create a Database of my own in a
folder and point this to Database, my EJB gets the
java.rmi.RemoteException: ; nested exception is:
java.lang.NullPointerException.  I can insert, update and delete the
rows from Data perspective though with the same connection.  I have also
checked the JNDI which matches with the Datasource that I created i.e.
jdbc/ds1 which points to my database.

I have the same problem with AS/400 database connections as well.  

Is there a sample code or some more information that will help me
resolve this issue?

Thanks,
Sudha
-----Original Message-----
From: Ramanujan, Sudha 
Sent: Thursday, September 16, 2004 2:16 PM
To: java400-l@xxxxxxxxxxxx
Subject: RE: EJB-iSeries

I have pasted my error as it appears on the console.   This happens when
I initialize(call create() method) and then do a work with objects and
call my getFirstName(int id) method.  This method is defined as public
in the interface.

Thanks for your help,
Sudha

[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R General Exception
occured: javax.naming.NameNotFoundException: Context:
localhost/nodes/localhost/servers/server1, name:
ejb/helloworld/ejb/HelloWorldEntityHome: First component in name
helloworld/ejb/HelloWorldEntityHome not found. [Root exception is
org.omg.CosNaming.NamingContextPackage.NotFound:
IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R
javax.naming.NameNotFoundException: Context:
localhost/nodes/localhost/servers/server1, name:
ejb/helloworld/ejb/HelloWorldEntityHome: First component in name
helloworld/ejb/HelloWorldEntityHome not found.  Root exception is
org.omg.CosNaming.NamingContextPackage.NotFound:
IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.handleNameNotFound(WsnOpt
imizedNamingImpl.java:1983)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.getNextWsnOptimizedNaming
Context(WsnOptimizedNamingImpl.java:1320)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.getTargetContext(Ws
nOptimizedNamingImplBase.java:2425)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase$LeafOperationData.<
init>(WsnOptimizedNamingImplBase.java:2890)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_in
fo(WsnOptimizedNamingImplBase.java:1391)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unkn
own Source)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:34
91)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1519
)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1480
)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:118
7)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1067)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
javax.naming.InitialContext.lookup(InitialContext.java:360)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
hwas400.ejb.HWAS400SessionBean.getHelloWorldEntity(HWAS400SessionBean.ja
va:48)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
hwas400.ejb.HWAS400SessionBean.getFirstName(HWAS400SessionBean.java:77)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
hwas400.ejb.EJSRemoteStatelessHWAS400Session_80e0bf91.getFirstName(EJSRe
moteStatelessHWAS400Session_80e0bf91.java:35)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:79)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:41)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
java.lang.reflect.Method.invoke(Method.java:386)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:703)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
java.security.AccessController.doPrivileged(Native Method)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:701)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1084)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
$Proxy1.getFirstName(Unknown Source)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
hwas400.ejb._HWAS400Session_Stub.getFirstName(_HWAS400Session_Stub.java:
253)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:79)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:41)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
java.lang.reflect.Method.invoke(Method.java:386)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodMo
del.java:68)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:110)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:366)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictSe
rvletInstance.java:110)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLi
fecycleServlet.java:174)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycle
Servlet.java:313)
[9/16/04 14:10:10:569 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLif
ecycleServlet.java:116)
[9/16/04 14:10:10:585 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.
java:283)
[9/16/04 14:10:10:585 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(Vali
dServletReferenceState.java:42)
[9/16/04 14:10:10:585 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(Servle
tInstanceReference.java:40)
[9/16/04 14:10:10:585 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
tch(WebAppRequestDispatcher.java:983)
[9/16/04 14:10:10:585 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
questDispatcher.java:564)
[9/16/04 14:10:10:585 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
uestDispatcher.java:200)
[9/16/04 14:10:10:585 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:1
19)
[9/16/04 14:10:10:585 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
oker.java:276)
[9/16/04 14:10:10:585 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
on(CachedInvocation.java:71)
[9/16/04 14:10:10:585 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
tRequestProcessor.java:182)
[9/16/04 14:10:10:600 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
tener.java:334)
[9/16/04 14:10:10:600 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
.java:56)
[9/16/04 14:10:10:600 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
618)
[9/16/04 14:10:10:600 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
[9/16/04 14:10:10:600 CDT] 7ddc75c4 SystemErr     R     at
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
[9/16/04 14:10:10:600 CDT] 7ddc75c4 ExceptionUtil E CNTR0020E:
Non-application exception occurred while processing method
"getFirstName" on bean
"BeanId(HWAS400EARProject#HWAS400EJBProject.jar#HWAS400Session, null)".
Exception data: java.lang.NullPointerException
        at
hwas400.ejb.HWAS400SessionBean.getFirstName(HWAS400SessionBean.java:79)
        at
hwas400.ejb.EJSRemoteStatelessHWAS400Session_80e0bf91.getFirstName(EJSRe
moteStatelessHWAS400Session_80e0bf91.java:35)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:79)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:41)
        at java.lang.reflect.Method.invoke(Method.java:386)
        at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:703)
        at java.security.AccessController.doPrivileged(Native Method)
        at
com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:701)
        at
com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1084)
        at $Proxy1.getFirstName(Unknown Source)
        at
hwas400.ejb._HWAS400Session_Stub.getFirstName(_HWAS400Session_Stub.java:
253)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:79)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:41)
        at java.lang.reflect.Method.invoke(Method.java:386)
        at
com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodMo
del.java:68)
        at
com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:110)
        at
com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:366)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictSe
rvletInstance.java:110)
        at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLi
fecycleServlet.java:174)
        at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycle
Servlet.java:313)
        at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLif
ecycleServlet.java:116)
        at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.
java:283)
        at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(Vali
dServletReferenceState.java:42)
        at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(Servle
tInstanceReference.java:40)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
tch(WebAppRequestDispatcher.java:983)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
questDispatcher.java:564)
        at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
uestDispatcher.java:200)
        at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:1
19)
        at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
oker.java:276)
        at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
on(CachedInvocation.java:71)
        at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
tRequestProcessor.java:182)
        at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
tener.java:334)
        at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
.java:56)
        at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
618)
        at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)

Sudha Ramanujan
SunGard Futures Systems
sramanujan@xxxxxxxxxxxxxxxxxx
(312) 577 6179
(312) 577 6101 - Fax

-----Original Message-----
From: Franco Biaggi [mailto:fbiaggi@xxxxxxxxxx] 
Sent: Tuesday, September 14, 2004 12:55 PM
To: Java Programming on and around the iSeries / AS400
Subject: Re: EJB-iSeries

SRamanujan@xxxxxxxxxxxxxxxxxx wrote:

> I keep getting an error when

Please post the stack trace.



-- 
------------------------------------------------------------------------
-----
*** This messages was scanned for malicious contents ***
------------------------------------------------------------------------
-----
Franco Biaggi
CH-6807 Taverne


--
This is the Java Programming on and around the iSeries / AS400
(JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


--
This is the Java Programming on and around the iSeries / AS400
(JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.