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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • 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?

  • JDBC connection fails with "java.rmi.NoSuchObjectException" message

    When connecting a JDBC client to a FireSIGHT Management Center, the following error message appears:
    SEVERE: java.rmi.NoSuchObjectException
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
            at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
            at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
            at java.net.Socket.connect(Socket.java:579)
            at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
            at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:407)
            at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88)
            at InstallCert.main(InstallCert.java:81)

    Cause
    Without the Server Hostname field filled in, a FireSIGHT Management Center (also known as Defense Center) tells the JDBC client that it has an address of localhost, or 127.0.0.1, which causes the connection to fail.
    Solution
    Step 1: Log in to your FireSIGHT Management Center where the JDBC is trying to connect to.
    Step 2: Navigate to System > Local > Configuration.
    Step 3: When the page loads, select Database on the left pane.
    Step 4: Ensure that the Server Hostname field is filled out with the Fully Qualified Domain Name, or the IP address of the FireSIGHT Management Center.

  • JSP compilation failed with java.lang.IllegalStateException: zip file close

    Hi,
    I have a web app successfully deployed on Weblogic7.0 and HP UX 11.0, which uses jdk 1.3.1_02
    In this application, when i invoke a jsp (this exception occurs on any jsp not to any specific jsp), i found the following exception trace on wl-domain.log file and server crashes: -
    java.lang.IllegalStateException: zip file closed
         at java.util.zip.ZipFile.getEntry(Unknown Source)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java, Compiled Code)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.MultiClassFinder.getClassSource(MultiClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.upToDate(ChangeAwareClassLoader.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.checkForReload(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java, Compiled Code)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java, Compiled Code)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java, Compiled Code)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java, Compiled Code)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled Code)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    Can anyone help me in figuring out this problem urgently?
    thanks in advance
    manoj

    Hi Manoj.I am also getting the same problem in the weblogicserver version-6.1 SP2.It is also using the jdk 1.31.
    here is my stack trace.Help i smuch appreciated.!!
    java.lang.IllegalStateException: zip file closed
         at java.util.zip.ZipFile.getEntry(ZipFile.java:141)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java:197)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java:106)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:53)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:53)
         at weblogic.utils.classloaders.MultiClassFinder.getClassSource(MultiClassFinder.java:45)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:265)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:156)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:65)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
         at com.slfc.framework.service.ServiceMessageFactory.createServiceResult(ServiceMessageFactory.java:58)
         at sunlife.nexus.admin.SecPro.establishSupportSession(Unknown Source)
         at sunlife.nexus.admin.Page_secPro_extAppLoader.processPageRequest(Unknown Source)
         at sunlife.wis.servlets.WISServlet.redirect(WISServlet.java:63)
         at sunlife.wis.servlets.WISServlet.doExec(WISServlet.java:107)
         at sunlife.wis.servlets.WISServlet.doGet(WISServlet.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

  • Stub compile failure when entity has two 1:1 relationships

    I think I've found a bug in the Sun J2EE SDK (surprised? no, but looking for workaround...)
    The stub code that is generated during deployment of my .ear file creates two "__reverse_item_uid" fields for my ItemBean entity.
    This started when I added a second 1:1 relationship to my ItemBean. I have a PurchaseItem-Item relationship and have now added a SalesOrderItem-Item relationship. They are both 1:1 and unidirectional. See relevent section from ejb-jar.xml
    <ejb-relation>
    <ejb-relationship-role>
    <ejb-relationship-role-name>PurchaseItem-Item</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>PurchaseItem</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>item</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>Item-PurchaseItem</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>Item</ejb-name>
    </relationship-role-source>
    </ejb-relationship-role>
    </ejb-relation>
    <ejb-relation>
    <ejb-relationship-role>
    <ejb-relationship-role-name>SalesOrderItem-Item</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>SalesOrderItem</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>item</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>Item-SalesOrderItem</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>Item</ejb-name>
    </relationship-role-source>
    </ejb-relationship-role>
    </ejb-relation>
    When I add my .jar to my application using the GUI of the deploytool, set everything up (jndi, generate sql, ...) run verifier is OK, and then deploy, the deploy will fail due to stub compilation failure.
    If I then open up the sun-j2ee-ri.xml that is generated and found in my c:\j2sdkee1.3.1\repository\myname\applications\myapp1234.jar notice the use of two "__reverse_item_uid" fields in the following sample:
    <ejb>
    <ejb-name>Item</ejb-name>
    <jndi-name>Item</jndi-name>
    <gen-classes />
    <ejb20-cmp>
    <sql-statement>
    <operation>storeRow</operation>
    <sql>UPDATE "ItemBeanTable" SET "__reverse_item_uid" = ? , "__reverse_item_uid" = ? , "itemType" = ? , "location" = ? , "name" = ? , "peachID" = ? , "price1" = ? , "price2" = ? , "price3" = ? , "unitmeasure" = ? , "version" = ? WHERE "uid" = ? </sql>
    </sql-statement>
    GRRRRR!!!!! What do I do to avoid this? Can't the Sun Ref Impl generate this and the stub code smarter so that it does something like use the <ejb-relationship-role-name> as the fieldname?
    Any help would be greatly appreciated :)
    -Gretel

    I figured it out... here's the answer in case anyone is wondering...
    Use different field names for 'item' in both PurchaseItem and SalesOrderItem. In other words, here is the correct segment of ejb-jar.xml
    <ejb-relation>
    <ejb-relationship-role>
    <ejb-relationship-role-name>SalesOrderItem-Item</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>SalesOrderItem</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>itemHack</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>Item-SalesOrderItem</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>Item</ejb-name>
    </relationship-role-source>
    </ejb-relationship-role>
    </ejb-relation>
    Simply by changing the <cmr-field-name>itemHack</cmr-field-name> from 'item' to 'itemHack' :)
    Sometimes in the land of EJB development, it's the "easy" things that can waste a lot of time.

  • 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.

  • 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

  • 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

    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

  • 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

  • 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?

Maybe you are looking for

  • Why is the Photoshop font size extremely small for their navigation menus and tools?

    Why is the font size for the Photoshop Cloud navigation menus and tools displaying extremely small on my laptop? I can barely see them. The other Adobe Cloud applications don't display small.

  • Blinking/flashing mouse pointer

    I'm working with the demo version of Adobe Captivate 3, and so far I'm liking it a lot. The problem I'm having, though, is that in full-motion capture mode, the mouse cursor blinks constantly at a high rate. It makes it hard to see where I'm clicking

  • Video clip capture

    How can I capture a video clip from a news station or YouTube when there is no option to download the clip?

  • TDS and Excise in MRNB

    Hi I have used MRNB for revaluation of GRs. The TDS amounts are not calculated. How can i post this? Also how can excise be posted? Thanks Rahul

  • Execute a Fm in Background

    Hello experts, please have a look at the part of the code in report below       CALL FUNCTION 'ME_PRICING_ALL'       IN BACKGROUND TASK. IMPORT EKOMV TO lt_KOMV FROM MEMORY ID 'RM06K010'. loop at lt_komv.   write: / lt_komv-KWERT. endloop. in FM ('ME