Java.lang.NullPointerException   in the code to read a properties file

I have written the following code to read a properties file...........
<b>
public Property(String fileName)
    try
       InputStream is = MyClassName.class.getClass().getClassLoader().getResourceAsStream(fileName);     
       prop.load(is);
       is.close();
    catch (Exception ex)
        System.out.println("The Exception is:        " + ex.getMessage());
        ex.printStackTrace();
</b>
But this code is giving <b> java.lang.NullPointerException </b> at <b> prop.load(is) </b>
please help me....
regards
Brahmachaitanya

hi,
    If you are loading a resource (property) file from a jar file you can use
getResourceAsStream("com/test/test.properties").
    if the propery file is in outside of your jar file . you can use
Property portalProps = new Property ();
try {
               FileInputStream fileInputStream = new FileInputStream("<FilePath + FileName>");
               portalProps.load(fileInputStream);
               fileInputStream.close();
          } catch (IOException e) {
               //Log the error
refer the following link for more details
http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html

Similar Messages

  • Java.lang.NullPointerException in the record working time iview

    Hello,
      I am getting java.lang.NullPointerException when I try to access the record working time iView. Below is the full exception chain.
    Please help me out in fixing the issue.
    java.lang.NullPointerException
         at com.sap.pcuigp.xssutils.pernr.FcEmployeeServicesInterface.getEmployeenumber(FcEmployeeServicesInterface.java:115)
         at com.sap.pcuigp.xssutils.pernr.wdp.InternalFcEmployeeServicesInterface.getEmployeenumber(InternalFcEmployeeServicesInterface.java:175)
         at com.sap.pcuigp.xssutils.pernr.wdp.InternalFcEmployeeServicesInterface$External.getEmployeenumber(InternalFcEmployeeServicesInterface.java:235)
         at com.sap.xss.hr.cat.record.blc.RfcManager.init(RfcManager.java:791)
         at com.sap.xss.hr.cat.record.blc.wdp.InternalRfcManager.init(InternalRfcManager.java:248)
         at com.sap.xss.hr.cat.record.blc.FcCatRecordInterface.onInit(FcCatRecordInterface.java:344)
         at com.sap.xss.hr.cat.record.blc.wdp.InternalFcCatRecordInterface.onInit(InternalFcCatRecordInterface.java:234)
         at com.sap.xss.hr.cat.record.blc.wdp.InternalFcCatRecordInterface$External.onInit(InternalFcCatRecordInterface.java:484)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:922)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:891)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.attachComponentToUsage(FPMComponent.java:1084)
         at com.sap.xss.hr.cat.record.vac.calendar.VcCatCalendar.onInit(VcCatCalendar.java:251)
         at com.sap.xss.hr.cat.record.vac.calendar.wdp.InternalVcCatCalendar.onInit(InternalVcCatCalendar.java:194)
         at com.sap.xss.hr.cat.record.vac.calendar.VcCatCalendarInterface.onInit(VcCatCalendarInterface.java:162)
         at com.sap.xss.hr.cat.record.vac.calendar.wdp.InternalVcCatCalendarInterface.onInit(InternalVcCatCalendarInterface.java:146)
         at com.sap.xss.hr.cat.record.vac.calendar.wdp.InternalVcCatCalendarInterface$External.onInit(InternalVcCatCalendarInterface.java:222)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:564)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:783)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:303)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:761)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:696)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:192)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:864)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1351)
         at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:356)
         at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:550)
         at com.sap.portal.pb.PageBuilder.wdDoInit(PageBuilder.java:193)
         at com.sap.portal.pb.wdp.InternalPageBuilder.wdDoInit(InternalPageBuilder.java:150)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:783)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:303)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:741)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:694)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:192)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)

    Hi,
    All the parameters are maintained in the SU01 but we are in strange situation here only for one test user id we are getting null pointer exception with the time sheet. We compared with the user id which is working there is no difference in the parameters
    maintained. Please tell me why this behavior between two user ids.
        These two are manager user ids. For employee user ids time sheet is working fine.

  • About  java.lang.NullPointerException in struts code

    Hi friends...
    I am working on the java struts in my healthcare project.I have used the following IDEs & environments
    1) Eclipse
    2) Tomcat 5.5
    3) Servlet 2.4
    I have created all the necessary jsp files & action ,form classes but i can't get my code compiled
    Also i obtainned a sample source code of File Upload in struts.But it don't get compiled
    The content of my struts-config.xml file is as follows
    <form-beans>
    <form-bean name="FileUpload" type="India.Beans.StrutsUploadForm"/>
    </form-beans>
    <global-forwards>
    </global-forwards>
    <!-- Upload Action Mapping -->
    <action-mappings>
    <action path="/FileUpload" type="India.Beans.StrutsUploadAction" name="FileUpload" scope="request" validate="true" input="/pages/FileUpload.jsp">
    <forward name="success" path="/pages/uploadsuccess.jsp">
    </forward>
    </action>
    </action-mappings>
    it shows exception as
    java.lang.NullPointerException
    So please guide me ..

    hi,
        If you are loading a resource (property) file from a jar file you can use
    getResourceAsStream("com/test/test.properties").
        if the propery file is in outside of your jar file . you can use
    Property portalProps = new Property ();
    try {
                   FileInputStream fileInputStream = new FileInputStream("<FilePath + FileName>");
                   portalProps.load(fileInputStream);
                   fileInputStream.close();
              } catch (IOException e) {
                   //Log the error
    refer the following link for more details
    http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html

  • Java.lang.NullPointerException in sun code with latest JRE (1.6.0_02)

    We upgraded to the latest JRE and when we go to our website which has an unsigned applet and I answer Yes to trust it, the applet never runs.
    I turned on debugging in the java console and see this after the certificate negotiation stuff is sent bck and forth:
    security: Certificate has failed the verification with the SSL Root CA certificates
    security: Invalid certificate from HTTPS server
    java.lang.NullPointerException
         at com.sun.deploy.ui.UIFactory.showSecurityDialog(Unknown Source)
         at com.sun.deploy.security.TrustDeciderDialog.showDialog(Unknown Source)
         at com.sun.deploy.security.X509ExtendedDeployTrustManager.checkServerTrusted(Unknown Source)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
         at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
         at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
         at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
         at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
         at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
         at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
         at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(Unknown Source)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.access$600(Unknown Source)
         at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath$JarLoader.ensureOpen(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
         at sun.misc.URLClassPath$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    security: Adding certificate in Deployment denied certificate store
    security: Added certificate in Deployment denied certificate store
    For another person at same IE level and JRE level it works fine and debug for that shows:
    security: Certificate has failed the verification with the Internet Explorer ROOT certificates
    security: Invalid certificate from HTTPS server
    security: Adding certificate in Deployment session certificate store
    security: Added certificate in Deployment session certificate store
    security: Saving certificates in Deployment session certificate store
    security: Saved certificates in Deployment session certificate store
    Is there something wrong with the "Deployment session certificate store" in the first instance? Treid un/reinstalling the JRE but it didn;t fix things.

    Regenerate what certificate? The applet is unsigned.
    Plus other people with the same IE level and same JRE level do not have this problem, which leads me to think it is something specific to this user, like maybe the deployment session certificate store. Is that a file someplace we can like delete to start clean?
    Edited by: Jim_does_java on Oct 1, 2007 4:56 AM

  • "java.lang.NullPointerException" using the calender-iview

    Hi,
    We are using SAP NetWeaver Portal 6.0.14.0.0, KM-Version 6.0.14.2.0 and Microsoft Exchange 2000.
    Our SysAdmin has integrated Exchange into the portal and I integrated two calender-iviews (one-month-overview & one-daay-overview). Until last week everything worked fine and everybody was able to see his appointments within this two iviews. But now we get the error-message "
    java.lang.NullPointerException" in this iviews. 
    We haven´t changed anything, this error-message appeared suddenly. Has anybody an idea what´s wrong?
    Thanks for help.
    Greetings,
    Sven

    Hi Sven,
    (a) You should definitely check the log files (default.X.trc) to get a more specific idea where the error comes from.
    (b) If you don't realise immediately where the problem comes from when watching the traces, consider opening an OSS message, for at least a NPE should never be thrown on the UI.
    Hope it helps
    Detlev

  • Java.lang.NullPointerException: When Get the PDF File Name

    Hi,
    i try to follow the blog on <b>Handling FileUpload and FileDownload in NetWeaver Developer Studio(NWDS) 2004S</b> on /people/rekha.malavathu2/blog/2006/12/12/handling-fileupload-and-filedownload-in-netweaver-developer-studionwds-2004s
    as i create a fileupload and i wish to get the file name and the pdf, then i to run and deploy it but i get <b>java.lang.NullPointerException</b>
    the code are as below when i click on send email button
    IPrivateEmail.IFileUploadNodeNode node = wdContext.nodeFileUploadNode();
    IPrivateEmail.IFileUploadNodeElement fileUploadEle = node.createFileUploadNodeElement();
         try{
         IWDResource resource = WDResourceFactory.createResource(wdContext.currentContextElement().getFileUploadUI().read(true), wdContext.currentContextElement().getFileUploadUI().getResourceName(), WDWebResourceType.PDF, true);
         fileUploadEle.setFileUploadAttr(resource);
         fileUploadEle.setFileUploadName(wdContext.currentContextElement().getFileUploadUI().getResourceName());
         node.addElement(fileUploadEle);
         }catch(Exception e){
         wdComponentAPI.getMessageManager().reportSuccess("ERROR"+e.getMessage());
    but i wonder which part of the code i did wrongly.. as i wish to insert into my send email code
    Properties props = new Properties();
              String host = "SMTP HOST";
              props.put("mail.smtp.host", host);
              Session session = Session.getInstance(props, null);
              MimeMessage message = new MimeMessage(session);
              Address toAddress = new InternetAddress();
              Address fromAddress = new InternetAddress();
              Address ccAddress = new InternetAddress();
              Address bccAddress = new InternetAddress();
              try
                   MimeMultipart multipart = new MimeMultipart();
                   BodyPart messageBodyPart = new MimeBodyPart();
                   if (! wdContext.currentEmailElement().getFrom().equals(""))
                        fromAddress = new InternetAddress(wdContext.currentEmailElement().getFrom());               
                        message.setFrom(fromAddress);
                   if (! wdContext.currentEmailElement().getTo().equals(""))
                        toAddress = new InternetAddress(wdContext.currentEmailElement().getTo());
                        message.setRecipient(Message.RecipientType.TO, toAddress);
                   if (! wdContext.currentEmailElement().getCc().equals(""))
                        ccAddress = new InternetAddress(wdContext.currentEmailElement().getCc());
                        message.setRecipient(Message.RecipientType.CC, ccAddress);
                   if (! wdContext.currentEmailElement().getBcc().equals(""))
                        bccAddress = new InternetAddress(wdContext.currentEmailElement().getBcc());
                        message.setRecipient(Message.RecipientType.BCC, bccAddress);
                   if (! wdContext.currentEmailElement().getSubject().equals(""))
                        message.setSubject(wdContext.currentEmailElement().getSubject());
                   if (! wdContext.currentEmailElement().getBody().equals(""))
                        messageBodyPart.setText(wdContext.currentEmailElement().getBody());
                   multipart.addBodyPart(messageBodyPart);
                   messageBodyPart = new MimeBodyPart();
                   String filename = IWDResource.getResourceName();
                   DataSource source = new FileDataSource(filename);
                   messageBodyPart.setDataHandler(new DataHandler(source));
                   messageBodyPart.setFileName(source.getName());                    
                   messageBodyPart.setHeader("Content-Type","application/pdf");
                   multipart.addBodyPart(messageBodyPart);
                   message.setContent(multipart);
                   Transport.send(message);
              catch (AddressException e)
                   wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
                   e.printStackTrace();
              catch (SendFailedException e)
                   wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
                   e.printStackTrace();
              catch (MessagingException e)
                   wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
                   e.printStackTrace();
    so i wonder could anyone help me out.. as i need to get the pdf filename order to put into the variable call <b>filename</b> at the send mail code.
    below is the error message
    java.lang.NullPointerException
         at com.sap.example.uploademail.Email.wdDoInit(Email.java:124)
         at com.sap.example.uploademail.wdp.InternalEmail.wdDoInit(InternalEmail.java:146)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:748)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:283)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

    facing same issue.
    jdev 10.1.3.3.0, on expanding the database connection, I get a null pointer exception.
    On the testing the connection it says 'success' though.
    any inputs ?

  • Windows AD Auth - Logon to Infoview fail "java.lang.NullPointerException"

    OS: Windows Server 2003
    Java Application Server: Websphere 6.0.2.21
    Product: BO XI R2 SP2
    We are trying to setup the the Windows AD authentication.
    I have tried to setup Windows AD authentication with SP1 (with websphere v6.0.2.21) before and I can login to Infoview with Windows AD Authentication successfully. But when I upgrade to SP2, the Infoview Login give me error "java.lang.NullPointerException".
    The CMC Login works fine with both Enterprise Authentication and Windows AD Authentication.
    Infoview Login works with Enterprise Authentication but not with Windows AD.
    I have searched the KBase for the similar issue:
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=9920833&sliceId=&dialogID=23466615&stateId=1 0 23468352
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=9066672&sliceId=&dialogID=23466615&stateId=1 0 23468352
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=9762898&sliceId=&dialogID=23466615&stateId=1 0 23468352
    I have implemented the solution given by the articles, also asked IBM for help and still the problem persists.
    The error I found on the log file is
    <log4j:event logger="com.crystaldecisions.enterprise.ocaframework.ManagedService" timestamp="1212742571944" level="WARN" thread="ProxyPoolRefresher for Thread[WebContainer : 0,5,main]">
    <log4j:message><![CDATA[invoke(): Irrecovrable exception]]></log4j:message>
    <log4j:throwable><![CDATA[com.crystaldecisions.enterprise.ocaframework.idl.OCA.oca_abuse: IDL:img.seagatesoftware.com/OCA/oca_abuse:3.2
                at com.crystaldecisions.enterprise.ocaframework.idl.OCA.oca_abuseHelper.read(oca_abuseHelper.java:106)
                at com.crystaldecisions.enterprise.ocaframework.idl.OCA.OCAd._PluginDistributionVerStub.getPluginInfoByTypeVer(_PluginDistributionVerStub.java:156)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
                at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
                at com.crystaldecisions.enterprise.ocaframework.e.invoke(Unknown Source)
                at com.crystaldecisions.sdk.occa.pluginmgr.internal.c.getPluginInfoByTypeVer(Unknown Source)
                at com.crystaldecisions.sdk.occa.pluginmgr.internal.PluginMgr.getPluginInfo(Unknown Source)
                at com.crystaldecisions.sdk.occa.pluginmgr.internal.PluginMgr.getPluginInterface(Unknown Source)
                at com.crystaldecisions.sdk.occa.infostore.internal.al.continueUnpack(Unknown Source)
                at com.crystaldecisions.sdk.occa.infostore.internal.al.startUnpack(Unknown Source)
                at com.crystaldecisions.sdk.occa.infostore.internal.InternalInfoStore.queryHelper(Unknown Source)
                at com.crystaldecisions.sdk.occa.infostore.internal.InternalInfoStore.query(Unknown Source)
                at com.crystaldecisions.sdk.occa.infostore.internal.at.query(Unknown Source)
                at com.bo.aa.util.CorbaUtils.setClusterName(CorbaUtils.java:886)
                at com.bo.aa.util.CorbaUtils.getEnterpriseSession(CorbaUtils.java:121)
                at com.bo.aa.util.CorbaUtils.getInfoStore(CorbaUtils.java:154)
                at com.bo.aa.util.CorbaUtils.queryInfoStore(CorbaUtils.java:182)
                at com.bo.aa.util.CorbaUtils.GetNotDisabledDashboardAnalyticsServerNames(CorbaUtils.java:1219)
                at com.bo.aa.occa.AAServersHandler$ProxyPoolRefresher.run(AAServersHandler.java:812)
    ]]></log4j:throwable>
    </log4j:event>
    <log4j:event logger="com.crystaldecisions.sdk.occa.pluginmgr.internal.PluginMgr" timestamp="1212742571944" level="WARN" thread="ProxyPoolRefresher for Thread[WebContainer : 0,5,main]">
    <log4j:message><![CDATA[getPluginInfo(): Failed to get plugin:[email protected]:13]]></log4j:message>
    <log4j:throwable><![CDATA[com.crystaldecisions.enterprise.ocaframework.idl.OCA.oca_abuse: IDL:img.seagatesoftware.com/OCA/oca_abuse:3.2
                at com.crystaldecisions.enterprise.ocaframework.idl.OCA.oca_abuseHelper.read(oca_abuseHelper.java:106)
               at com.crystaldecisions.enterprise.ocaframework.idl.OCA.OCAd._PluginDistributionVerStub.getPluginInfoByTypeVer(_PluginDistributionVerStub.java:156)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
                at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
                at com.crystaldecisions.enterprise.ocaframework.e.invoke(Unknown Source)
                at com.crystaldecisions.sdk.occa.pluginmgr.internal.c.getPluginInfoByTypeVer(Unknown Source)
                at com.crystaldecisions.sdk.occa.pluginmgr.internal.PluginMgr.getPluginInfo(Unknown Source)
                at com.crystaldecisions.sdk.occa.pluginmgr.internal.PluginMgr.getPluginInterface(Unknown Source)
                at com.crystaldecisions.sdk.occa.infostore.internal.al.continueUnpack(Unknown Source)
                at com.crystaldecisions.sdk.occa.infostore.internal.al.startUnpack(Unknown Source)
                at com.crystaldecisions.sdk.occa.infostore.internal.InternalInfoStore.queryHelper(Unknown Source)
    at com.crystaldecisions.sdk.occa.infostore.internal.InternalInfoStore.query(Unknown Source)
                at com.crystaldecisions.sdk.occa.infostore.internal.at.query(Unknown Source)
                at com.bo.aa.util.CorbaUtils.setClusterName(CorbaUtils.java:886)
                at com.bo.aa.util.CorbaUtils.getEnterpriseSession(CorbaUtils.java:121)
                at com.bo.aa.util.CorbaUtils.getInfoStore(CorbaUtils.java:154)
                at com.bo.aa.util.CorbaUtils.queryInfoStore(CorbaUtils.java:182)
                at com.bo.aa.util.CorbaUtils.GetNotDisabledDashboardAnalyticsServerNames(CorbaUtils.java:1219)
              at com.bo.aa.occa.AAServersHandler$ProxyPoolRefresher.run(AAServersHandler.java:812)
    ]]></log4j:throwable>
    </log4j:event>
    anyone ecntounter this error before?
    HELP!
    -oey-

    It seems that SP2 of our product ran into some type of bug in WAS 6.0. I believe 6.1 resolves or see this KB for a fix.
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=9762898
    Regards,
    Tim
    Edited by: Tim Ziemba on Jun 11, 2008 8:32 AM

  • Java.lang.nullpointerexception in Guided Procedure

    Hello Guru's,
    We have integrated a WD4J application in Guided Procedure.
    And within this application there is a Submit Button, on clicking it we are getting Java.lang.NullPointerException.
    The same application works fine for other users, only 1 user is having this issue.
    And I tried replicating the same in our Development system and it works fine.
    This issue occurs only in Production.
    Full Message Text
    Exception occured during processing of Web Dynpro application sap.com/cafeugpuiinst/AInstantiation. The causing exception is nested.
    [EXCEPTION]
    java.lang.NullPointerException
    at com.sfwmd.Contract.newcontract(Contract.java:798)
    at com.sfwmd.wdp.InternalContract.newcontract(InternalContract.java:814)
    at com.sfwmd.ContractView.onActionComplete(ContractView.java:5075)
    at com.sfwmd.wdp.InternalContractView.wdInvokeEventHandler(InternalContractView.java:1142)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:333)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:741)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:694)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Full Message Text
    application [webdynpro/dispatcher] Processing HTTP request to servlet [dispatcher] finished with error. The error is: java.lang.NullPointerException
    at com.sfwmd.Contract.newcontract(Contract.java:798)
    at com.sfwmd.wdp.InternalContract.newcontract(InternalContract.java:814)
    at com.sfwmd.ContractView.onActionComplete(ContractView.java:5075)
    at com.sfwmd.wdp.InternalContractView.wdInvokeEventHandler(InternalContractView.java:1142)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:333)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:741)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:694)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Full Message Text
    application [webdynpro/dispatcher] Processing HTTP request to servlet [dispatcher] finished with error.
    The error is: java.lang.NullPointerException: null
    Exception id: [0003BAC3E095007900000C830000620E0004B61AE95D50D6]
    Please assist in resolving this issue.
    Thanks & Regards,
    Pramod

    Hi Maksim,
    Thanks for the reply. you are right NPE is at 798 line but this issue is only with one user, for others it works fine. That is my issue.
    Here is the code at 798 :
    wdThis.wdFireEventCallContractView(wdContext.currentNewOutputElement().getW_Zzconnum(),flag);
    public INewOutputElement(InternalContract delegate, com.sap.tc.webdynpro.progmodel.gci.IGCINodeInfo info, Object modelInstance) {
          super(info, modelInstance);
          this.gen_modelInstance = (com.s.insertmodel.Z_Bapi_Insert_Contract_Data_Output) modelInstance;
          gen_delegate = delegate;
    Can you look at this code and tell me what is wrong?
    Thanks & Regards,
    Pramod

  • Error: java.lang.NullPointerException in servlet deployment

    Hi!!!
    Im trying to deploy a servlet created in Jdeveloper on OC4J, but got the Error: java.lang.NullPointerException when the Jdeveloper is deploying the servlet.
    The containers are running, so I don't know what is the problem....
    Thanks

    If you could give a little more info it would help. The web.xml for example, if your mapping it correctly, etc...

  • Java.lang.NullPointerException when extending controller

    Hi,
    I am working in Oracle Internet expenses module. My requirement is to check 2 values in a page and if any of them is NULL, i need to throw an error message on the page. Code snippet in the extended controller is:
    (In the method 'processFormRequest')
    1 if("goto".equals(s) && "OIENavBar".equals(s1) && "ExpenseAllocationsPG".equals(s6))
    2 {
    3 if(NavigationUtility.isNextClicked(oapagecontext))
    4 {
    5 if (oapagecontext.getParameter("ProjectId").equals("null") || oapagecontext.getParameter"TaskId").equals("null"))
    6 {
    7 // my logic goes here
    8 }
    9 }
    10 }
    When I use this extended controller, I am getting java.lang.NullPointerException at the line 5. Can someone tell me where I am going wrong?
    Regards,
    Gowthami.

    Hi,
    Change the condition at line5 in the following way.
    5 if ((oapagecontext.getParameter("ProjectId") == null) || (oapagecontext.getParameter("TaskId") == null))
    HTH,
    Syed

  • Java.lang.NullPointerException when  uploading a template using XML Admin R

    Morning All,
    i have some issue when i try to upload my templates in Oracle Applications.
    I was able to upload just one of my templates becasue on some of them i get the java.lang.NullPointerException from the system.
    Anyone has alredy experienced something like this? any idea/workaround?
    Thank You, Pier Paolo.

    hi there and thanks for your answer :_)
    actually the two files are completly the same at least concerning the text, font and graphics i have been used (ofc what is written in there is different).
    I noticed just a small difference in terms of kb between the two files...so i made a copy of the one that has been uploaded correcly and i have replaced the body with the one i needed. Now it's working fine...so it seems that there was some sort of difference in the file itself and not in what it was containing.
    Dunno if you can help me out on this...but have you noticed some characters or form items that are not printed out correcly once you publish the report? (i have some problem in showing the quote and the CheckBoc Form field)
    Thank You, Pier Paolo.

  • Java.lang.NullPointerException with FTP receiver

    Hi All,
    I have a java.lang.NullPointerException in the Runtime Workbench for my FTP Adapter, that is a receiver.
    At SXMB_MONI all the messages are successful.
    What this could be?
    Thanks in advance,
    Daniela

    Naveen,
    Thanks for your help.
    I took a look in RWB and it seems like there was an error when CC tried to connect with the FTP server. The last two messages are:
    Success -> Connect to FTP server "10.112.144.108", directory "\interfaces2\conversionesTest"
    Error -> Attempt to process file failed with Error occurred while connecting to the FTP server "10.112.144.108:22": java.lang.NullPointerException
    Do you think ii could be an conection error (login, port) or a wrong configuration in my CC?
    Thaks in advance,
    Daniela Machado

  • Java Attchment Error:java.lang.NullPointerException

    Hi Friends,
    My scenario is file to SOAP where I have to send ttachment. I have created attachment using java mapping. But in the call adapter step Iam getting the below error
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: Could not queue receive for message f67c5761-7a37-44f2-152e-f499a503f663(INBOUND). Reason: java.lang.NullPointerException
    In the trace log i found
    System_Error">External error header received
    Please let me know how we can resolve this
    Thanks,
    Dinesh

    Make sure that value of "Large Payload Directory" is a valid directory. You can find it at Administration -> Configuration --> Performance. By default it's value is "/tmp" which is not a valid path for all the OS.
    Please refer section "A.2 Handling Large Payloads" at -
    http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10229/app_perform.htm#BABCDGBD
    Regards,
    Anuj

  • File send adapter error : java.lang.NullPointerException

    Hi All,
    I have an issue on some of the file sender adapter communication channels .The channels are failing with the error :
    Error :"Attempt to process file failed with java.lang.NullPointerException"
    This issue is happening for couple of file sender channels.When I try to stop and start the channels couple of times the failed messages are getting processed.And after the processing of the failed file, the new files are successfully polling as usual.
    Please share your experiences as on why this issue is happening and what is the permanent fix for the issue ?
    Thanks in Advance !
    Thanks & Regards,
    Roni

    Hi Roni,
       Try with a J2EE restart of the PI server. Hope that will solve your problem.
    Thanks,
    Anudeep

  • Java.lang.NullPointerException when trying to preview an iVew in EP

    We have set up a portal federation with a BI portal as the producer and a enterprise portal as the consumer. When we try to do a preview on iView which is based on BW 7 based contents from producer portal, we get java.lang.NullPointerException. The 3x based reports are being displayed fine on the consumer side. I have put excerpt from the default_trace from producer portal that gives some error messages but I am not able to figure out where the problem might be.
    Any help is greatly appriciated.
    Thanks
    -Sujeet
    default_trace:
    l.ivs.globalPortal.com.sap.portal.ivs.global.jndibridge.serializers.runtime.plugins.GetPropertyAttributeSer.execute#snaru#769##
    ashland.namerica_BID_106146150#snaru#0837f580ddbf11dd9ba5001a4b084cca#SAPEngine_Application_Thread[impl:3]_21##0#0#Debug##Java#
    ##Found for attribute of property the value #3#inheritance#System#NONFINAL#
    #1.5^H#001A4B084CCA007C0000001000006F9100045FFE190F0017#1231444853688#com.sap.portal.ivs.semantic.systemLandscape#sap.com/irj#c
    om.sap.portal.ivs.semantic.systemLandscape.SystemLandscapePlugin: handleRequest()#snaru#769##ashland.namerica_BID_106146150#sna
    ru#0837f580ddbf11dd9ba5001a4b084cca#SAPEngine_Application_Thread[impl:3]_19##0#0#Debug##Java###Request for System Landscape plu
    gin received##
    #1.5^H#001A4B084CCA007C0000001100006F9100045FFE190F00B6#1231444853689#com.sap.portal.ivs.semantic.systemLandscape#sap.com/irj#c
    om.sap.portal.ivs.semantic.systemLandscape.SystemLandscapePlugin: handleRequest()#snaru#769##ashland.namerica_BID_106146150#sna
    ru#0837f580ddbf11dd9ba5001a4b084cca#SAPEngine_Application_Thread[impl:3]_19##0#0#Debug##Java###Request for handleGetSystemId()
    received##
    #1.5^H#001A4B084CCA007C0000001200006F9100045FFE190F017E#1231444853689#com.sap.portal.ivs.semantic.systemLandscape#sap.com/irj#c
    om.sap.portal.ivs.semantic.systemLandscape.get alias registry entry#snaru#769##ashland.namerica_BID_106146150#snaru#0837f580ddb
    f11dd9ba5001a4b084cca#SAPEngine_Application_Thread[impl:3]_19##0#0#Debug##Java###Failed to get alias '' from the Portal Regi
    stry#1#SAP_BW#
    #1.5^H#001A4B084CCA007C0000001300006F9100045FFE190F0206#1231444853689#com.sap.portal.ivs.semantic.systemLandscape#sap.com/irj#c
    om.sap.portal.ivs.semantic.systemLandscape.getSystemId#snaru#769##ashland.namerica_BID_106146150#snaru#0837f580ddbf11dd9ba5001a
    4b084cca#SAPEngine_Application_Thread[impl:3]_19##0#0#Debug##Java###System could not be resolved dynamically, use default PCD r
    esolution##
    #1.5^H#001A4B084CCA00700000002200006F9100045FFE190FA7F5#1231444853731#com.sap.portal.ivs.globalPortal#sap.com/irj#com.sap.porta
    l.ivs.globalPortal.com.sap.portal.ivs.global.jndibridge.processor.getaspect.BaseGetAspectProcessor.getProcessor#snaru#769##ashl
    and.namerica_BID_106146150#snaru#0837f580ddbf11dd9ba5001a4b084cca#SAPEngine_Application_Thread[impl:3]_22##0#0#Debug##Java###Fo
    und processor: #1#com.sap.portal.pcm.Administration#

    I've found something which could maybe be what I need to do but I'm not sure:
    // Build a new ClassLoader using the given URLs, replace current Classloader
    ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
    ClassLoader newCL = new URLClassLoader(myClasspathURLs, oldCL);
    Thread.currentThread().setContextClassLoader(newCL);
    System.out.println("Successfully replaced ClassLoader");
    Class fooClass = newCL.loadClass(appClass); //which replaces the line "Class<?> tempFileClass = Class.forName("TempFile");" ?!Is that what I need to do?
    EDIT: I've tried that but I still have the same problem:
                      File classFile = new File ("TempFile.class");
                      ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
                      ClassLoader newCL = new URLClassLoader(new URL[] {classFile.toURL()}, oldCL);
                      Thread.currentThread().setContextClassLoader(newCL);
                      System.out.println("Successfully replaced ClassLoader");
                      Class tempFileClass = newCL.loadClass("TempFile");
                      Method main = tempFileClass.getMethod("main", String[].class);
                      main.invoke(null,new String[0]); Edited by: Foobrother on Jul 28, 2008 8:18 AM

Maybe you are looking for

  • Installation in VMware Oracle Identity Manager (9.1.0.0)

    Hello everyone, I'm quite unfamiliar with the Oracle products but I try to install the Identity Suite by following the available documation. Unfortunately there are some special points they missed but I already find them out in this forum. But now I'

  • Finding structures in which tables they are

    Hi Guis, If we have a strucrure How to find the tables in which this structure has been used. Thanks, Santhosh

  • Sign a document with iPad compatible pen...

    Is it possible or will be possible to sign a document on iPad with a pen, for example I have some text and then a person puts signature on it.

  • How can I revert back to a previous Java Update

    I am having issues with my software since the last java update. At the moment the only option i see to fix this issue is by reverting back to my previous java update. Please please tell me how to do this. Apple's decision to bundle java into the the

  • All photos does not follow the stream

    Seemingly only random pictures does not follow the photo stream from iphone to macbook - any clues how that can happen, or where I start the troubleshooting..?