RMI Stubs

Hello
i read that ,in JDK 1.5 you don't have to generate stubs manually for server but it is generated automatically but when i tried this code , it throws this exception ,why???!!!!
public static void main(String[] args) {
          try {
               System.out.println("Constructing server implementations...");
               LoginImpl Login = new LoginImpl();
               System.out.println("Binding server implementations to registry...");
               Context namingContext = new InitialContext();
               namingContext.bind("rmi:Login", Login);
               System.out.println("Waiting for invocations from clients...");
          } catch (Exception e) {
               e.printStackTrace();
     }Exception
javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
     java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
     java.lang.ClassNotFoundException: dbHandling.Login]
     at com.sun.jndi.rmi.registry.RegistryContext.bind(Unknown Source)
     at com.sun.jndi.toolkit.url.GenericURLContext.bind(Unknown Source)
     at javax.naming.InitialContext.bind(Unknown Source)
     at dbHandling.Main.main(Main.java:16)
Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
     java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
     java.lang.ClassNotFoundException: dbHandling.Login
     at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396)
     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
     at sun.rmi.transport.Transport$1.run(Transport.java:159)
     at java.security.AccessController.doPrivileged(Native Method)
     at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
     at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
     at java.lang.Thread.run(Thread.java:619)
     at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
     at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
     at sun.rmi.server.UnicastRef.invoke(Unknown Source)
     at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
     ... 4 more
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
     java.lang.ClassNotFoundException: dbHandling.Login
     at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
     at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
     at sun.rmi.transport.Transport$1.run(Transport.java:159)
     at java.security.AccessController.doPrivileged(Native Method)
     at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
     at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
     at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: dbHandling.Login
     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:247)
     at sun.rmi.server.LoaderHandler.loadProxyInterfaces(LoaderHandler.java:711)
     at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:655)
     at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:592)
     at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
     at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
     at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
     at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1531)
     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
     ... 12 more
thanks in advanced

Presumably dbHandling.Login is your remote
interface?
The Registry and the client both need access to that
via their CLASSPATHs or the codebase mechanism.yes dbHandling.Login is my interface and client can access it but i don't know how to make registry can access it
thanks

Similar Messages

  • Help regarding generation of RMI stubs  ..............

    Hi all,
    i want to generate RMI stubs. But by default, the application server generates as RMI Over iiop stubs. I cant use this stubs for some reason.
    So, i want to know that how to generate RMI (JRMP) for an enterprise application using AS 8.1?
    Is there any descriptors to specify that?
    Thank you in advance,
    MDB

    Hi all,
    i want to generate RMI stubs. But by default, the application server generates as RMI Over iiop stubs. I cant use this stubs for some reason.
    So, i want to know that how to generate RMI (JRMP) for an enterprise application using AS 8.1?
    Is there any descriptors to specify that?
    Thank you in advance,
    MDB

  • How to use RMI Stub class in programming?

    Hi all,
    I'm new on RMI.
    Is there anyone can explain to me how to use RMI Stub class which is generated by invoking rmic command?
    For my testing, I can only invoke rmi object nethod via its remote interface. Then what is stub used for when we are coding?
    I do appreciate anyone's help.
    Thanks very much,
    Xianyi.Ye

    When the remote object binds itself to the registry, what is actually bound is the stub.
    So when the client does a registry lookup, what it gets is the stub. However from the client's point of view it is just some mystery object that implements the remote interface.
    So you never have to use it directly, it is all automatic.

  • Urgent: please help - Object Hash Code of RMI stubs in a cluster

    Hello all,
    I'm trying to find out for a week now if members of a cluster can get out of synch
    regarding "Object Hash Code" of RMI stubs in the JNDI.
    After binding an RMI object to one server (no rmic performed since the object
    is in the classpath of both servers and the service is pinned), the JNDI mapping
    looked identical on both servers.
    However, while one server went down for a few hours, the other server has changed
    the "Object Hash Code" to a new one (the binding name stayed constant). When the
    server went up again it tried to lookup the object under the same binding, then
    found it but failed to execute remote methods on it. An error message says that
    the object was garbage collected:
    java.rmi.NoSuchObjectException: Unable to dispatch request to Remote object with
    id: '347'. The object has been garbage collected. at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:766)
    at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:738) at weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.java:207)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:777) at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:508)
    at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:664) at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    Why isn't the new JNDI mapping replicated to the new booting server? Should I
    use specific rmic flags? How can I maintain the JNDI trees identical on all clustered
    servers?
    I'm using two managed WLS 7.02 servers running on win2000 servers.
    Dani

    Hi Andy,
    Thank you for responding.
    The binding code looks like that:
    m_ctx = new InitialContext();
    int index = getNextAvailableRepositoryJNDIIndex();
    m_ctx.bind(
    NODE_PREFIX+index,
    this
    where this is the Remote implementation.
    How will I make the object hash code constant or have all views remain constant
    when the GC changes its reference?
    Dani
    Andy Piper <[email protected]> wrote:
    "Daniel Gordon" <[email protected]> writes:
    I'm trying to find out for a week now if members of a cluster can getout of synch
    regarding "Object Hash Code" of RMI stubs in the JNDI.The hash code can probably change since the stub represents an
    aggregate view of the cluster. But this may be a red-herring. What
    does your code look like that binds the rmi object? It may be that DGC
    is biting you.
    andy

  • RMI stub compilation in Sun AS 8.1 failed with Java 5

    I made some tests running the Sun AS 8.1 on Java 5, but I got exceptions when trying to generate static RMI stubs for an application which was compiled on Java 5. I've read from the forums that Java 5 is not officially allowed to use, although most things seem to working well.
    So I won't complain about the problems I accountered but I'd like to know if there are already some announcements when Java 5 can officially be used with Sun AS?

    Slightly different issue, but you shouldn't need to statically generate RMI stubs when using AS 8.x or later. By default the appserver uses dynamic RMI-IIOP stubs that are generated on-the-fly. As long as you are invoking the Remote EJBs from within a web/ejb component in the appserver, from within an Application Cliient container, or from a stand-alone client that uses the appserver's naming service (meaning the use of new InitialContext() with appserv-rt.jar in the classpath) you shouldn't need any static RMI-IIOP stubs.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Making calls to RMI stubs in VB(A)...

    Hi everyone,
    I have a requirement to make calls to RMI classes from VBA in Microsoft Excel. I thought that I had found the solution when I came across the Microsoft SDK for Java (version 4.0, being the latest). I got code samples and it all seemed fairly easy.
    However, I have just discovered that when I go to the Microsoft page to download the SDK, it has been discontinued.
    So, what are my alternatives? I am willing to buy technology to achieve my goals, so third-party solutions that cost are fine.
    Basically, I guess my question is this: "How do I make calls to RMI stubs within VBA in Microsoft Excel?"
    Any help would be greatly appreciated.
    Thanks!
    Ben

    I remember reading about a JavaBean - ActiveX bridge:
    http://java.sun.com/products/javabeans/software/
    haven't used it, but it would seem to be the best bet. You'd have to have the Java plugin installed on the target workstation, and write some Java bridging code, but it shouldn't be too tough once you get the ActiveX -> Java Bean stuff working.
    Worst case, you could create a DLL that makes JNI calls to call your RMI stubs. Depending on the complexity of the stub calls you need to make, this might not be that bad of a solution.
    - K

  • RMI, stubs and skeleton and EJB

    HI,
    IN RMI we copy stub on client machine and skeleton on Server machine.
    EJBs are said to be extension of RMI.
    In EJB when we deploy EJB on the app Server server generates stubs and skeleton.
    But on the client machine we don't copy any stub.
    So from where these stubs (home stub and remote stub ) comes on client machine because we only depoly the EJB at server and then use that from client
    Can anybody explain this ?
    Thanks,
    Ankur Mittal

    Hi,
    A number of these answers are correct. The thing to keep in mind is that the entire issue of RMI stubs and the mechanism by which those stubs are made available to the runtime code(whether that code is running in a J2EE server or a client) is vendor-specific. One important thing to note is that these generated artifacts are not present in a portable J2EE archive (.ear, ejb-jar, .war, etc.)
    If needed, they are generated at some point by the J2EE implementation. Some vendors expose tools that generate these artifacts. The original J2EE 1.4 SDK beta release had such a tool called j2eec.
    Alternatively, many vendors generate them as part of the deployment stage itself. In that case, it's typical for the deployment process to produce some output file that contains the generated artifacts. This is the approach used in the current J2EE 1.4 SDK. The output file is usually referred to as a client.jar. The stubs are automatically available to any code running within the server, but client applications that need them must somehow make the client.jar available to the client JVM. For Application Clients, this is done by specifying the client.jar as one of the input arguments to the runclient command. For stand-alone clients, the client.jar is simply added to the user-classpath when starting the JVM.
    Some vendors also support automatic stub-downloading. This has the advantage that the stubs don't have to be available to the client classpath when the client starts. The downside is that using automatic stub downloading requires that a security manager be installed in the client JVM. That typically isn't an issue for the Application Client container, but many stand-alone clients are not coded to instantiate a security manager.
    Yet another approach is to dynamically generate the stubs within the client code itself. This is one of the best options since it completely removes the notion of stubs from the developer's view. It's too bad this wasn't done from the beginning, since stub configuration is one of the most common errors encountered by EJB developers. In addition, the static generation of such artifacts is often a deployment-time bottleneck. Finally, note that the EJB Remote view is only one of many J2EE technologies that potentially require such generated artifacts. E.g., web services implementations typically rely on some of the same mechanisms to marshall and unmarshall requests.
    --ken
    Kenneth Saks
    J2EE SDK Engineering
    SUN Microsystems

  • Looking up RMI stub class

    Hi there, I have questions on RMI stub classes. Beside putting a stub class in web server, is there any way I can do for client to lookup the stub class? Do I need to sacrifice dynamic class loading in order to block all http request?
    Thanks,
    Jax

    Since the stub class needed to be downloaded via http, how if I don't want to have a webserver on the RMI server machine? Is packing the stub class together with the client package the only solution?

  • 10g RMI stub compiler?

    Are there any plans for the 10g release to include some kind of integrated RMI stub generator (rmic)?
    I'm currently using an ant target which works fine but it would be nice (more convenient!) if the stubs could be generated as part of a std build in the IDE.

    Any comments from the JDev team?

  • RMI stub compiler

    Any plan to add support for automatic rmi stub generation in Jdev ?
    Thanks. Ale.

    Any comments from the JDev team?

  • RMI Stub Error

    solved it!
    wheeewwww i dont know why but im sure i've used the option of forward slash before.
    continuation of the problems below.....
    hi!
    i've been trying to debug this auto downloading of Stub or classes, but i cant see what's wrong with the code that it cant see the stub... here's the code
    import java.rmi.Naming;
    import java.rmi.RMISecurityManager;
    import classServer.ClassFileServer;
    import java.io.IOException;
    public class ProcessServer{
           private static ClassFileServer cfs = null;
           public static void main(String[] args){
                  setOptions();
                  //startHTTP();
                  if (System.getSecurityManager() == null) {
                      System.setSecurityManager(new RMISecurityManager());
                  try{
                      System.out.println("Starting server...");
                      Process p = new ProcessImpl("tuaman");
                      //String host = "rmi://localhost/TProcess";                 
                      //Naming.rebind(host, p);
                      String url = "TProcess";
                      Naming.rebind(url, p);
                      System.out.println("RMI binded...");
                  }catch(Exception e) {System.out.println("Error creating server..." + e);}
           private static void setOptions(){             
                   System.setProperty("java.rmi.server.codebase", "file:/C:\\Restua\\temp\\rmi\\/");
                     System.setProperty("java.security.policy", "java.policy");
           private static void startHTTP(){
                   String loc = "C:\\Restua\\temp\\rmi";
                     try {
                        cfs = new ClassFileServer(2001, loc);
                   }catch(IOException io){ System.out.println("err cfs : " + io);}
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    import java.net.MalformedURLException;
    import java.rmi.NotBoundException;
    import java.rmi.RMISecurityManager;
    public class ProcessClient {
        public static void main(String[] args) {
            setOptions();
            if (System.getSecurityManager() == null) {
                System.setSecurityManager(new RMISecurityManager());
            try {
                //String url = "rmi://localhost/TProcess";
                String url = "TProcess";
                Process p = (Process)
                               Naming.lookup(url);
                System.out.println( p.getDescription() );
           catch(Exception e){
             System.out.println("Exception all.");
             public static void setOptions(){
              System.setProperty("java.rmi.server.codebase", "file:/C:\\Restua\\temp\\rmi\\/");
              System.setProperty("java.security.policy", "java.policy");
    } thanks again =)
    --my previous post.....
    hi!
    I'm tying to run an RMI, on the tutorial it says run the service, with the classpath, here's my setup
    C:\Restua\temp\rmi>dir
    Volume in drive C has no label.
    Volume Serial Number is D805-23B8
    Directory of C:\Restua\temp\rmi
    07/31/2006  11:38 AM    <DIR>          .
    07/31/2006  11:38 AM    <DIR>          ..
    07/31/2006  11:07 AM               219 Process.class
    07/31/2006  11:07 AM               162 Process.java
    07/31/2006  11:22 AM             1,099 ProcessClient.class
    07/31/2006  11:21 AM             1,344 ProcessClient.java
    07/31/2006  11:13 AM               608 ProcessImpl.class
    07/31/2006  11:12 AM               460 ProcessImpl.java
    07/31/2006  11:27 AM             1,649 ProcessImpl_Stub.class
    07/31/2006  11:37 AM               913 ProcessServer.class
    07/31/2006  11:37 AM               415 ProcessServer.java
                   9 File(s)          6,869 bytes
                   2 Dir(s)  16,828,911,616 bytes free
    C:\Restua\temp\rmi>here's the content of the class...
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface Process extends Remote{
           String getDescription() throws RemoteException;
    import java.rmi.server.UnicastRemoteObject;
    import java.rmi.RemoteException;
    public class ProcessImpl extends UnicastRemoteObject
                             implements Process{
           private String desc;
           public ProcessImpl(String d) throws RemoteException{
                  super();
                  desc = d;
           public String getDescription() throws RemoteException{
                  return "I am " + desc;
    import java.rmi.Naming;
    public class ProcessServer{
           public static void main(String[] args){
                  try{
                      System.out.println("Starting server...");
                      Process p = new ProcessImpl("tuaman");
                      Naming.rebind("rmi://localhost/1099/TProcess", p);
                  }catch(Exception e) {System.out.println("Error creating server..." + e);}
    }i opened a command windom ran rmiregistry on it, then on the other shell i ran this...
    C:\Restua\temp\rmi>java -classpath . ProcessServer
    Starting server...
    Error creating server...java.rmi.ServerException: RemoteException occurred in se
    rver thread; nested exception is:
            java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
    tion is:
            java.lang.ClassNotFoundException: ProcessImpl_Stubeven with a java ProcessServer that error occurs, what could be wrong? Why cant it locate the Stub? Thank you so much again Sir/Mam =)
    updates....
    it works fine now =) made a security or policy file, then added a security manager =)
    import java.rmi.Naming;
    import java.rmi.RMISecurityManager;
    public class ProcessServer{
           public static void main(String[] args){
                  if (System.getSecurityManager() == null) {
                      System.setSecurityManager(new RMISecurityManager());
                  try{
                      System.out.println("Starting server...");
                      Process p = new ProcessImpl("tuaman");
                      String host = "rmi://localhost/TProcess";
                      Naming.rebind(host, p);
                      System.out.println("RMI binded...");
                  }catch(Exception e) {System.out.println("Error creating server..." + e);}
    }Message was edited by:
    tuaman
    Message was edited by:
    tuaman
    Message was edited by:
    tuaman
    Message was edited by:
    tuaman

    You have a mixture of GNU java and Sun Java installed. Get rid of the former.

  • RMI stub class not found exception

    Configuration:
    OC4J Release 2
    Windows 2000
    * I get a stub class not found exception when the RMI server is instantiated.
    * I compiled the implementation class using rmic and created a jar file containing the stub and skeleton classes. The jar file has been included in both the WEB-INF/lib and the <OC4J-home>/j2ee/home/lib directories.
    * "TestServer" class (given below) is instantiated in a servlet init() method (the exception is thrown here).
    * Following are file listings (with code):
    Remote Interface ---> Test.java
    Implementation class ---> TestImpl.java
    TestServer.java
    Test obj = new TestImpl();
    Context ctx = new InitialContext();
    ctx.rebind("TestService", obj);
    Any help is appreciated.
    - Ranga

    Found the solution. Thanx.

  • RMI Stub classes packaging

    Hola,
    I'm trying to package rmi classes to two separated jars: for client and for server. I organized 2 packages:
    "com.my.routine" where I put only remote interfaces and serializable classes that will be used by client, and
    "com.my.routine.impl" where I put implementation of remote objects.
    Teoretically I need to export only "com.my.routine" package to be used in a client side. But the problem is that Stub classes also needed by client are generated in "com.my.routine.impl" that contains server logic and not intended to be a client package. My question is how to correctly extract classes only needed at client side? (without things like dynamic class loading)
    Anton

    Theoretically I need to export only "com.my.routine"
    package to be used in a client side. But the problem
    is that Stub classes also needed by client are
    generated in "com.my.routine.impl" that contains
    server logic and not intended to be a client package.Unfortunately the rmic compiler does not agree with your package layout. This is bad luck, but you still have to provide the stub class to the client. It's not too difficult to arrange that com.my.routine.impl.MyRoutine_Stub is packaged into your client JAR.

  • How do I import RMI stubs to Creator?

    I need to access remote methods that are already deployed on the j2ee application server. I can' figure out where I need to put the generated stub class so that the application I'm developing can use it. I've put a copy of the stub in every folder that seemed like it might work but no luck so far. Thanks.

    Sure. I hope this can help.
    Server -- Sun AppServer 8.0 / Java 1.5 / linux 2.4.26
    Creator -- Sun AppServer 8.0 (default) / Java1.4.2 (default) / WinXPHome
    [#|2004-09-14T16:21:39.905-0500|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=15;|WebModule[/simplemediacontroller]error unmarshalling return; nested exception is:
         java.lang.ClassNotFoundException: java.rmi.server.RemoteObjectInvocationHandler|#]
    [#|2004-09-14T16:21:39.905-0500|SEVERE|sun-appserver-pe8.0.0_01|com.sun.faces.lifecycle.InvokeApplicationPhase|_ThreadID=15;|#{Queue.pauseButton_action}: javax.faces.el.EvaluationException: java.lang.NullPointerException
    javax.faces.FacesException: #{Queue.pauseButton_action}: javax.faces.el.EvaluationException: java.lang.NullPointerException
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)
         at javax.faces.component.UICommand.broadcast(UICommand.java:312)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
         ... 53 more
    Caused by: java.lang.NullPointerException
         at simplemediacontroller.Queue.pauseButton_action(Queue.java:158)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         ... 54 more
    |#]
    [#|2004-09-14T16:21:39.915-0500|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=15;|StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
    javax.faces.FacesException: #{Queue.pauseButton_action}: javax.faces.el.EvaluationException: java.lang.NullPointerException
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)
         at javax.faces.component.UICommand.broadcast(UICommand.java:312)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
         ... 53 more
    Caused by: java.lang.NullPointerException
         at simplemediacontroller.Queue.pauseButton_action(Queue.java:158)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         ... 54 more

  • RMI Stubs behind routers

    I have a stub created via rmic and binded to the registry. Now, when I try to fetch the registry via LocateRegistry.getRegistry(host, port) it works fine. However, after Registry.lookup() the object, whenever I call a method in the received object I get a "Cannot connect to 10.200.1.1" error, while 10.200.1.1 is the internal computer address. Seems like the stub is using the internat's address and not the internet's address.. How can I fix this situation?
    Thanks ahead,
    AviadBD.

    read one of the many many threads on this forum about using -Djava.rmi.server.hostname

Maybe you are looking for

  • Since performing the latest update I can no longer use more than three displays.

    Does anyone know of a fix for the problem where you can only run 3 monitors?  I was running 4 displays before the update but now only three can run.  Apple support recognizes the problem but does not have a answer.  Anybody else haveing this problem?

  • How to Pass table-structure-fields data to BRF PLUS Application

    Dear Eperts, i have a question related to BRF Plus management through abap program. In brf plus application end, Field1,field2,field3 these 3 are importing parameters.                                        Table1->structure1->field4,field5 this is t

  • Problem with Bar Chart using Date Data

    I am trying to make a simple horizontal bar chart as a Gantt chart.  I am trying to set the min and max for the X axis but it is acting strangely. As you can see in the screenshot below, I set the min to 1/1/2000 but the chart uses 9/28/2011.  Simila

  • Photoshop Elements 9 keeps shutting down.

    I have created a slide show in PSE 9, but whenever I try and preview it in full-screen mode I get an error that the program is experiencing a problem and it shuts down.  Can anyone suggest a fix?

  • HT3275 Macintosh.sparsebundle could not be created

    Time machine error = "Macintosh.sparsebundle could not be created" error 17. What does it mean and what do I do with it?