1 Reply Latest reply on Jan 22, 2010 11:45 PM by VikramIyer

    Exception when starting flex apache module

    amsicora
      Hi all,
      I'm trying to install the flex apache module on a server but I get an exception when I start apache.

      This are the info relating to my system:

      [root@reilabs-www adobe]# uname -a
      Linux server 2.6.20-1.2952.fc6 #1 SMP Wed May 16 17:59:13 EDT 2007 i686 i686 i386 GNU/Linux
      [root@server adobe]# java -version
      java version "1.6.0_06"
      Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
      Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
      [root@rserver adobe]# /opt/adobe/flex_sdk_3/bin/mxmlc -version
      Version 3.0.0 build 477

      I get this when I start apache with: service httpd start:
      [root@server]# Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(Unknown Source)
      at flex2.tools.apache.RemoteApplication.initRequest(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
      at sun.rmi.transport.Transport$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Unknown Source)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      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 flex2.tools.apache.RemoteApplication_Stub.initRequest(Unknown Source)
      at flex2.tools.apache.LocalApplication.compile(Unknown Source)
      at flex2.tools.apache.Client.main(Unknown Source)

      I followed instruction and I installed the flex_sdk_3 in /opt/adobe/flex_sdk_3, installed the flex apache module in the same dir, then I edited the compiler.sh file setting the correct path to the flex home dir, then I placed in /etc/httpd/conf/htttpd.conf these lines:

      LoadModule flex_module /opt/adobe/flex_sdk_3/modules/apache/linux/22/mod_flex.so
      AddHandler flex .mxml

      Can you hint about a possible solution to this problem?

      Many thanks in advance, best regards.