2 Replies Latest reply on Jul 26, 2006 12:00 PM by Peter Farland

    RPC Fault

    this.sonix Level 1
      Hi everyone,
      i developed a small application which worked fine in the middle of June.
      When I startet my app in July, it didn't work anymore and the following Error occurs:

      [FaultEvent fault=[RPC Fault faultString="An unknown exception occurred while creating an instance of type 'adg.frontend.Messefrontend'." faultCode="Server.ResourceUnavailable" faultDetail="null"] messageId="224E43C5-591E-B78D-4558-04D90D1AD5D3" type="fault" bubbles=false cancelable=true eventPhase=2]

      I'm using Flex Beta 3 with Tomcat 5.5 and J2SE 5 SDK 7
      After days of searching, I don't know where the fault is.
      I tried the, for my config tweaked, configuration of the example files (samples.war, examples are working).
      Without any effect.

      My Configuration:

      <destination id="Messefrontend">
      <adapter ref="java-object" />

      <mx:RemoteObject id="MesseFrontend" destination="Messefrontend" result="resultHandler(event.result)"
      fault="faultHandler(event)" >
      <mx:method name="gewinnCodeEingabe" concurrency="multiple" />
      <mx:method name="getConfirmData" concurrency="single"/>

      File System:
      Tomcat 5.5\webapps\flex\WEB-INF\classes\adg\frontend\Messefrontend.class
      Tomcat 5.5\webapps\flex\WEB-INF\src\adg\frontend\Messefrontend.java
      Tomcat 5.5\webapps\flex\Messe\Messe.mxml

      Java Files are working if I start them with a main Method in Eclipse.

      Hope someone can help me.
      Thanks a lot.
      D. Kuhn
        • 1. Re: RPC Fault
          sanclementetech Level 1
          Couple of things.

          1) it would be helpful if you had a debug trace going and provide that as well.
          2) you may need to specify and endpoint for you remote object something like /flex/messagebroker/amf. If you are compiling your objects and then pushing them to the server, for some reason, flex does not get your channels defined in your configuration files.
          • 2. Re: RPC Fault
            Peter Farland Level 3
            Did you restart the server each time you changed the configuration files or touched java code and recompiled it?

            Do you have a public, no args constructor on the classes serving as RemoteObject destination sources?

            Are you using any JDK 1.5 specific code in your classes such as enums? If so, can you try removing anything 1.5 specific and recompiling to try and work out what the offending code is?

            Can you try to instantiate the class using a JSP page?