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 am testing out the search feature of Foundation 2013 and I want to allow my users to refine their searches via Result Sources.  From the instructions that I have read I should be able to do this in the Global Search Results page that I created -> S [More]
I moved my iTunes librrary to my external TC and hook up to it wirelessly.  How do I get my iTunes library to stop changing to my local drive on my MBA?  It has changed now 3 times from my TC to MBA. iTunes 11.1Interesting . . . I run iTunes off an e [More]
I click on "Start Broadcasting" and choose my webcam, then I click "Webcam Only" and then "Finish" It hangs for a moment and then crashes with the message "Adobe flash plugin has crashed reload this page to try again. (I [More]
Hello, I'm new to FCE and have found that I can't use music that I have bought from Itunes in my projects. I have read that there is free program called "hear you music anywhere" that will allow this to work. I have googled this but just get sen [More]
I have been importing RAW files from my Canon S70 for a while, and everything has worked very well. Recently, however, imported RAW files are showing up with the incorrect white balance in iPhoto (different from the one they were taken with on the ca [More]
Hi, Panic over about cs3, because even though Adobe is not supporting it, it seems to work ok. Touch wood. Hopefully I won't come across any annoying problems which affect my workflow. I want to wait for cs5 to upgrade. A problem with spaces might be [More]
Hi All, I am facing the following problem while executing the JJ1INCHLN/J1INMIS (CHALLLAN UPDATE) Business place/Section Code SC01 in company code  does not exist Message no. 8I738 Please Guide me. Regards, Shashi kanthHi Gaurav Kumar, The error belo [More]
Hi, we found aproblem while running a query with authorization objects for a hierarchy node (0SALES_OFF). - Z_HPRODPIS (Hierarchy for sales offices) with fields: - 0SALES_OFF Sales Office - 0TCTAUTHH Authorization for hierarchy   We create hierarchy [More]
On the MacBook, 13 inch OS X Version 10.8.2, Volume keys: F10, F11, F12 stopped working as Volume keys.  How do I reset them back to functio  as the Volume keys?System Preferences>Keyboard: - this is from Snow Leopard so Mountain Lion may be slightly [More]
Please help with getting macbook pro Mac OS 10.4.11 to recognize the rca digital voice recorder VR5220. I understand that the recording has to be in HQ for the .wav file to be read by quicktime, but I am having trouble even getting the computer to re [More]