Creator and RMI

How can I access RMI objects on another computer from an application I'm authoring in Creator?
When I deploy the application to the server where the remote objects reside everything works fine. However, I get null pointer exceptions during object creation when I try to test the application in Creator. I've set the options for both external compilation and external execution, but no luck. I've also set all the options for 1.4 code adherence.
RMI access works fine when running applications on my computer's default JDK (ver. 1.5.) Is this a permission problem? Is this possibly a timeout situation? I'm using WXP Home which causes socket connections to take a little longer than normal. Do I need (please say no) to create stubs?
Any help is greatly appreciated.

Here is the exception report if anyone might find it useful:
Exception Handler
Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
Exception Details: javax.faces.FacesException
#{Page1.pauseButton_action}: javax.faces.el.EvaluationException: java.lang.NullPointerException
Possible Source of Error:
Class Name: com.sun.faces.application.ActionListenerImpl
File Name: ActionListenerImpl.java
Method Name: processAction
Line Number: 78
Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
Stack trace:
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)
javax.faces.component.UICommand.broadcast(UICommand.java:312)
javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
java.security.AccessController.doPrivileged(AccessController.java:-2)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
java.lang.Thread.run(Thread.java:534)
Exception Details: javax.faces.el.EvaluationException
java.lang.NullPointerException
Possible Source of Error:
Class Name: com.sun.faces.el.MethodBindingImpl
File Name: MethodBindingImpl.java
Method Name: invoke
Line Number: 130
Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
Stack trace:
com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
javax.faces.component.UICommand.broadcast(UICommand.java:312)
javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
java.security.AccessController.doPrivileged(AccessController.java:-2)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
java.lang.Thread.run(Thread.java:534)
Exception Details: java.lang.NullPointerException
null
Possible Source of Error:
Class Name: simplemediacontroller.Page1
File Name: Page1.java
Method Name: pauseButton_action
Line Number: 109
Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
Stack trace:
simplemediacontroller.Page1.pauseButton_action(Page1.java:109)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
javax.faces.component.UICommand.broadcast(UICommand.java:312)
javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
java.security.AccessController.doPrivileged(AccessController.java:-2)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
java.lang.Thread.run(Thread.java:534)

Similar Messages

  • Difference Between JMS and RMI

    Difference Between JMS and RMI in J2EE Technologies

    STFW
    JMS - http://www.google.co.za/search?hl=en&q=what+is+jms&meta=
    RMI - http://www.google.co.za/search?hl=en&q=what+is+rmi&meta=

  • SRM7 classic scenario - backend PO creator and item requisitioner

    Hi all,
    In our current SRM4 with backend ECC 6.0 EhP4, the backend system was defined as ERP_2.0.  After shopping cart get approval and PO generated at backend, both the PO creator and item requisitioner are equal to shopping cart creator.
    We are upgrading to SRM7 and exploring the service procurement scenario (transfer service hierarchy) between SRM7 and backend ECC 6.0 EhP4.  After we defined backend system as ERP_4.0 (LOG_MM_P2PSE_1 activated EhP 4) and setup PI, the PO was successfully created at backend via XML message. However, we noticed that the PO creator and item requisitioner were WF-BATCH but not the shopping cart creator.   Is there any setup that can resume both the PO creator and item requisitioner equal to shopping cart creator?
    We also tested in SRM7 to define backend system as R/3_4.6C (does not require PI), then the backend PO creator and item requisitioner are equal to shopping cart creator.
    Regards,
    Donald

    Hi Donald
    988490
    - CHECK CODE CORRECTION
    IF NOT ls_partner-requestor IS INITIAL.
          mc_assign_x ls_be_item preq_name ls_partner-requestor.
        ELSE.
          mc_assign_x ls_be_item preq_name sy-uname.
        ENDIF.
    Note 761630 - WF-Batch in change documents
    Reason and Prerequisites
    There are processes in which changes to the document are implemented in the background task in the background (for example, by the workflow). In this case, the system user WF-BATCH is displayed in the document as the last 'Changed by'.
    Solution
    This is not a general error because the change history correctly displays changes made by the workfow, for example.
    In some cases, it would make sense, from a business point of view, that the change history does not display the WF Batch but the user who triggered the workflow/background process (example: approval of a shopping cart by a manager). Due to the complexity of this development, which involves adjustments of all workflows and background processes, no solution can be provided in Releases SRM 4.0 and SRM 5.0. An advance correction is only possible for the special case when shopping carts are released (see Note 761293).
    by the way what are your rfc user names?
    Check with SAP.
    mUTHU

  • Table which stores both creator and requestor names

    Hi Experts,
    We are using SRM 7.0 with extended classic scenario.We got a requirement that when Shopping cart rejected  then rejection email should go to both creator and requestor in case of Shop on behalf.
    But as per standard SRM rejection email going only to requestor.As we are trying to figure out how to trigger the mail to creator aswell,
    Can some one help with the table name if any which stores both creator and requestor names so that we try to build some logic.
    Thanks in advance.
    Regards,
    Kalyani

    Hi Sankara,
    Thanks for your response.
    Yes i checked the FM bbp_pd_sc_getdetails it didn't solved the purpose.
    Thanks.
    Regards,
    Kalyani

  • Java Studio Creator and JDK

    I'm trying to create a game application using java and i've downloaded both java studio creator and JDK. However i'm having problems of writing the program. Should i use notepad and compile it using JDK? Or can i simply use the java studio creator and type in my java codings? And i cant seem to type in any codings in the java studio creator.
    Can someone help me please? Thank you.
    Message was edited by:
    burpyjac

    Hello, Burpyjac!
    I don't understand what you want to do exactly. If you would like to write an applet for a website maybe Java Studio Creator is not what you want, it's an IDE for developing web applications running in an application server like Glassfisch, SJSAS, Tomcat and the like.
    If your game need animation, drawings in a panel and the like you would need another IDE like Netbeans for example to develop an applet. Of course you can just use Notepad, but a IDE like Netbeans is much more comfortable (syntax highlighting, project managment, debugging).
    Java Studio Creator is an IDE for web applications and it is based on Netbeans (if you saw both you will notice). If your game can live without graphics maybe you can use it - but be aware that this applications do not run alone, you need an application server.
    Cheers,
    Jan

  • Sun Creator and using the JNI

    Does any developer or Sun person have a direction for me to go in the use of the JNI within Java Sun Creator?
    It seems last weekend I was talking to a person from SUN in regards to tis issue and they have not got back to me. Has any one that uses searches looks through this user forum used the JNI within Sun Creator and to what extenet if you have.
    Thank you for your help...

    dupey00_ca , Sun support is trying to contact you.
    Please see the response to your posting from ELI-NB on Jan 4
    http://forum.java.sun.com/thread.jspa?threadID=5113212&messageID=9389707#9389707
    John
    from the Creator team

  • Differnce between RPC and RMI

    Hello,
    Can anyone please tell me in detail the difference between RPC and RMI? If possible can you pls give examples?
    Thanks in advance.
    KiranJyot

    Thank you for the reply.
    Yes, I did google about this. But, it was not clear to me. I did ATM application using both RPC and RMI. Even though, it worked fine and did not lose points in my assignments, unfortunately the concepts were not clear.
    Can you please explain me what does it meant by - there is objects involved in RMI. In RPC, invoking functions is done through a proxy function. It will be great if you can explain it using ATM application.
    Regards,
    KiranJyothi

  • CATS Timesheet creator and approver

    All,
    We have two main roles we are dealing with in CATS. We have a Time Sheet creator and than a Time Sheet Approver. Right now it is setup mainly through the P_ORGIN auth. obj. I won't allow the approvers to approve their own time sheets but itlll allow them to approve everyone elses. so Infotype 0328 is setup with ' ' subtype and activity D, and P_PERNR activty M,R with infotypes 0000-0002 0007 0315 0315 2001-2003 2010 with subtype ' ' and it will allow the approvers to approve anyones timesheets but their own like we would like.. In the Time Sheet creators it is setup with infotype 0001 and ' ' subtype. with activity M in P_ORGIN and activty R for infotype 0007 & 0316 with subtype ' '. which allows the users to create timesheets for only themselves
    The issue is when those two roles are put together to the approver can't create a timesheet. We need the approver to be able to create timesheet for themselves only and approve timesheets for everyone but them selves. I understand the logic of how it is setup (well atleast I think I do) and I know by adding a * to the approver subtype it will allow them to create timesheets for themselves. Is there anyway around this or another way of assigning authorizations to get this to work properly.
    Thanks,
    -Daniel

    Hello,
    I have exaclty the same issue.
    have you found something please ?
    Do you use Pd profile or P_ORGINCON authorisation ?
    Regards
    Edited by: Cédric LEFRANCOIS on Dec 1, 2009 12:53 PM

  • Trigger Email to SC Requestor when SC Creator and Requestor are different

    Hi SRM Gurus,
    I need to trigger an email to SC Requestor when the SC Creator and Requestor are different.
    I searched in the forum but i couldn't get any details related to this.
    Please throw some light on this.
    Thank You.
    With Regards,
    P.Arunkumar

    Hi,
    A couple of approaches are possible:
    1) Incorporate the check into the approval-workflows. The information you need (both creator and requestor) are in the business-object (bus2121). This will require someone with knowledge of workflow, but it's not really all that difficult. Note that you use a notification-task and not a workitem to inform the requestor (you want them to get an email with info, not a workitem like an approver gets).
    Check out the workflow WS10400051 which is used at the end of all SC-workflows. It already contains checks on "sending mail" to approvers, reviewers etc. and a sub-workflow to generate mails to these agents. This would be an "easy" place to add your check and your mail-sending.
    2) Create a Z-copy of the BUS2121 and adapt the setreleased-function to handle sending the mail (less work but more invasive).
    If you have further questions, please report. I will check this thread in the coming time.
    If this helps you, please awards points.

  • Using Applets and RMI on WL6 - Error marshaling transport header; nested exception is:  - java.io.EOFException

    I have a project that I am porting from WL5.1 to WL6. It was working fine
    in WL5.1
    but cannot get it working in WL6. So, I went back to the HelloWorld
    example to
    see if I could get it working. The problem I am having is basically getting
    applet to
    talk to a server via RMI. The applet works fine alone and RMI works fine
    alone.
    I can't get the applet to talk to the server via RMI.
    I am trying to get the "HelloWorld" applet example in WL6 working with RMI.
    I previously had the same app working in WL5.1 with SP9 but cannot get it
    working in WL6.
    I am running WebLogic Server 6.0 with SP2.
    I have registered a startup class in the WebLogic console
    named "HelloServer". When starting up the server, it states
    that the HelloImpl class has been registered as "HelloServer".
    When starting up the client applet I get the following error:
    java.rmi.MarshalException: Error marshaling transport header; nested
    exception is:
    java.io.EOFException
    These are two different methods of looking up the same object.
    The exception occurs at the "lookup" method call in both cases.
    "myserver" is the name of my machine that WL is running on.
    7001 is the port that WL is using.
    Registry reg = LocateRegistry.getRegistry("myserver", 7001);
    obj = (Hello)reg.lookup("HelloServer");
    or...
    obj = (Hello)weblogic.rmi.Naming.lookup("rmi://" +
    getCodeBase().getHost() + ':' + port + "/HelloServer");
    I previously ran this same program under WL5.1 SP9 and everything works
    fine.
    I defined the startupClass in the weblogic.properties file in WL5.1
    Can anyone tell my what is causing this exception and how to correct the
    problem?
    Thanks
    Terry Antle

    "Terry Antle" <[email protected]> writes:
    These are two different methods of looking up the same object.
    The exception occurs at the "lookup" method call in both cases.
    "myserver" is the name of my machine that WL is running on.
    7001 is the port that WL is using.
    Registry reg = LocateRegistry.getRegistry("myserver", 7001);
    obj = (Hello)reg.lookup("HelloServer");
    or...
    obj = (Hello)weblogic.rmi.Naming.lookup("rmi://" +
    getCodeBase().getHost() + ':' + port + "/HelloServer");
    I previously ran this same program under WL5.1 SP9 and everything works
    fine.
    I defined the startupClass in the weblogic.properties file in WL5.1
    Can anyone tell my what is causing this exception and how to correct the
    problem?I don't know what the problem is but you shouldn't be using either of
    these methods for looking up RMI objects - you should use JNDI instead.
    Thanks
    andy

  • Creator and  futureproof AJAX framework ?

    Hi,
    I am glad there are a couple of AJAX enabled Creator JSF components. No doubt over the next year or so there will be more, and richer AJAX JSF components from SUN.
    What should one use now to make the best of Creator and AJAX ?
    I see current options as ICEFaces, jMaki, or Dojo, etc. I would prefer to stay with JSF components rather than a 'lower level' AJAX framework. I would hate to lose the ability to use the Java Row Sets and Data Providers from Creator that make so easy to get data from databases. Design time drag and drop of components is nice, but I could live without it for a while if need be.
    I am hoping for JSF features such as communicating with other components (click one button and a table does an AJAX refresh), drag and drop, pop-ups, etc.
    Any suggestions on how to achieve AJAX now while making the most of Creator and not digging into a hole for the future ?
    Thanks,
    JC

    You might want to consider the jMaki framework. See http://blogs.sun.com/divas/entry/using_the_dojo_combobox_in

  • Jini and Rmi utilisation for a particulary case..

    I have to write a application which is going to connect our server to different hospitals infromatque system.
    The application would provide a user interface in hospital side wich is going to make them able to send us a inventory file(fromated differently for each hospital with their own informatiqe system).
    The application have also to change the the file format befor stored in our data-base(each information have to go to different table)
    My supervisor ask me to look Jini and Rmi technologie for this application..
    So far i read some information about both technologie..but still i'm wondering my self is Jini or Rmi have a real use in this case.
    If your are masterd in those technologie and java networking device woud you help me up ?
    Could you tell me if those technologie have to be realy use in this case or there is other solution with java programming.
    Thank's
    Astiage Ghassemian

    Jini is a high level framework that a computer to easily locate a service provider in a network and get the service. So your case does not need such a framework because in your case, just like most of todays application, the service is provided only by your server and you know where it is and what it does. You just need something a one level lower than Jini that actually does the communication - RMI. Jini runs only top of any other lower level protocol including RMI. Detailed description of Jini:
    Jini technology is an architecture for the construction of systems from objects and networks. The Jini architecture lets programs use services in a network without knowing anything about the wire protocol that the service uses. One implementation of a service might be XML-based, and another RMI-based, and a third CORBA-based. The client is, in effect, taught by each service how to talk to it. A service is defined by its programming API, declared as a Java programming language interface.
    When a service is plugged into a network of Jini technology-enabled services and/or devices, it advertises itself by publishing a Java programming language object that implements the service API. This object's implementation can work in any way the service chooses. The client finds services by looking for an object that supports the API. When it gets the service's published object, it will download any code it needs in order to talk to the service, thereby learning how to talk to the particular service implementation via the API. The programmer who implements the service chooses how to translate an API request into bits on the wire using UPnP, RMI, CORBA, or a private protocol.
    In other words, the Jini architecture uses objects that move around the network to make each service, as well as the entire network of services, adaptable to new strategies over time.

  • Way to set Node's creator and create date explicitly?

    Hi,
    I'm creating content to Content Repository programmatically using bea.content.NodeOps and it works fine - except the fact that I haven't come up with a way to set e.g. creator and creation date explicitly. Instead, they are populated automatically to current timestamp and '<anonymous>', respectively. That's not what I want.
    bea.content.Node class provides a constructor with the parameters mentioned above. However, once I have instantiated Node object using this constructor, there seems to be no way to persist it to the repository (the constructor creates only in-memory object), since none of the overloaded NodeOps.createContentNode() methods takes Node as parameter.
    Any ideas?
    BR,
    Jarkko

    These devices are shared, and anyone in the Family could be taking the photos?  You can create Albums in the Photo App and at the very least have each person name their Albums with their Name.

  • Corba,RMI and RMI-IIOP

    Can someone help me understand and analyze the marshaling techniques of CORBA, RMI and RMI-IIOP??

    RMI/JRMP is easy, just read the RMI Specification:
    http://java.sun.com/j2se/1.5.0/docs/guide/rmi/spec/rmi-protocol.html
    CORBA is not so easy. Find the GIOP and IIOP specifications at http://www.omg.org

  • Making choice between socket and RMI

    I never use RMI, but i am familiar to socket programming. i want to write an online game, I know that use RMI will easy than use socket, could anyone tell me what factors will affect the choice between using socket and RMI if don't consider which one i am familiar ?
    thanks
    jacky

    I would consider the amount of traffic your online game is going to be generating. Obviously, if the traffic is the bottleneck, you will want to optimize it as much as possible.
    I can see that if you are familiar with sockets and socket programming, where this is very appealing because after all, you can't get much faster than raw sockets. Also, the Java APIs around sockets are much easier than the equivalent BSD Socket C/C++ libraries.
    Still, RMI has much more to offer.
    o It is relatively easy to set up a connection
    o exceptions will be thrown when problems occur
    o serializing classes is so easy it's laughable
    o If performance becomes an issue, you can (as the previous poster suggests) create your own custom socket factory which optimizes the used bandwidth. Options here include compression if you have the CPU cycles to spare.
    o There are mechanisms in place for working RMI over firewalls
    Many of the things that RMI offers, you might find yourself re-writing in your own socket-based API. Personally, I would choose RMI.

Maybe you are looking for

  • PDF files downloading as html files

    I am trying to save pdf files from a database but firefox keeps on saving them as html files instead, even when saving it shows it saving as *.pdf. I have only just fixed the problem of not being able to open the pdf files and now using adobe reader

  • Editing playlists in iTunes 11 ?

    Does anyone know how to edit playlists in the new ITunes 11 ? The tutorial states that there is a button on the bottom half of the screen that should allow for this, like there was in previous versions, but i have not been able to find this. Thanks f

  • Can't get Firefox to start after performing OS security updates

    Just did the most recent updates on OS-X 10.6.8, and now I can't get Firefox to start. It comes up and says that it is having problems (the "embarassing" window) and that I should try closing tabs. However, it's not responding at all, so finally I ha

  • JS to execute grep

    how to write JS to execute the grep in InDesign? e.g grep1 then grep2 then grep3? Thanks in advance.

  • Speed issue with Action Listener

    I have a JCombobox that has an action listener that waits for an action to be performed. When I update the Combobox list by using removeAllItems() and then loop additem on an array to rebuild it, It take 14 seconds to rebuild the list. When I remove