At sun.plugin2.applet.Plugin2Manager.findAppletJDKLevel(Unknown Source)??

i Signed applet as
keytool -genkey -keyalg rsa -alias TradeCast
keytool -export -alias TradeCast -file TradeCastCert.crt
jarsigner "CatalystDockingApplet.jar" TradeCast lib*but got some exception
java.lang.NullPointerException
     at sun.plugin2.applet.Plugin2Manager.findAppletJDKLevel(Unknown Source)
     at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
     at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
Exception: java.lang.NullPointerException
where am i wrong?

You are likely missing a class file that in your jar file.
I had a similar situation and found that the new "next-generation" java plugin does not report NoClassDefFoundError, but instead reports findAppletJDKLevel.
To see if you are missing class files, do the following:
1) Close all browsers, ensuring that there are no plugin coffee cup icons in the Windows taskbar.
2) Open the Java Control panel (Start->Control Panel->Java).
2.5) On the General tab, clear cache by clicking Settings..., Delete Files..., OK.
3) Open the Advanced tab.
4) Expand the Java Plug-in tree option.
5) Ensure that the "Enable the next-generation Java Plug-in" option is NOT checked and click OK.
6) Visit your page again.
7) View the java console stacktrace. It should include NoClassDefFoundError error message.
8) Add the missing classes to your jar file.

Similar Messages

  • Sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

    Hi Avi,
    Refer the earlier message below::
    Now I have OC4J version 9.0.2.
    The JDK version is Java(TM) 2 SDK, Standard Edition Version 1.3.1
    OS : Solaris
    I am trying to deploy the "How-To" example from the otn sample examples for JSP. It's a implementation of simple iterator tag. When I try to access the JSp page which has the taglib, it gives me the following error.
    Can u tell me what this error is ????
    500 Internal Server Error
    OracleJSP:
    JSP Error:
    Request URI:/iterate/iterateSample.jsp
    Exception:
    java.lang.NullPointerException
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.jsp.parse.JspUtils.loadClassJDK(JspUtils.java:219)
         at oracle.jsp.parse.JspUtils.loadClass(JspUtils.java:209)
         at oracle.jsp.parse.JspRTTag.(JspRTTag.java:102)
         at oracle.jsp.parse.JspParseState.createTagParser(JspParseState.java:410)
         at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:538)
         at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:160)
         at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:40)
         at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:295)
         at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:181)
         at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:338)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:481)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:696)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Hi,
    I developed a component using struts framework and deployed it in TOMCAT. It works fine. Now I am trying to deploy it in OC4J. I get the following error when I try to access the JSP. Can anybody tell me what this error is and how to resolve it?
    java.lang.NullPointerException
    at java.lang.String.startsWith(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.TagLibraryStorage.getTagLibContext(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpServer.getTagLibContext(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpApplication.getTagLibContext(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.JSPPageCompilation.addTagLibTag(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.JSPPageCompilation.compile(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.JSPPage.compile(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpApplication.getJSP(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpApplication.serviceJSP(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.JSPServlet.service(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpRequestHandler.processRequest(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpRequestHandler.run(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].util.ThreadPoolThread.run(Compiled Code)
    With Regards
    Amit Kapoor
    Title : re:OC4J Null Pointer Exception O/S : Solaris POST: REPLY (W/QUOTE)
    Author : Amit Kapoor Type : Statement
    Date : Jul 25, 2002 03:26 PT
    The version of the OC4J is 1.0.2.2.1
    Title : re:OC4J Null Pointer Exception O/S : Solaris POST: REPLY (W/QUOTE)
    Author : Avi Abrami Type : Question
    Date : Jul 25, 2002 03:31 PT
    Hi Amit,
    For starters, you are using an old version (1.0.2.2.1) of OC4J.
    You can download newer versions from this web page:
    http://technet.oracle.com/tech/java/oc4j/content.html
    That page also has links to documentation, "how-to" documents and
    sample code. Note that you also need to use compatible versions
    of java.
    Personally, I am using OC4J version 9.0.2.0.0 on SUN Solaris 7
    with JDK 1.3.1 (also from SUN).
    Also, (and if you don't already know about them) the following web
    sites may also be useful to you:
    http://www.orionserver.com
    http://www.orionsupport.com
    http://www.atlassian.com
    http://www.elephantwalker.com
    Good Luck,
    Avi.

    Sorry Amit,
    I have absolutely no idea. However, have you tried these other two
    forums:
    Technologies > Java > Java Server Pages (JSP)
    http://forums.oracle.com/forums/forum.jsp?id=399160
    Technologies > Other > Sample Code
    http://forums.oracle.com/forums/forum.jsp?id=428078
    Hope it helps.
    Good Luck,
    Avi.

  • NullPointerException at sun.applet.AppletPanel.findAppletJDKLevel

    Hi,
    we have a online HTML page containing an <applet> and different <iframe> definitions. By clicking a HTML link or calling Applet.getAppletContext().showDocument(), other HTML pages containing other applets are loaded into the referenced frame. All applets have identical archive and codebase attributes, allowing them to communicate with each other.
    This works actually very well. The problem is that sometimes newly loaded applets do not start, and a red cross appears in the inner frame. In all cases, the following exception appears in the java console (which does not happen if everything works fine):
    java.lang.NullPointerException
    at sun.applet.AppletPanel.findAppletJDKLevel(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)
    We experienced this on customer clients using
    - Windows XP or Vista
    - SUN Java 1.6 (e.g. Java 1.6.0_02), Java 1.5 worked so far
    - Firefox2, IE6, IE7
    Any ideas?
    We use the JarIndex mechanism to enable dynamical class loading, could that cause problems?

    After installing JRE1.6.0_02, the problem occured now as well, but didn't occur under the previously JRE1.5.0_07 version.
    For me, it seems to be some classloader related timing problem and occurs even in the following scenario:
    I have a main frame m, containing an inner frame a with applet A and an empty inner frame b.
    1. at startup, A gets loaded into a. A starts well.
    2. A loads a second Applet B via <applet> into b. B starts well.
    3. Click HTML button within m loads a third Applet C via <applet> into b. Using Java 1.6, B does sometimes not start (see first post)
    4. Click HTML button within m loads B via <applet> into b. This works.
    5. Click HTML button within m loads C via <applet> into b. This works sometimes, sometimes not.
    So, the class needed at that moment (whatever that is) is actually available but cannot be loaded properly at first start for some reason.
    As said before, codebase and archive tags are exactly the same. Javascript is not used at all. I couldn't set up a test environment to simulate this effect, so I'm sorry that I couldn't supply any code example.
    Does anyone could give me a hint please?

  • Urgent help: at sun.awt.FontConfiguration.getVersion(Unknown Source)

    Hi friends,
    This is a stupid issue, I am not able to solve sice almost two days.
    A simpl app throws this exception:
    Caused by: java.lang.NullPointerException
    at sun.awt.FontConfiguration.getVersion(Unknown Source)
    at sun.awt.FontConfiguration.readFontConfigFile(Unknown Source)
    at sun.awt.FontConfiguration.<init>(Unknown Source)
    at sun.awt.windows.WFontConfiguration.<init>(Unknown Source)
    at sun.awt.Win32GraphicsEnvironment.createFontConfiguration(Unknown Source)
    at sun.java2d.SunGraphicsEnvironment$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.java2d.SunGraphicsEnvironment.<init>(Unknown Source)
    at sun.awt.Win32GraphicsEnvironment.<init>(Unknown Source)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
    at javax.swing.RepaintManager.<clinit>(Unknown Source)
    +... 13 more+
    I dont know why the hell should it come.
    Is it related something to fonts.
    Even the least of help will be highly appreciated.,
    thanks

    Hi,
    I feel its not related to code as such. Maybe configuration stuff i guess.
    Because the same code runs in Eclispe....and was even working in Netbeans
    just 2 hours back....but now it ain't woking in netbeans.
    I need to use javafx you see, so need to use netbeans....
    help people...help

  • Com.sun.security.auth.login.ConfigFile.init(Unknown Source)

    Hello,
    Currently am working with Java SDK BI 4.1 to create stand alone application.
    I have Authentication problem though secWnAD for the below code.
    ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
    enterpriseSession = sessionMgr.logon("xxxxx","xxxxx", "xxxxxxx", "secWinAD");
    Error:
    Caused by: java.io.IOException: Unable to locate a login configuration
    at com.sun.security.auth.login.ConfigFile.init(Unknown Source)
    when I tried to implement the same through VBA I am not getting any error for authentication.
    Kindly help me.
    Regards
    Arun

    Now I have created the two files and
    added the below content
    krb5.ini
    [libdefaults]
        default_realm = xx.COM
        dns_lookup_kdc = true
        dns_lookup_realm = true
    [realms]
    XX.com = {
        default_domain = xxxx.xx.COM
        kdc = xx.COM
    bscLogin.conf
    com.businessobjects.security.jgss.initiate {
      com.sun.security.auth.module.Krb5LoginModule required;
    Now am getting
    KrbException: Cannot get kdc for realm XX.COM
    at sun.security.krb5.KrbKdcReq.send(Unknown Source)
    at sun.security.krb5.Credentials.sendASRequest(Unknown Source)
    at sun.security.krb5.Credentials.acquireTGT(Unknown Source)
    Regards
    Arun

  • Problem : It is question about unknown source.

    Following error of applet program practice that use jtable happened.Can not find correct position coming out by Unknown Source.Receive impression that do Oryuindeut from painted again part.During light bulb try ~ by catch catch can, is no there method that can solve error?
    java.lang.NullPointerException
         at sun.awt.image.SunVolatileImage.isGCValid(Unknown Source)
         at sun.awt.image.SunVolatileImage.validate(Unknown Source)
         at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
         at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
         at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
         at java.awt.Container.paint(Unknown Source)
         at sun.awt.RepaintArea.paint(Unknown Source)
         at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

    You used a language translation program to say that, didn't you? Try a different program, that one is no good.

  • RMI: Unknown source problem with connection & security

    When I try to run the RMI server code, after I have granted all permissions in my policy, after compiling through RMIC generating my stub and skeleton classes, and finally after running the RMI registry, I receive an error. The error that I have been getting is pasted below. I have searched through several java forums trying to find an answer and have not found one. If you recognized this error, please let me know if you have suggestions. Thanks.
    TestRmiServer exception: access denied (java.net.SocketPermission 192.168.0.152:
    1099 connect,resolve) //note: I'm using the default RMI port
    java.security.AccessControlException: access denied (java.net.SocketPermission 1
    92.168.0.152:1099 connect,resolve)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkConnect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
    ource)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
    ource)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
    at sun.rmi.server.UnicastRef.newCall(Unknown Source)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Unknown Source)
    at irad.nmi.services.util.testRmi.TestRmiServer.main(TestRmiServer.java:
    64)
    Anyway, a response would be welcome. Thanks.

    look at thread :
    http://forum.java.sun.com/thread.jspa?threadID=597299&tstart=0
    most likely you did not specify the -Djava.security.policy property properly.

  • Cannot connect to oracle db with - ensureMemberAccess(Unknown Source) error

    Hi there!
    i'm trying to run a simple applet to check connection with the oracle db:
    import java.sql.*;
    import oracle.jdbc.driver.*;
    class JDBCVersion
    public static void main (String args [])
    throws SQLException
    // Load the Oracle JDBC driver
    DriverManager.registerDriver
    (new oracle.jdbc.driver.OracleDriver());
    System.out.println("registered!");
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@host:1521:sid","user","pass");
    // Create Oracle DatabaseMetaData object
    DatabaseMetaData meta = conn.getMetaData ();
    // gets driver info:
    System.out.println("JDBC driver version is " + meta.getDriverVersion());
    I'm not getting any errors during the compilation and my CLASSPATH is ok pointing to the ojdbc14.jar file, i'm running j2sdk1.2.4_12 and the error
    when I'm trying to load applet is:
    java.lang.IllegalAccessException: Class com.opera.PluginPanel can not access a member of class JDBCVersion with modifiers ""
         at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at com.opera.PluginPanel.run(PluginPanel.java:406)
         at java.lang.Thread.run(Unknown Source)
    What is wrong???
    Any help would be very appreciable...
    Thanx.

    thank you for your valuable reply, but could you add
    some more additional information?Since I don't write applets and don't know anything additional, no.
    You might try posting your question in a forum that deals with applets and/or the Java security model. Or maybe if you wait long enough, someone who knows both JDBC and applet security will happen along and decide to answer your question.

  • Replace Unknown Source in EcmaError (JSR223) with actual file name

    Hopefully someone here knows how to do this:
    In my code, all of the scripts are contained in .js files. Whenever one of the scripts contains an error, I get this:
    javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "nonexistant" is not defined. (<Unknown source>#5) in <Unknown source> at line number 5
    What bugs me is the <Unknown Source>. Multiple files are in one ScriptContext, and it can be hard to track down an error. It also looks horrible.
    Is there a way to replace <Unknown Source> with the actual file name? None of the methods I see support passing a File object, so I'm really confused here.
    Cross posted (and unanswered) at:
    http://stackoverflow.com/questions/2885120/replace-unknown-source-in-java-rhino-jsr223-with-actual-file-name
    http://www.javaprogrammingforums.com/exceptions/4465-replace-unknown-source-ecmaerror-jsr223-actual-file-name.html
    http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino
    http://mozilla-xp.com/mozilla.dev.tech.js-engine.rhino/Replace-Unknown-Source-with-Script-file-name

    You may need to set compile debug option set to true.
    I am not sure if my tip is useful for you, anyway good luck.

  • Help w..TransformerFactoryConfigurationError:  newInstance(Unknown Source)

    When I tried this servlet example apache-tomcat-5.5.17 using java version "1.5.0_07"
    javax.servlet.ServletException: Servlet execution threw an exception
    root cause
    javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
         javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
         XML2HTMLServlet.openFile(XML2HTMLServlet.java:31)
         XML2HTMLServlet.doGet(XML2HTMLServlet.java:19)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    // XML2HTMLServlet.java
    //http://forum.java.sun.com/thread.jspa?forumID=34&threadID=260273
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    public class XML2HTMLServlet extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException {
    response.setContentType("text/html");
    PrintWriter writer = response.getWriter();
    try {
    openFile("file:/apps/tomcat/apache-tomcat-5.5.17/webapps/xml/financials.xml", "file:/apps/tomcat/apache-tomcat-5.5.17/webapps/xml/financials.xsl", writer);
    } catch (Exception e) {
    e.printStackTrace(writer);
    private void openFile(String xmlPath, String xslPath, PrintWriter writer)
    throws IOException, ParserConfigurationException, SAXException,
    TransformerConfigurationException, TransformerException {
    File xmlFile = new File(xmlPath);
    File xslFile = new File(xslPath);
    TransformerFactory tFact = TransformerFactory.newInstance();
    DocumentBuilderFactory dbFact = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = dbFact.newDocumentBuilder();
    Document xmlDoc = builder.parse(xmlFile);
    Document xslDoc = builder.parse(xslFile);
    Node xmlDocNode = (Node)xmlDoc;
    Node xslDocNode = (Node)xslDoc;
    DOMSource xmlSrc = new DOMSource(xmlDocNode);
    DOMSource xslSrc = new DOMSource(xslDocNode);
    DOMResult htmlResult = new DOMResult();
    Transformer transformer = tFact.newTransformer(xslSrc); // the exception occurs here!
    }

    Setting the proerty work now , I get no display, just a
    When I tried this servlet example
    apache-tomcat-5.5.17 using java version "1.5.0_07"
    javax.servlet.ServletException: Servlet execution
    threw an exception
    root cause
    javax.xml.transform.TransformerFactoryConfigurationErr
    or: Provider
    org.apache.xalan.processor.TransformerFactoryImpl not
    found
         javax.xml.transform.TransformerFactory.newInstance(Un
    known Source)
         XML2HTMLServlet.openFile(XML2HTMLServlet.java:31)
         XML2HTMLServlet.doGet(XML2HTMLServlet.java:19)
         javax.servlet.http.HttpServlet.service(HttpServlet.ja
    va:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.ja
    va:802)
    // XML2HTMLServlet.java
    //http://forum.java.sun.com/thread.jspa?forumID=34&thr
    eadID=260273
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    public class XML2HTMLServlet extends HttpServlet {
    System.setProperty("javax.xml.transform.TransformerFactory", "com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl");
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException {
    response.setContentType("text/html");
    PrintWriter writer = response.getWriter();
    try {
    penFile("file:/apps/tomcat/apache-tomcat-5.5.17/webapp
    s/xml/financials.xml",
    "file:/apps/tomcat/apache-tomcat-5.5.17/webapps/xml/fi
    nancials.xsl", writer);
    } catch (Exception e) {
    e.printStackTrace(writer);
    private void openFile(String xmlPath, String
    xslPath, PrintWriter writer)
    throws IOException,
    ParserConfigurationException, SAXException,
    TransformerConfigurationException,
    TransformerException {
    File xmlFile = new File(xmlPath);
    File xslFile = new File(xslPath);
    TransformerFactory tFact =
    TransformerFactory.newInstance();
    DocumentBuilderFactory dbFact =
    DocumentBuilderFactory.newInstance();
    DocumentBuilder builder =
    dbFact.newDocumentBuilder();
    Document xmlDoc =
    builder.parse(xmlFile);
    Document xslDoc =
    builder.parse(xslFile);
    Node xmlDocNode = (Node)xmlDoc;
    Node xslDocNode = (Node)xslDoc;
    DOMSource xmlSrc = new
    DOMSource(xmlDocNode);
    DOMSource xslSrc = new
    DOMSource(xslDocNode);
    DOMResult htmlResult = new
    DOMResult();
    Transformer transformer =
    tFact.newTransformer(xslSrc); // the exception
    occurs here!

  • Threading - Iterator.nextEntry(Unknown Source) - ValueIterator.next(Unknown

    Hi,
    I have a swing application, in which I am using two threads. One thread, is the "main", and the other, takes care of every update to the UI. My program works fine for a few seconds, but then I get a weird error which breaks my UI update thread. The error itself is:
    Exception in thread "Thread-2" java.util.ConcurrentModificationException
         at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
         at java.util.HashMap$ValueIterator.next(Unknown Source)
         at DrawFrame$allthread.run(DrawFrame.java:400)
         at java.lang.Thread.run(Unknown Source)
    Which leads me to believe that the two threads are messing each other up. Lets take a look at some code.
    This is the class which is created about 3 times a second, based upon when the user wants it to be.
    class shooting { // this class is inside of the "allthread" class which implements Runnable
              private Point p;
              private Dimension size;
              private int deltaY;
              private int wtr;
              private boolean destroy = false;
              Rectangle recs = new Rectangle(); // This may have a factor
              private shooting(Point p, Dimension size, Color color, int deltaY) {
                   this.wtr = 0 - size.height;
                   this.p = p;
                   this.size = size;
                   this.deltaY = deltaY;
                   recs.x = p.x;
                   recs.y = p.y;
                   recs.width = size.width;
                   recs.height = size.height;
                   rectangles.put(shotnumber, recs); // This may have a big factor as well (this goes into a hashmap)
                   shotnumber++;
              public void paint(Graphics g) { // this part has a factor I believe
                   if (g.getColor() != Color.red){
                   g.setColor(Color.red);
                   g.fillRect(recs.x, recs.y, recs.width, recs.height);
              So how I display this class on the UI, is like this:
              public void painters(Graphics g){
              for (allthread.shooting shot : shots) {
                   shot.paint(g);
              }The painters method is called from my "public void paintComponent(Graphics g) {}", which I think updates when the computer thinks it needs to.
    So I'm not exactly sure why its breaking, perhaps someone can tell from the error which I have listed at the top. I think one thread is trying to do something, which another thread is trying to do something at the same time to the same part of the code. That might not be it, but thats the best I have come up with in a week of confused droning about over this crazy madness.
    Thanks for reading,
    Nate
    P.S. Thanks for the help, all questions will be answered in under 3 minutes - I'm right here watching this post until it is answered. Please ask any questions that you might have in order for me to provide you with information that I may have left out.

    [Check this out.|http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collections.html#synchronizedMap(java.util.Map)]
    I don't know if you'd consider throwing an exception as breaking... but check this out too.

  • Exception with (Unknown Source), possible to specify source file?

    Hi, I'm getting exceptions of the kind
    java.lang.NullPointerException
            at blockworld.EnvView.paintComponent(Unknown Source)The class EnvView is loaded from a .jar at runtime (it's a plugin-like construction). Is it possible to tell the VM where my source files are so that it shows at what file/line nr this exception occurred? Or do I need to compile the .jar in a special way to include such information?
    Thanks!

    I have the same question. However, I think the problem is not related to the IDE. I am having the same output with a webapp.
    Tomcat console does not show me the source line number of the exception. Is the re any way to link the WAR file to the actual source code?
    2006-06-19 17:40:11,640 [http8080-Processor25] ERROR mx.org.ifai.persona.proxy.BusinessProxy - updateTransmisionVigencia: Exception!!
    java.lang.NullPointerException
         at mx.org.ifai.persona.helper.transmisiones.HelperTransmision.sendEmailToDestinatario(Unknown Source)
         at mx.org.ifai.persona.proxy.BusinessProxy.updateTransmisionVigencia(Unknown Source)
         at mx.org.ifai.persona.action.transmisiones.DispatchTransmisionMgr.terminarPorSistema(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Any help will be appreciated.

  • Jndi unknown source

    I am trying jms example but i have problen while in lookup ,i could not find the resource running in the sun app server.
    the below is the code
    import javax.jms.*;
    import javax.naming.*;
    import java.util.*;
    public class SimpleTopicPublisher {
    * Main method.
    * @param args the topic used by the example and,
    * optionally, the number of messages to send
    public static void main(String[] args) {
    String topicName = null;
    Context jndiContext = null;
    TopicConnectionFactory topicConnectionFactory = null;
    TopicConnection topicConnection = null;
    TopicSession topicSession = null;
    Topic topic = null;
    TopicPublisher topicPublisher = null;
    TextMessage message = null;
    final int NUM_MSGS;
    if ( (args.length < 1) || (args.length > 2) ) {
    System.out.println("Usage: java " +
    "SimpleTopicPublisher <topic-name> " +
    "[<number-of-messages>]");
    System.exit(1);
    topicName = new String(args[0]);
    System.out.println("Topic name is " + topicName);
    if (args.length == 2){
    NUM_MSGS = (new Integer(args[1])).intValue();
    } else {
    NUM_MSGS = 1;
    * Create a JNDI API InitialContext object if none exists
    * yet.
    try {
                   // String url = "mq://INBANN0L3CT171.ap01.lucent.com:7676/";
    // Properties p = new Properties();
              //p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.appserv.naming.S1ASCtxFactory");
    // p.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.enterprise.naming.SerialInitContextFactory");
    //p.put(Context.PROVIDER_URL, url);
    //ctx = new InitialContext(p);
    jndiContext = new InitialContext();
    } catch (NamingException e) {
    System.out.println("Could not create JNDI API " +
    "context: " + e.toString());
    e.printStackTrace();
    System.exit(1);
    * Look up connection factory and topic. If either does
    * not exist, exit.
    try {
    topicConnectionFactory = (TopicConnectionFactory)
    jndiContext.lookup("jms/myjms");
    topic = (Topic) jndiContext.lookup(topicName);
    } catch (NamingException e) {
    System.out.println("JNDI API lookup failed: " +
    e.toString());
    e.printStackTrace();
    System.exit(1);
    * Create connection.
    * Create session from connection; false means session is
    * not transacted.
    * Create publisher and text message.
    * Send messages, varying text slightly.
    * Finally, close connection.
    try {
    topicConnection =
    topicConnectionFactory.createTopicConnection();
    topicSession =
    topicConnection.createTopicSession(false,
    Session.AUTO_ACKNOWLEDGE);
    topicPublisher = topicSession.createPublisher(topic);
    message = topicSession.createTextMessage();
    for (int i = 0; i < NUM_MSGS; i++) {
    message.setText("This is message " + (i + 1));
    System.out.println("Publishing message: " +
    message.getText());
    topicPublisher.publish(message);
    } catch (JMSException e) {
    System.out.println("Exception occurred: " +
    e.toString());
    } finally {
    if (topicConnection != null) {
    try {
    topicConnection.close();
    } catch (JMSException e) {}
    and below is the error while running
    D:\>java SimpleTopicPublisher mytopic 3
    Topic name is mytopic
    Apr 23, 2012 5:03:48 PM com.sun.enterprise.v3.server.CommonClassLoaderServiceIm
    l findDerbyClient
    INFO: Cannot find javadb client jar file, derby jdbc driver will not be availab
    e by default.
    JNDI API lookup failed: javax.naming.NamingException: Lookup failed for 'java:c
    mp/env/jms/myjms' in SerialContext[myEnv={java.naming.factory.initial=com.sun.e
    terprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com
    sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presenta
    ion.rmi.JNDIStateFactoryImpl} [Root exception is javax.naming.NamingException:
    nvocation exception: Got null ComponentInvocation ]
    javax.naming.NamingException: Lookup failed for 'java:comp/env/jms/myjms' in Se
    ialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.Se
    ialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming,
    ava.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactor
    Impl} [Root exception is javax.naming.NamingException: Invocation exception: Go
    null ComponentInvocation ]
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.ja
    a:518)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.ja
    a:455)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at SimpleTopicPublisher.main(SimpleTopicPublisher.java:112)
    Caused by: javax.naming.NamingException: Invocation exception: Got null Compone
    tInvocation
    at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.getCompone
    tId(GlassfishNamingManagerImpl.java:873)
    at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(Gla
    sfishNamingManagerImpl.java:742)
    at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.
    ava:169)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.ja
    a:498)
    ... 3 more
    D:\>javac SimpleTopicPublisher.java
    D:\>java SimpleTopicPublisher mytopic 3
    Topic name is mytopic
    Apr 23, 2012 5:09:28 PM com.sun.enterprise.v3.server.CommonClassLoaderServiceIm
    l findDerbyClient
    INFO: Cannot find javadb client jar file, derby jdbc driver will not be availab
    e by default.
    java.lang.ClassCastException
    at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(Portable
    emoteObject.java:262)
    at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
    at com.sun.enterprise.naming.impl.SerialContext$ProviderCacheKey.getNam
    Service(SerialContext.java:1244)
    at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(Seria
    Context.java:410)
    at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialConte
    t.java:346)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.ja
    a:504)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.ja
    a:455)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at SimpleTopicPublisher.main(SimpleTopicPublisher.java:112)
    Caused by: java.lang.ClassCastException: Object is not of remote type com.sun.e
    terprise.naming.impl.SerialContextProvider
    at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(Portable
    emoteObject.java:254)
    ... 8 more
    JNDI API lookup failed: javax.naming.NamingException: Lookup failed for 'jms/my
    ms' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.nami
    g.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterpris
    .naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIS
    ateFactoryImpl} [Root exception is javax.naming.NamingException: Unable to acqu
    re SerialContextProvider for SerialContext[myEnv={java.naming.factory.initial=c
    m.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.
    kgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.
    resentation.rmi.JNDIStateFactoryImpl} [Root exception is java.lang.ClassCastExc
    ption]]
    javax.naming.NamingException: Lookup failed for 'jms/myjms' in SerialContext[my
    nv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContex
    Factory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.fa
    tory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Root e
    ception is javax.naming.NamingException: Unable to acquire SerialContextProvide
    for SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming
    impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.
    aming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDISta
    eFactoryImpl} [Root exception is java.lang.ClassCastException]]
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.ja
    a:518)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.ja
    a:455)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at SimpleTopicPublisher.main(SimpleTopicPublisher.java:112)
    Caused by: javax.naming.NamingException: Unable to acquire SerialContextProvide
    for SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming
    impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.
    aming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDISta
    eFactoryImpl} [Root exception is java.lang.ClassCastException]
    at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialConte
    t.java:351)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.ja
    a:504)
    ... 3 more
    Caused by: java.lang.ClassCastException
    at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(Portable
    emoteObject.java:262)
    at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
    at com.sun.enterprise.naming.impl.SerialContext$ProviderCacheKey.getNam
    Service(SerialContext.java:1244)
    at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(Seria
    Context.java:410)
    at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialConte
    t.java:346)
    ... 4 more
    Caused by: java.lang.ClassCastException: Object is not of remote type com.sun.e
    terprise.naming.impl.SerialContextProvider
    at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(Portable
    emoteObject.java:254)
    ... 8 more
    plese help me in resolving...

    I am trying jms example but i have problen while in lookup ,i could not find the resource running in the sun app server.
    the below is the code
    import javax.jms.*;
    import javax.naming.*;
    import java.util.*;
    public class SimpleTopicPublisher {
    * Main method.
    * @param args the topic used by the example and,
    * optionally, the number of messages to send
    public static void main(String[] args) {
    String topicName = null;
    Context jndiContext = null;
    TopicConnectionFactory topicConnectionFactory = null;
    TopicConnection topicConnection = null;
    TopicSession topicSession = null;
    Topic topic = null;
    TopicPublisher topicPublisher = null;
    TextMessage message = null;
    final int NUM_MSGS;
    if ( (args.length < 1) || (args.length > 2) ) {
    System.out.println("Usage: java " +
    "SimpleTopicPublisher <topic-name> " +
    "[<number-of-messages>]");
    System.exit(1);
    topicName = new String(args[0]);
    System.out.println("Topic name is " + topicName);
    if (args.length == 2){
    NUM_MSGS = (new Integer(args[1])).intValue();
    } else {
    NUM_MSGS = 1;
    * Create a JNDI API InitialContext object if none exists
    * yet.
    try {
                   // String url = "mq://INBANN0L3CT171.ap01.lucent.com:7676/";
    // Properties p = new Properties();
              //p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.appserv.naming.S1ASCtxFactory");
    // p.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.enterprise.naming.SerialInitContextFactory");
    //p.put(Context.PROVIDER_URL, url);
    //ctx = new InitialContext(p);
    jndiContext = new InitialContext();
    } catch (NamingException e) {
    System.out.println("Could not create JNDI API " +
    "context: " + e.toString());
    e.printStackTrace();
    System.exit(1);
    * Look up connection factory and topic. If either does
    * not exist, exit.
    try {
    topicConnectionFactory = (TopicConnectionFactory)
    jndiContext.lookup("jms/myjms");
    topic = (Topic) jndiContext.lookup(topicName);
    } catch (NamingException e) {
    System.out.println("JNDI API lookup failed: " +
    e.toString());
    e.printStackTrace();
    System.exit(1);
    * Create connection.
    * Create session from connection; false means session is
    * not transacted.
    * Create publisher and text message.
    * Send messages, varying text slightly.
    * Finally, close connection.
    try {
    topicConnection =
    topicConnectionFactory.createTopicConnection();
    topicSession =
    topicConnection.createTopicSession(false,
    Session.AUTO_ACKNOWLEDGE);
    topicPublisher = topicSession.createPublisher(topic);
    message = topicSession.createTextMessage();
    for (int i = 0; i < NUM_MSGS; i++) {
    message.setText("This is message " + (i + 1));
    System.out.println("Publishing message: " +
    message.getText());
    topicPublisher.publish(message);
    } catch (JMSException e) {
    System.out.println("Exception occurred: " +
    e.toString());
    } finally {
    if (topicConnection != null) {
    try {
    topicConnection.close();
    } catch (JMSException e) {}
    and below is the error while running
    D:\>java SimpleTopicPublisher mytopic 3
    Topic name is mytopic
    Apr 23, 2012 5:03:48 PM com.sun.enterprise.v3.server.CommonClassLoaderServiceIm
    l findDerbyClient
    INFO: Cannot find javadb client jar file, derby jdbc driver will not be availab
    e by default.
    JNDI API lookup failed: javax.naming.NamingException: Lookup failed for 'java:c
    mp/env/jms/myjms' in SerialContext[myEnv={java.naming.factory.initial=com.sun.e
    terprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com
    sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presenta
    ion.rmi.JNDIStateFactoryImpl} [Root exception is javax.naming.NamingException:
    nvocation exception: Got null ComponentInvocation ]
    javax.naming.NamingException: Lookup failed for 'java:comp/env/jms/myjms' in Se
    ialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.Se
    ialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming,
    ava.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactor
    Impl} [Root exception is javax.naming.NamingException: Invocation exception: Go
    null ComponentInvocation ]
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.ja
    a:518)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.ja
    a:455)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at SimpleTopicPublisher.main(SimpleTopicPublisher.java:112)
    Caused by: javax.naming.NamingException: Invocation exception: Got null Compone
    tInvocation
    at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.getCompone
    tId(GlassfishNamingManagerImpl.java:873)
    at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(Gla
    sfishNamingManagerImpl.java:742)
    at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.
    ava:169)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.ja
    a:498)
    ... 3 more
    D:\>javac SimpleTopicPublisher.java
    D:\>java SimpleTopicPublisher mytopic 3
    Topic name is mytopic
    Apr 23, 2012 5:09:28 PM com.sun.enterprise.v3.server.CommonClassLoaderServiceIm
    l findDerbyClient
    INFO: Cannot find javadb client jar file, derby jdbc driver will not be availab
    e by default.
    java.lang.ClassCastException
    at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(Portable
    emoteObject.java:262)
    at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
    at com.sun.enterprise.naming.impl.SerialContext$ProviderCacheKey.getNam
    Service(SerialContext.java:1244)
    at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(Seria
    Context.java:410)
    at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialConte
    t.java:346)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.ja
    a:504)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.ja
    a:455)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at SimpleTopicPublisher.main(SimpleTopicPublisher.java:112)
    Caused by: java.lang.ClassCastException: Object is not of remote type com.sun.e
    terprise.naming.impl.SerialContextProvider
    at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(Portable
    emoteObject.java:254)
    ... 8 more
    JNDI API lookup failed: javax.naming.NamingException: Lookup failed for 'jms/my
    ms' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.nami
    g.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterpris
    .naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIS
    ateFactoryImpl} [Root exception is javax.naming.NamingException: Unable to acqu
    re SerialContextProvider for SerialContext[myEnv={java.naming.factory.initial=c
    m.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.
    kgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.
    resentation.rmi.JNDIStateFactoryImpl} [Root exception is java.lang.ClassCastExc
    ption]]
    javax.naming.NamingException: Lookup failed for 'jms/myjms' in SerialContext[my
    nv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContex
    Factory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.fa
    tory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Root e
    ception is javax.naming.NamingException: Unable to acquire SerialContextProvide
    for SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming
    impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.
    aming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDISta
    eFactoryImpl} [Root exception is java.lang.ClassCastException]]
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.ja
    a:518)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.ja
    a:455)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at SimpleTopicPublisher.main(SimpleTopicPublisher.java:112)
    Caused by: javax.naming.NamingException: Unable to acquire SerialContextProvide
    for SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming
    impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.
    aming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDISta
    eFactoryImpl} [Root exception is java.lang.ClassCastException]
    at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialConte
    t.java:351)
    at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.ja
    a:504)
    ... 3 more
    Caused by: java.lang.ClassCastException
    at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(Portable
    emoteObject.java:262)
    at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
    at com.sun.enterprise.naming.impl.SerialContext$ProviderCacheKey.getNam
    Service(SerialContext.java:1244)
    at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(Seria
    Context.java:410)
    at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialConte
    t.java:346)
    ... 4 more
    Caused by: java.lang.ClassCastException: Object is not of remote type com.sun.e
    terprise.naming.impl.SerialContextProvider
    at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(Portable
    emoteObject.java:254)
    ... 8 more
    plese help me in resolving...

  • ReportPageViewer "Unknown Source" error

    I have a problem with JRC in WebSphere Portal 6.1.
    It does not work and returns the error below.
    Crystal Reports 11.8
    Java 5.0
    Java Server Faces 1.1
    regards
    E.
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R java.lang.NullPointerException
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.crystaldecisions.report.web.jsf.e.<init>(Unknown Source)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.crystaldecisions.report.web.jsf.UIReportPageViewer.if(Unknown Source)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.crystaldecisions.report.web.jsf.ViewerHtmlRenderer.encodeEnd(Unknown Source)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeEnd(DefaultAjaxRenderer.java:83)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:754)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:630)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:553)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm._jsp._test4View._jspx_meth_bocrv_reportPageViewer_0(_test4View.java:212)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm._jsp._test4View._jspx_meth_h_form_0(_test4View.java:233)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm._jsp._test4View._jspx_meth_hx_scriptCollector_0(_test4View.java:256)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm._jsp._test4View._jspx_meth_f_view_0(_test4View.java:283)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm._jsp._test4View._jspService(_test4View.java:152)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1096)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1037)
    [5/27/10 14:07:01:756 EEST] 00000047 SystemErr     R      at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)

    I really need this answer and I don't have another place to ask. I explain much more what I did herebelow.
    I created a portlet project and created a faces portlet. I created "report" folder under WEB-INF and put a report in it. The report can be previewed successfully. Then I  added Report Page Viewer to portlet. It asked file path of the report. I entered /test8/WebContent/WEB-INF/report/IPRPSD001.rpt. Then jsf page looks like below.
    I see that "reportWrapper" managed bean was created in faces_config.xml and points the report I selected.
    When I run this project following errors come:
    [5/28/10 9:53:42:664 EEST] 0000009f SystemErr     R java.lang.NullPointerException
    [5/28/10 9:53:42:664 EEST] 0000009f SystemErr     R      at com.crystaldecisions.report.web.jsf.e.<init>(Unknown Source)
    What's wrong with this code?
    Regards
    E.
    <
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%-- jsf:pagecode language="java" location="/src/pagecode/Test8View.java" %><% /jsf:pagecode --%><%@taglib
         uri="http://java.sun.com/jsf/core" prefix="f"%><%@taglib
         uri="http://java.sun.com/portlet_2_0" prefix="portlet"%><%@taglib
         uri="http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portlet-client-model"
         prefix="portlet-client-model"%><%@taglib
         uri="http://www.businessobjects.com/jsf/crystalreportsviewers"
         prefix="bocrv"%><%@taglib uri="http://www.ibm.com/jsf/html_extended"
         prefix="hx"%><%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%><%@page
         language="java" contentType="text/html" pageEncoding="ISO-8859-1"
         session="false"%><portlet-client-model:init>
         <portlet-client-model:require module="ibm.portal.xml.*" />
         <portlet-client-model:require module="ibm.portal.portlet.*" />
    </portlet-client-model:init>
    <portlet:defineObjects />
    <link rel="stylesheet" type="text/css" title="Style"
         href='<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/theme/stylesheet.css") %>'>
    <f:view><hx:scriptCollector id="scriptCollector1">
              <h:form styleClass="form" id="form1">
                   <p>Place content here.<bocrv:reportPageViewer
                        viewerName="CrystalViewer"
                        reportSource="#{reportWrapper.reportSource}"></bocrv:reportPageViewer></p>
              </h:form>
         </hx:scriptCollector>
    </f:view>
    >

  • Unknown Source

    I'm getting the following error at windowClosed event of a JDialog in an Applet. JDialog's setDefaultCloseOperation has been set to WindowConstants.DISPOSE_ON_CLOSE.
    java.lang.NullPointerException
         at com.abc.adv.scheduler.applet.YearlyCalendarPanel.access$000(Unknown Source)
         at com.abc.adv.scheduler.applet.YearlyCalendarPanel$YearlyCalendarWindowListener.windowClosed(Unknown Source)
         at java.awt.Window.processWindowEvent(Unknown Source)
         at javax.swing.JDialog.processWindowEvent(Unknown Source)
         at java.awt.Window.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    As far as I see, this is not affecting any functionality I have put in....but why is this 'Source Unknown' error?
    Thanks in advance,

    can u pls post the code here
    might be have u registered window listener
    and there in windowClosing event
    u r processing or manipulating the reference of the window

Maybe you are looking for

  • Javascript with PL/Sql

    Hi everyone, I want to know if it's a good idea to use javascript with PL/sql using HTML-DB (PL) (enabled and disabled button) ? Thank you very much. Bye. Eric

  • IPod sync problem - wrong library but I only have one

    trying to sync with either iPod touch or iPod classic. I'm told that both are synced with a "different" library and program wants to delete everything on iPod and replace with this library. but I have done a search and I only have one library on my c

  • Severe xml inconsistency

    HI gentlemen, When trying to install basicDemo, I got in a mesh. - Installing xdbUtility it does not create resource /sys/databaseSummary.xml because it already exists (from a first trial). - On trying to delete it from Enterprise Manager I receive O

  • Can I create my own greeting card in Photoshop and upload to iPhoto to print?

    I'm not completly satisfied with any of the iPhoto templates for greeting cards.  I've created my own card in Photoshop.  Is there a way to upload it to Apple through iPhoto to have them print for me? Kyle

  • Music Store Bough SOngs skip half way through

    This is definately strange. Its happened to all my songs ever since the last iTunes V. 6 came out and no update has fixed it. Any1 know a possible solution to fix it?