10 Replies Latest reply on Nov 1, 2006 10:33 PM by nmfacer

    Flex Data services not working in Oracle AS or OC4J 10.1.3

    jeffreyjmark Level 1
      I followed the instructions in the Install documentation but still can’t get the Data services to work in Oracle AS or OC4J 10.1.3. If I try to run Flex Admin I get an RPC fault “Send Fail, faultcode=client.error.messagesend faultdetail=channel.connect.fail error netconnection.call.failed: http: status 500 messageID=2907c199-e9be-8081-c279-423f593a7777. If I try to run the samples i either get a send fail Error or
      1 Exception found.
      Exception java.lang.OutOfMemoryError Java heap space. Increasing the heap size does not help. Does anyone have any suggestions?
        • 1. Re: Flex Data services not working in Oracle AS or OC4J 10.1.3
          T._Ruggles Level 1
          Do you see exceptions logged at startup?
          • 2. Re: Flex Data services not working in Oracle AS or OC4J 10.1.3
            jeffreyjmark Level 1
            No I don't see any exceptions when OC4J or Oracle AS starts up
            • 3. Re: Flex Data services not working in Oracle AS or OC4J 10.1.3
              jeffreyjmark Level 1
              Oc4J start up output:

              C:\download\J2EE\oc4j\bin>oc4j -start
              Starting OC4J from C:\download\J2EE\oc4j\j2ee\home ...
              2006-10-13 13:11:42.903 NOTIFICATION JMS Router is initiating ...
              06/10/13 13:12:00 10/13 13:12:00 INFO Loading configuration file C:\download\J2E
              E\oc4j\j2ee\home\applications\Flex Data Services\flex\WEB-INF\flex\flex-webtier-
              config.xml
              06/10/13 13:12:01 10/13 13:12:01 INFO Loading configuration file C:\download\J2E
              E\oc4j\j2ee\home\applications\Flex Data Services\flex\WEB-INF\flex\flex-config.x
              ml
              06/10/13 13:12:12 10/13 13:12:12 INFO Loading configuration file C:\download\J2E
              E\oc4j\j2ee\home\applications\Flex Data Services Samples\samples\WEB-INF\flex\fl
              ex-webtier-config.xml
              06/10/13 13:12:13 10/13 13:12:13 INFO Loading configuration file C:\download\J2E
              E\oc4j\j2ee\home\applications\Flex Data Services Samples\samples\WEB-INF\flex\fl
              ex-config.xml
              06/10/13 13:12:13 Oracle Containers for J2EE 10g (10.1.3.0.0) initialized
              • 4. Re: Flex Data services not working in Oracle AS or OC4J 10.1.3
                T._Ruggles Level 1
                Would you turn on server and client debugging and retry? The 500 error doesn't give much info to go on.

                For client side - add:

                <mx:TraceTarget level="0" />

                This will add lots of output to the flashlog.txt file. And for the server side add this to the services-config.xml file under logging (level="Debug" is key):

                <target class="flex.messaging.log.ConsoleTarget" level="Debug" >
                <properties>
                <prefix>[Flex] </prefix>
                <includeDate>true</includeDate>
                <includeTime>true</includeTime>
                <includeLevel>true</includeLevel>
                <includeCategory>false</includeCategory>
                </properties>
                <filters>
                <pattern>Endpoint.*</pattern>
                <pattern>DataService.*</pattern>
                <pattern>Service.*</pattern>

                <pattern>Message.command.*</pattern>
                <pattern>Message.data.*</pattern>
                </filters>
                </target>
                • 5. Flex Data services not working in Oracle AS or OC4J 10.1.3
                  aBill Level 1
                  hi,

                  There is a MBean restriction on oc4j which makes fds fail to start. Please verify this by requesting the messagebroker servlet!
                  example
                  http://localhost:8888/samples/messagebroker/amf
                  You should see a blank page. If you see a mbean error, it is the issue which I mentioned.
                  Workaround: Go to bin/oc4j.cmd or oc4j and edit the java args
                  set JVMARGS=%OC4J_JVM_ARGS% -Doc4j.jmx.security.proxy.off=true
                  I also suggest to increase your heap
                  set JVMARGS=%OC4J_JVM_ARGS% -Xmx512m -Doc4j.jmx.security.proxy.off=true

                  William Chan
                  • 6. Re: Flex Data services not working in Oracle AS or OC4J 10.1.3
                    jeffreyjmark Level 1
                    William I added the params to JVMARGS and now I get the following when OC4J starts

                    C:\ProgramFiles\oc4j\bin>oc4j -start
                    Starting OC4J from C:\ProgramFiles\oc4j\j2ee\home ...
                    2006-10-17 10:26:06.138 ERROR SCH-13001 scheduler initialization failed
                    2006-10-17 10:26:06.158 WARNING oracle.j2ee.jmsrouter.RouterException: scheduler
                    initialization failed; nested exception is: java.lang.IllegalStateException: un
                    expected mbean count, 0


                    and when I try to access http://localhost:8888/samples/messagebroker/amf
                    I get the following

                    500 Internal Server Error
                    flex.messaging.config.ConfigurationException: Unable to create service 'flex.messaging.services.HTTPProxyService' for 'proxy-service' due to the following error: class 'null' could not be found in the classpath.
                    at flex.messaging.config.MessagingConfiguration.createServices(MessagingConfiguration.java:2 02)
                    at flex.messaging.config.MessagingConfiguration.configureBroker(MessagingConfiguration.java: 84)
                    at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:105)
                    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2231)
                    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4617)
                    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4541)
                    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2821)
                    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:740)
                    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
                    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
                    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
                    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
                    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java :260)
                    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler. java:230)
                    at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:3 3)
                    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHa ndler.java:831)
                    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.jav a:303)
                    at java.lang.Thread.run(Thread.java:595)
                    • 7. Re: Flex Data services not working in Oracle AS or OC4J 10.1.3
                      aBill Level 1
                      Hi,

                      I have the error and warning too, but the samples work. We are working on it to provide a fix. By the meanwhile, you should be able to get fds work. Can you remove the fds samples and redeploy it? Will get you update if any!
                      Thanks!
                      William Chan
                      • 8. Re: Flex Data services not working in Oracle AS or OC4J 10.1.3
                        jeffreyjmark Level 1
                        I removed and redeployed the samples and evrything works now the only problem now is the OC4J messsage

                        2006-10-17 10:26:06.138 ERROR SCH-13001 scheduler initialization failed
                        2006-10-17 10:26:06.158 WARNING oracle.j2ee.jmsrouter.RouterException: scheduler
                        initialization failed; nested exception is: java.lang.IllegalStateException: un
                        expected mbean count, 0
                        • 9. Re: Flex Data services not working in Oracle AS or OC4J 10.1.3
                          aBill Level 1
                          Hi,

                          I saw that too. I think it is only happened on 10.1.3.0.0, not 10.1.3.1 We are also contacting oracle to solve that issue!

                          William Chan
                          • 10. Re: Flex Data services not working in Oracle AS or OC4J 10.1.3
                            nmfacer Level 1
                            Hi,
                            I have also been having these issues with OC4J.
                            Did you find out which version of OC4J is needed, and has the issue been resolved with Oracle?

                            Many thanks,
                            Nathan