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?

Similar Messages

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

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

  • Question about the generated package of an RMI stub class.

    Does anyone know why rmic tool generated stubs are in the same package as the class that implements the remote interface? For example, say I have an interface, MyRemoteInterface, in the foo.bar package, and an implementing class, MyRemoteImpl, in the baz package. When baz.MyRemoteImpl is compiled by rmic, a stub, MyRemoteImpl_Stub, is generated in the baz package.
    Now I would have thought that MyRemoteImpl_Stub would have been generated in the foo.bar package, as the stub is to be used on the client to handle calls at the interface level. In other words, the baz package really only makes sense on the server. This is in fact how stubs are generated for CORBA using the -iiop flag to rmic.
    Is there at least a way to specify the generated package?

    if u are running rmic on a class called com.yourmi.MyClass the stub will be generated with
    exactly the same package.
    the only thing that u can change is the location of the stub (for example, in another directory)
    but also in that other directory you will find com\yourmi\MyClass_Stub
    regards
    marco

  • Stub classes generation in rmi

    i want to know how the class loading of stubs classes works in actual versions of java (1.5 and later)?
    i had read a lot of documentation of rmi, and generally it says that the stubs classes and implemented interfaces classes of a remote object must be set on the client classpath (or codebase), but java 1.6 not generates stub classes on compilation.
    This question is related with a error that i have now, I (and 5 people, but i'm the only one that knows RMI) have build a system with one server and many clients, when it run on my lan it works great, but when i install it on the production servers it fail to call server methods. There are not closed ports in PCs, and i have set hostname and codebase properties on server, and codebase property on the client.
    The server publish his object (on opened ports) and bind it in a rmiRegistry previously launched. The problem occurs in the client, it don't have troubles to lookup and get the stub server, but when it try to call a remote method it throws a NoRouteToHostException (to the public ip of the server).
    I have saw the whole [rmi faq|http://java.sun.com/j2se/1.4.2/docs/guide/rmi/faq.html] and the jguru rmi faq, even i have read the half of a OReilly's book of rmi, but still i don't know why this happen.
    I was thinking if the stub class (that there isn't in the client classpath or codebase) have some relation?
    If i create a registry inside the server, could it works?
    I don't have installed any securityManager on server or client because i think is not necessary if i don't download classes, can this have an influence in the problem?
    This is really frustrating to me.
    I hope than someone have some idea that can help me.
    Thanks!
    sorry about my english.
    Edited by: rhodan1 on Nov 10, 2009 7:37 PM

    This is the stackTrace of the Exception that i get in client side when i execute the method InterfacePrueba.getDate() in the client Main. The rmiregistry is running on port 1099 of the server, and the object is on 1100.
    Exception in thread "main" java.rmi.ConnectIOException: Exception creating connection
    to: 172.17.69.120; nested exception is:
         java.net.NoRouteToHostException: No route to host
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:614)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
         at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
         at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
         at $Proxy0.getDate(Unknown Source)
         at prueba.ClientePrueba.main(ClientePrueba.java:15)
    Caused by: java.net.NoRouteToHostException: No route to host
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:525)
         at java.net.Socket.connect(Socket.java:475)
         at java.net.Socket.<init>(Socket.java:372)
         at java.net.Socket.<init>(Socket.java:186)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
         ... 7 more

  • Can WLS6.0 download stub of RMI startup class

    Hi All,
    In order to lookup an RMI start class I need to have interface and also stub
    in the client classpath. I am wondering whether the weblogic server can
    download the stub dynamically. I know that it will download the stubs for
    ejb's. But it is downloading for RMI class. Can anyone tell me why it is not
    down loading and how to make it work
    Thanks
    Suresh

    "Suresh Done" <[email protected]> writes:
    In order to lookup an RMI start class I need to have interface and also stub
    in the client classpath. I am wondering whether the weblogic server can
    download the stub dynamically. I know that it will download the stubs for
    ejb's. But it is downloading for RMI class. Can anyone tell me why it is not
    down loading and how to make it workYes. You just need to make sure the stub is accessible to the server.
    andy

  • Rmi inner class extending Applet is it possible

    I have created four classes for my RMI program
    1>hellointerface
    2>helloserver
    3>register
    4>helloclient
    hellointerface has only one Abstract Method
    public String sayhello()throws java.rmi.RemoteException;
    The problem is with my helloserverclass. my helloserver class needs to extend UnicastRemoteObject however i want to do it by using
    UnicastRemoteObject.exportObject(this);
    There is no problem with the coplilation of code of this class.
    classregister is what getting effected if i use exportObject(this)function.
    the problem is the command prompt where i run java register
    appers like this
    Object created
    Object ready for use
    and than the register stop running .The same console is ready for
    running other Program where as in the case of Rmi the class that register the object using rebind() method must keep on running in the dos prompt
    my register class looks something like this
    try
    helloserver object=new helloserver()
    System.out.println("Object created");
    Naming.rebind("/helloserver",object);
    System.out.println("Object ready for use");
    my server side code is something like this
    public class helloserver implements hellointerface
    public helloserver throws java.rmi.RemoteException
    UnicastRemoteObject.exportObject(this);
    //and the only method defined is as follows
    public String sayhello()throws java.rmi.RemoteException
    return "Thank u for reading this the current System time is "+new Date();
    the client side is having a Applet which display this Message
    I know this is a simple program but plz help me out
    Thank u

    Sorry xHacker I didn't see this one before but it is another multi-post of
    http://forum.java.sun.com/thread.jspa?threadID=644864&tstart=0

  • Problems generating stub classes

    When I use the EJB deployer tool I do not get any stub classes in the resulting EJB jar file. No errors are generated and the deployment to the WLS works fine but when I try to access the bean from a client the initial context lookup method throws an exception
    javax.naming.ConfigurationException. Root exception is weblogic.rmi.server.ExportException: A description for com.eds.c
    fs.ejb.CfsControllerBeanHomeImpl was found but it could not be read due to: [Failed to find a stub for [class com.eds.cf
    s.ejb.CfsControllerBeanHomeImpl] implements at least one interface [interface com.eds.cfs.ejb.CfsControllerHome] which e
    xtends Remote.]
    weblogic.rmi.StubNotFoundException: Failed to find a stub for [class com.eds.cfs.ejb.CfsControllerBeanHomeImpl] implemen
    ts at least one interface [interface com.eds.cfs.ejb.CfsControllerHome] which extends Remote.
    at weblogic.rmi.extensions.BasicDescriptor.<init>(BasicDescriptor.java:25)
    at weblogic.rmi.extensions.BasicRuntimeDescriptor.<init>(BasicRuntimeDescriptor.java:34)
    at weblogic.rmi.internal.DescriptorManager.resolveClass(DescriptorManager.java:52)
    I cannot understand why the stubs are not being generated by the deployment tool ?

    Vijay
    Thanks for replying
    We are using Weblogic 5.1.0 with Service pack 5 on Windows 2000. with the SUN
    JDK1.2.2-008
    The jar file generated contains the original classes plus "Impl" classes but not
    the stub classe.
    We have also tried running the ejbc compiler from a command line but that also
    failes with the following error.
    C:\CraigsClasses\deployTest>c:\jdk1.2.2\bin\java weblogic.ejbc c:\CraigsClasses\deployTest\CraigsBean.jar
    c:\CraigsClass
    es\deployTest\CraigsBean2.jar
    ERROR: Error from ejbc: C:\CraigsClasses\deployTest\ejbcgen\Connectors\classes;C:\IBMCON~1\CICS\Classes\CTGCLI~1\JAR;;C:
    \weblogic\lib\weblogicaux\jar;c:\weblogic\classes;c:\weblogic\classes;;\;C:\CraigsClasses\deployTest\CraigsBean\jar;C:\C
    raigsClasses\deployTest\ejbcgenAD.ser (The filename, directory name, or volume
    label syntax is incorrect)
    ERROR: ejbc found errors
    We now also have a situation where the EJB deployer tool does not run on one PC,
    it just locks up at the splash screen, even after reinstalling weblogic, the service
    pack 5 and the jdk1.2.2-008. !
    Thanks
    Craig
    "Vijay Poluri" <[email protected]> wrote:
    >
    Hello Craig,
    What is the service pack level you are using?
    what happens when you do Tools-->Generate container...?
    Vijay
    Developer Relations Engineer
    BEA Support
    CD <[email protected]> wrote:
    When I use the EJB deployer tool I do not get any stub classes in the
    resulting EJB jar file. No errors are generated and the deployment to
    the WLS works fine but when I try to access the bean from a client the
    initial context lookup method throws an exception
    javax.naming.ConfigurationException. Root exception is weblogic.rmi.server.ExportException:
    A description for com.eds.c
    fs.ejb.CfsControllerBeanHomeImpl was found but it could not be readdue
    to: [Failed to find a stub for [class com.eds.cf
    s.ejb.CfsControllerBeanHomeImpl] implements at least one interface [interface
    com.eds.cfs.ejb.CfsControllerHome] which e
    xtends Remote.]
    weblogic.rmi.StubNotFoundException: Failed to find a stub for [class
    com.eds.cfs.ejb.CfsControllerBeanHomeImpl] implemen
    ts at least one interface [interface com.eds.cfs.ejb.CfsControllerHome]
    which extends Remote.
    at weblogic.rmi.extensions.BasicDescriptor.<init>(BasicDescriptor.java:25)
    at weblogic.rmi.extensions.BasicRuntimeDescriptor.<init>(BasicRuntimeDescriptor.java:34)
    at weblogic.rmi.internal.DescriptorManager.resolveClass(DescriptorManager.java:52)
    I cannot understand why the stubs are not being generated by the deployment
    tool ?

  • 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

  • Stub class not found error

    Hi
    My problem is, i created the stub class and when i run my program after starting rmiregistry, i got error
    LocationServiceRegister err: Stub class not found: LocationService.LocationServiceImplementation_Stub; nested exception is:
         java.lang.ClassNotFoundException: LocationService.LocationServiceImplementation_Stub
    java.rmi.StubNotFoundException: Stub class not found: LocationService.LocationServiceImplementation_Stub; nested exception is:
         java.lang.ClassNotFoundException: LocationService.LocationServiceImplementation_Stub
         at sun.rmi.server.RemoteProxy.getStub(Unknown Source)
         at sun.rmi.server.RemoteProxy.getStub(Unknown Source)
         at sun.rmi.server.UnicastServerRef.setSkeleton(Unknown Source)
         at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source)
         at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source)
         at java.rmi.server.UnicastRemoteObject.exportObject(Unknown Source)
         at java.rmi.server.UnicastRemoteObject.exportObject(Unknown Source)
         at java.rmi.server.UnicastRemoteObject.<init>(Unknown Source)
         at java.rmi.server.UnicastRemoteObject.<init>(Unknown Source)
         at LocationService.LocationServiceImplementation.<init>(LocationServiceImplementation.java:42)
         at LocationService.LocationServiceImplementation.main(LocationServiceImplementation.java:57)
    Caused by: java.lang.ClassNotFoundException: LocationService.LocationServiceImplementation_Stub
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.rmi.server.RemoteProxy.loadClassFromClass(Unknown Source)
         ... 11 more
    I have defined the CLASSPATH and then also i get this error.
    I checked in the forum for this type of error but still have the same problem after making some changes.
    Can anyone please explain me why ?
    Thanx in advance....

    Hi
    I got the solution..
    I dint include the "bin" directry in the classpath...
    the stub class was in bin dir..
    bye

  • 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

  • Shell/stubbed class

    What is a shell class?
    What ara stubbed classes? are the same that enclosing classes?

    upon some code i stubbed my toe
    it's purpose i may never know
    i saW a class but couldn't see
    it's purpose wasn't clear to me
    and when i tried to understand
    i looked around this forum land
    warnerja is the one to ask
    but wait until i fill my flask
    it's empty now as you can see
    i drank it all, so pity me
    upon my ear i place a shell
    and what i hear is not a bell
    i question things about this class
    you say it's stubbed but you're an ass
    so if an answer you disire
    then somewhere else you must inquire
    and if you're smart, you'll read a book
    or go to Google and take a look
    to bother us is but a crime
    and i don't want to waste my time
    so if this question you must ask
    i'll only say that it's YOUR task
    and if you want advice for free
    don't come around to look for me

  • 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

  • How do I generate stub classes with wsimport for secured (SSL) WSDL?

    I'm trying to use the wsimport utility from the JWSDP1.6 to generate the stub classes for a web service client. The problem is that the WSDL location is secured on it's server, and when you navigate to it via a browser it asks you to authenticate before it'll show it. I have access to the WSDL, via a username and password, but I have no idea how to send those parameters to it through wsimport. Here's my error message from wsimport:
    [ERROR] Failed to read the WSDL document: https://-removed4companysecurityreasons-.com/ObsidianAdService.asmx?WSDL, because 1) could not find the document
    ; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.
    unknown location
    Can anyone offer me any advice/solutions here?

    I'm not sure we had support for secured web services access in 10.1.2 - try JDeveloper 10.1.3 instead:
    http://www.oracle.com/technology/products/jdev/howtos/1013/wssecure/10gwssecurity_howto.html#CreateSecureProxy

Maybe you are looking for

  • How to get the last day of calweek

    Hi Guys,             Is there any function module to get the last day of the calendarweek. I want to show that last date of calweek in my column heading.

  • How do i get music videos to play like the music does on my ipad, for example one right after another and shuffle

    I need to know how I can get the music videos on my IPad to play like the music does.  What I mean id setting up a playlist, shuffle, and have them play one right after another instead of going back to the main screen.

  • RAID 1 Array Ejecting Randomly

    I have two identical 1 TB drives connected through a USB hub. I set up RAID 1 and in the last week this has happened twice. The drives sound like they're going to sleep, and before they spin all the way down wake back up. The computer immediately inf

  • System Preferences

    I wonder if anyone can help, I am trying to switch off my remote control setting on my macbook, to do this I need to go into security under system preference. When I load up system preferences, the security icon under Personal doesn't look like it sh

  • How to resize margins / text frames for a whole book?

    Hello, I am new to InDesign, but not Adobe software. I am trying to use InDesign to produce a book I have written for a university course I teach. I have 33 documents all together as an InDesign book. After I printed out some test pages I thought the