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 would like to stream video and audio from my IPhone 4 to my Wndows 7 Pro PC, either by Bluetooth or WiFi. Cant find anything about how to do this. Any help would be great!Contacts are designed to be synced with a supported address book application [More]
Hi, The genius button has gone missing on my iPhone 4S. Any ideas how to get it back? Note that I have tapped the screen, and the other additional controls are visible.Yes. In the mean time I have found the cause: No match and genius at the same time [More]
hi everyone! i was wondering if anyone knows what can be done to change the nokia Keyboard layout in the phone. i just recently changed my nokia keyboard to an english layout type previous one was spanish layout type, so all the characters in the pre [More]
I need some advice. I have AEBS and TC. Currently, the connection between them is "Extend wireless network". They are located on the opposite ends of my condo. I am doing some work on my unit and I have a chance to draw an ethernet cable between [More]
Hi Friends, I have a search window ,in one I/P Field i entered * and kept the default max hits to display as 100 records(This can be changed). Now when i click on Search i get 100 records being displayed,later when i change it to 150,200 Hits i am ab [More]
Hi, I have partitioning by Hash on a Large Table of 5 TB. We have to load Data say more than 500GB daily on that table from ETL. What is the best way to Load data into that Big Table which has hash Partition . Regards Sahil SoniDo you have any specif [More]
Ever since I installed Firefox 3.6.6, "hanging", which hardly happened before, has become so frequent that it is very annoying. My use habit and pattern has not changed. Should I just re-install the earlier version? == This happened == A few tim [More]
My wife and I share an iPad and we both have a music library how can we merge them together instead of bouncing between user accounts?Welcome to the Apple Community. You can only log into one iTunes account at a time on an iOS device, you cannot merg [More]
I just upgraded my operating system to 10.8.5, and now the Creative Cloud Installer is not loading home or apps.Hi Erin, Please uninstall CC desktop and install again: 1. Go to Applications/Utilities/Adobe Installers and uninstall Creative Cloud desk [More]
https://support.mozilla.com/en-US/questions/871548 I suffer from this, the solution to use a bookmark works however I want to know how and what changes prevent the use of the URL Bar for such things. Sometimes Firefox will respond to it being pasted [More]