Sitemap

Amicuk Programming Answers

Error in bean lookup

2015-10-11   Views:0

Advertisement

Hi,      I deployed a stateless session bean. When i do lookup in a jsp i am getting the following error. The application log file shows application is deployed successfully. The code in my jsp is: a Hashtable env = new Hashtable();      env.put ("ja

Hi,
     I deployed a stateless session bean. When i do lookup in
a jsp i am getting the following error. The application log file
shows application is deployed successfully.
The code in my jsp is:
a
Hashtable env = new Hashtable();
     env.put
("java.naming.factory.initial","com.evermind.server.ApplicationCl
ientInitialContextFactory");
     env.put
("java.naming.provider.url","ormi://localhost:23791");
     env.put("java.naming.security.principal","admin");
     env.put("java.naming.security.credentials","crm");
     System.out.println("before lookup");
     InitialContext initial = new InitialContext(env);
     System.out.println("before home");
     Object homeObject = initial.lookup
("java:comp/env/DLR10010CCPLetterSBean");
     DLR10010CCPLetterSHome home = (DLR10010CCPLetterSHome)
PortableRemoteObject.narrow(homeObject,
DLR10010CCPLetterSHome.class);
     DLR10010CCPLetterS remote =
     (DLR10010CCPLetterS) PortableRemoteObject.narrow
(home.create(), DLR10010CCPLetterS.class);
The error i am getting on the browser as well as in global-
application.log file is :
java.lang.NullPointerException: domain was null
     at com.evermind[Oracle9iAS (1.0.2.2) Containers for
J2EE].server.rmi.RMIServer.addNode(RMIServer.java:428)
     at com.evermind[Oracle9iAS (1.0.2.2) Containers for
J2EE].server.rmi.RMIServer.getConnection(RMIServer.java,
Compiled Code)
     at com.evermind[Oracle9iAS (1.0.2.2) Containers for
J2EE].server.rmi.RMIInitialContextFactory.getInitialContext
(RMIInitialContextFactory.java, Compiled Code)
     at com.evermind[Oracle9iAS (1.0.2.2) Containers for
J2EE].server.ApplicationClientInitialContextFactory.getInitialCon
text(ApplicationClientInitialContextFactory.java, Compiled Code)
     at javax.naming.spi.NamingManager.getInitialContext
(NamingManager.java:671)
     at javax.naming.InitialContext.getDefaultInitCtx
(InitialContext.java:242)
     at javax.naming.InitialContext.init
(InitialContext.java:218)
     at javax.naming.InitialContext.<init>
(InitialContext.java:194)
     at /Test.jsp._jspService(/Test.jsp.java:46) (JSP page
line 20)
     at com.orionserver[Oracle9iAS (1.0.2.2) Containers for
J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:54)
     at com.evermind[Oracle9iAS (1.0.2.2) Containers for
J2EE].server.http.HttpApplication.serviceJSP
(HttpApplication.java:5458)
     at com.evermind[Oracle9iAS (1.0.2.2) Containers for
J2EE].server.http.JSPServlet.service(JSPServlet.java:31)
     at com.evermind[Oracle9iAS (1.0.2.2) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke
(ServletRequestDispatcher.java, Compiled Code)
     at com.evermind[Oracle9iAS (1.0.2.2) Containers for
J2EE].server.http.ServletRequestDispatcher.forwardInternal
(ServletRequestDispatcher.java:170)
     at com.evermind[Oracle9iAS (1.0.2.2) Containers for
J2EE].server.http.HttpRequestHandler.processRequest
(HttpRequestHandler.java, Compiled Code)
     at com.evermind[Oracle9iAS (1.0.2.2) Containers for
J2EE].server.http.HttpRequestHandler.run
(HttpRequestHandler.java, Compiled Code)
     at com.evermind[Oracle9iAS (1.0.2.2) Containers for
J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java, Compiled
Code)
Pls. some body help me.
Rgds,
Hari.

The replay answer
Advertisement
Hi Dhanabal,
i got the same error. But it is clear.
Please chek once ur configuration part. The error is in configuration part only.
once check all the steps in ur configuration part.
REgards,
chandra.

Go to See the other 3 answers

Prob in IR :Internal error during bean lookup for bean RepObjectAccessBean

Category:DefaultRelease time:-0001-11-30Views:130

Hi,     I am facing the problem in IR . <b>Internal error during bean lookup for bean RepObjectAccessBean</b> is the Error window I am getting frequently, After getting this error, It is no allowing to open any of the IR Objects. Thanks in adv[More]

Error in bean lookup

Category:DefaultRelease time:2015-10-11Views:130

Hi,      I deployed a stateless session bean. When i do lookup in a jsp i am getting the following error. The application log file shows application is deployed successfully. The code in my jsp is: a Hashtable env = new Hashtable();      env.put ("ja[More]

SSRS countrow Aggregate error(Aggregate and lookup functions cannot be used in query parameter expressions.)

Category:DefaultRelease time:2015-10-11Views:130

Below expression works fine with text box but gives error in dataset expression. ="SET FMTONLY OFF select  "+ join(Parameters!Column.Value,",") +" FROM pamcustom.dbo.vw_HFL_HFD_HotfileData INNER JOIN pamcustom.dbo.HFL_HFB_HotFileB[More]

Error while updating lookup table through PSI

Category:DefaultRelease time:2015-10-11Views:130

Hi, I am trying to update a lookuptable through PSI using following code :  $lookupTableGuid = $svcPSProxy.ReadLookupTables($EPMTYString, 0 , 1033).LookupTables | where {$_.LT_NAME -eq $Lookuptablename} $lookuptable = $svcPSProxy.ReadLookupTablesbyUi[More]

FPN - error trying to lookup object - remote role assignment not working

Category:DefaultRelease time:2015-10-11Views:130

Hello everyone, We have implemented a Federated Portal Network connection in our landscape between our portals. We use only remote role assignment functionality. Everything was working fine, but since 2 days we encounter the following error in the De[More]

Cannot perform Bean lookup on signed Applet jar

Category:DefaultRelease time:2015-10-11Views:130

Hi All, I'm after developing an applet which runs from a number of jars on an Orion app server. Each one of these jars are signed and I can access the Applet okay. The problem is that I make remote reference to EJB's throughout the application. I can[More]

Error during JNDI lookup Accessing Remote EJB (access to web service restricted using declarative security model)

Category:DefaultRelease time:2015-10-11Views:130

Hello everyone, I developed a Web Service prototype accessing remote EJB using the EJB control with special syntax in the jndi-name attribute: @jws:ejb home-jndi-name="t3://10.10.245.70:7131/AccountDelegatorEJB" Everything works fine, but I get[More]

Error creating bean with name 'org.springframework.dao.annotation.Persisten

Category:DefaultRelease time:-0001-11-30Views:130

Hello I am using Hibernate 4, Spring 3 , JSF 2.0 and Weblogic 10.3.6 When I start weblogic server and server starts successfully, however whenever it starts publishing application, I am getting the following exception. Error creating bean with name '[More]

Ejb3 session bean lookup

Category:DefaultRelease time:-0001-11-30Views:130

Hello, I have following problem with the ejb3 and session bean lookup: For example, I have a session bean with some dummy method, i.e. getInfo() : @Stateless public class MySessionBean implements MySessionLocal { public String getInfo() {return "Hell[More]

Network error: Unable to lookup host names

Category:DefaultRelease time:-0001-11-30Views:130

on one client running the cisco any connect, It is unable to connect and keeps giving an error Network error: Unable to lookup host names. any idea about this?You tell us that this happens on one client. Are there other clients which work ok? If so t[More]

Error creating bean

Category:DefaultRelease time:-0001-11-30Views:130

Hi All , I wants to migrate project from IBM Web shpere to eclipse 3.0,Tomcat 4.1 (database ms sql)while doing so i m getting following problem. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean can anybody help[More]

Hot
I have a question that hopefully someone might have the answer for... I have a IPlanet 6.0 SP4 server that has an SSL certificate I'm trying to move to a new server that's on SunOne 6.1. I was under the impression that I could easily copy the <Iplane [More]
Hallo All, It started with Software update not being able to update. I had to repair my Hard Disk, and I ended up by using the recovery partition to clean the Hard Disk. I'm back by reloading the latest available backup from Time Capsule. The softwar [More]
I have a HP Envy TouchSmart 15t-j000 and I want to enter bios. When I restart the computer just the HP logo appears.I've tried to press ESC, F1 - F12, insert, delete, home, end... Nothing works.Do you know how I can do this?ThanksMarius_Paval wrote: [More]
Hi everyone, Please guide me about the following query: How can we find the complete short text field information of a service notification. Please guide me how can i find this information for all the service notifications which are created in a spec [More]
Dear Sirs... Using JDeveloper 10.1.2.1.0 and ADF UIX, if i would like to add a text file to the view project, how can i load that file content? i.e. how can i treat it as a resource file, and how can i get its path? thanks for any help in advance bes [More]
Hi I have installed the BEA weblogic server 6.1 service pack 4 as part of PIA (PeopleSoft Internet Architecture) installation for PeopleSoft 8.8. After starting the weblogic server, When I type the http://localhost:12080 (http port number 12080) idea [More]
I am using an external Yeti microphone to record narration in Adobe Premier Elements.  I have set up the microphone in the system preferences and also in the Adobe program.  I can hit record but there is no sound on the playback.  What setting am I m [More]
Hello everyone, Apologies first of all if this seems like a silly question or one with an obvious answer. Please bear with me and help me if you can! I have a table in Dreamweaver. I'd like one of the rows in it to be a particular height. When it is [More]
Hi Guys, We have been having major problems since upgrading from v2 to v4. One of the problem I have been having is with Tabular Forms. I have quite a complex page with multiple regions which has always worked fine in version 2. One of those regions [More]
i used to use an older macbook, where my extern (it is a WD) would always show up. it would also show up on other, newer, macbooks, even pros. now i have gotten myself a macbook pro and it wont show up! what do i do? thank you in advance lauritzTry t [More]