Zend_AMF, RemoteObject problem

Hi there,
I have strange problem with FLEX 3. I'm using RemoteObject to call PHP script (Zend_AMF) and return array in AMF format. Technically everything works properly but it is slow. 18 000 records take 2 minutes. After few days of "try and fault" I changed code and instead of RemoteObject I used NetConnection to data from PHP. I received same result set with in 15 secs. I have tested few times jsuts changing 1 line of code in FLEX. With RemoteObject it is 10 times slower then with NetConnection.
As far as I know RemoteObject is preffered approach (newer) and NetConnection is for back compatibility reason only. Can someone explain that? Is teher any additional setup required for RemoteObject I am not aware of?
I am running Appache 2.2 as module on Vista and have Zand Framework 1.9.2 and PHP 5.3.0
Thank you

Richard Bates of flexandair.com figured it out. In my php.ini file, I had the memory limit set at 8M. After, changing it to 32M, it worked. Thank you, Richard!
-Laxmidi

Similar Messages

  • Air + Ipad + RemoteObject problem with session cookies

    I am making Air version for IPad of a Flex application.
    My flex application needs session from an secured enterprise proxy, without that session none remoteObject requests can pass the proxy and reach blazeDS.
    My solution for flex works fine: calling an enterprise  servlet at application´s startup to obtain a cookie session. I use a POST call to the servlet using URLRequest (sending the user and password parameters), the servlet responds with  a message with a session cookie, and from that point, without me having to code anything more, my flex application get that cookie with the session that automatically is loaded in my browser cookie stack, and that transparently is used from all my subsequents remoteObjects calls in the flex application.
    In my Adobe Air Ipad version, this just does not work, the session or is not storaged or is not attached with subsequent remoteObjects requests.
    - I´m forcing request.manageCookies = true
    - I´m working with the IOS simulator (Is there any difference for cookies with a real Ipad device?)
    - I´m using Flex 4.6.0, Air 3.5, IOS 6, Ipad 3, BlazeDS 4.0, Java 6 BackEnd.
    .. What´s the problem/difference with Air+Ipad from the flex version?

    Hi BalusC ,
    Thanks for your detailed response. I have a question about this comment you noted..
    "Terrible. Just keep the bean request scoped. "
    I changed the bean to request and now have this issue.
                <rich:dataGrid id="membersInZipcode" value="#{membersInZipcode.arrayListOfSearch4Member}"
                            var="membersInZipcode" columns="5" elements="20">                       
                <f:facet name="footer">
                    <rich:datascroller></rich:datascroller>
                </f:facet>
            </rich:dataGrid>
            </h:form>  I am using a request bean to hold the search parms that loads the bean. This works great.
    The problem is when I use the rich:datascroller for the next page.
    It goes back to the bean and the request scope bean is empty. This holds the search values.
    How do I put this back into the request after each process??
    Question 2..
    "Those settings only applies on the current request, i.e. the JSP file itself. Images are obtained by separate and independent requests. You need to set the headers on those requests as well. You can use a filter for this."
    I have never set a filter ...how do I do it? Do you have a link for an example of this filter setup?
    Thanks Again
    Phil

  • Problem in mapping remoteobject on server side

    Hello all
    I am trying to use remoteobjects in Flex and PHP via Zend_AMF.  I am having problem in mapping the data object in flex with the one in PHP.
    Here's my code....
    private function getAuthors(event:Event):void
         serviceRO = new RemoteObject();
         serviceRO.endpoint = "http://localhost/sampleproj/public/";
         serviceRO.destination = "zend";
         serviceRO.source = "MyService";
         serviceRO.addEventListener(FaultEvent.FAULT, faultListener);
         serviceRO.getData.addEventListener(ResultEvent.RESULT, resultListener);
    Now, here's the server side directory structure that works for me....
    webroot
    + sampleproj
    ++ public
    +++ index.php (index file for the webapp)
    +++ MyService.php (this is the service class)
    +++ VOAuthor.php (this is the Value Object class)
    Since the index file, and the service file and value object are all in same directory, it works.
    This is what DOESN'T work....
    webroot
    + sampleproj
    ++ services
    +++ MyService.php (this is the service class)
    ++ vos
    +++ VOAuthor.php (this is the Value Object class)
    ++ public
    +++ index.php (index file for the webapp)
    The error that I get is:
    Channel.Connect.Failed error
    Here's little of something that's going on in index.php
    <?php
    require_once ('C:/webtools/zendframework/zf/library/Zend/Amf/Server.php');
    require_once ( realpath(dirname(__FILE__) . '/../services/MyService.php') );
    $server = new Zend_Amf_Server();
    $server->setClass("MyService"); // adding the class to AMF server
    $server->setClassMap("VOAuthor", "VOAuthor"); // mapping the ActionScript VO to PHP VO
    echo($server->handle());
    ?>
    My guess is that in ActionScript code I have to do something with RemoteObject's endpoint.
    Can anybody please help me out with this?
    Thanks and Regards
    ShiVik

    The problem turned out to be in the php code.
    Here's how I changed it
    <?php
    require_once ('C:/webtools/zendframework/zf/library/Zend/Amf/Server.php');
    $server = new Zend_Amf_Server();
    // the following methods provide the lazy loading of services and value objects
    $server->addDirectory( realpath(dirname(__FILE__) . "/../services/") );
    $server->addDirectory( realpath(dirname(__FILE__) . "/../vos/") );
    echo($server->handle());
    ?>
    Earlier I wasn't taking into account the change of directories for service and value object files.
    Thanks and Regards
    ShiVik

  • Timming Problem with RemoteObject

    Hi,
    I am Sagar S. De, I have faced a problem with Flex
    DataService described below…
    I am using flex RemoteObject to get data from Database and
    then I am trying to set the data in ArrayCollection. But the data
    is not assigned to ArrayCollection. When I am debugging I have
    found that the ArrayCollection is assigned before data came from
    Database. How do I solve the problem?
    Here is a code snippet where I have faced the problem exactly
    (In alert box Result2 comes before Result1).
    package visualsqlbuilder.logic {
    import mx.collections.ArrayCollection;
    import mx.controls.Alert;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.remoting.mxml.RemoteObject;
    public class Table {
    public var tableNames : ArrayCollection = new
    ArrayCollection();
    /* RETURNS ALL TABLE NAMES FORM THE DATABASE OF THE
    SPECIFIED SCHEMA */
    public function getTables(connectionTypetring,
    schemaNametring) : ArrayCollection {
    var remoteGetTables : RemoteObject = new RemoteObject();
    remoteGetTables.destination = "DBDetails";
    remoteGetTables.addEventListener(ResultEvent.RESULT,
    resultGetTables);
    remoteGetTables.addEventListener(FaultEvent.FAULT,
    faultGetTables);
    remoteGetTables.showBusyCursor = true;
    remoteGetTables.getDBTables(connectionType, schemaName);
    //Executes Before data came from Database and show tableNames
    as blank ie. null
    Alert.show("Result 2: " + tableNames.toString());
    return tableNames;
    public function resultGetTables(event:ResultEvent) : void {
    var result : ArrayCollection = event.result as
    ArrayCollection;
    tableNames.removeAll();
    for(var i : int = 0; i<result.length; i++) {
    var string = result.getItemAt.toString();
    tableNames.addItem;
    //Executes later; ie. After getting data from Databse and
    show tableNames correctly
    Alert.show("Result 1: " + tableNames.toString());
    public function faultGetTables(event:FaultEvent) : void {
    mx.controls.Alert.show(event.fault.toString());

    You need to realize that Flex does most of the asynchronous,
    that means that the function
    remoteGetTables.getDBTables(connectionType, schemaName); will
    returns immediately.
    So if you want to place an Alert somewhere, do it in your
    response function where you currently show your Result 1.
    It's currently hard to understand what you really want to do
    with your dataset. But further processing of real data needs to be
    done in the function resultGetTables or other functions executed
    when the result comes back.
    Ries

  • Problems with RemoteObject and security sandbox errors

    I'm having trouble with an AS3 AMF RemoteObject request that is hosted on Google App Engine. I have a crossdomain.xml file in the root of the domain, and also one at the remoting endpoint.
    Here are the contents of the root crossdomain.xml:
    <?xml version="1.0"?>
    <cross-domain-policy>
    <site-control permitted-cross-domain-policies ="all"/>
    <allow-access-from domain="*.appspot.com"/>
    <allow-access-from domain="*.{appid}.appspot.com"/>
    <allow-access-from domain="*.{appid}.com"/>
    <allow-access-from domain="*.{appid}.org"/>
    </cross-domain-policy>
    I have replaced my application's ID with {appid}. In the endpoint crossdomain.xml, it says the exact same thing, except it omits the <site-control> tag.
    Loading the swf file and testing it on my machine works just fine... I think that may have something to do with me having the debugger version of Flash Player. When I push it up to App Engine to make it public, other clients access it and get a Client.Error.MessageSend Channel.Security.Error error Error #2048 url: http://05-alpha.latest.{appid}.appspot.com/_rpc/data.
    I am using Flex 4 beta, and the App Engine Python runtime. I have tried full wildcard in the crossdomain, and even accessing the data endpoint at a relative URL so as to avoid this error.
    Someone please help! Thanks in advance.

    The error happens regardless of where I access it (the beta URL, the production URL, etc).
    That's literally all the actionscript code for the remote object... I've included an extended snippet below, but I have no idea why the SWF would be trying to access localhost.
    Even on my development machines (where it seems to work), there's nothing running on the host/port combo it's trying to access.
    Extended AS3:
    FatCatStage.mxml:
    <s:RemoteObject id="dataService" showBusyCursor="false" destination="data" endpoint="/_rpc/data" />
    main.mxml:
    <fx:Script>
    <![CDATA[
                   fatCatStage.dataService.RetrieveFirstGraph.addEventListener( ResultEvent.RESULT, fatCatStage.graphInitialize );
    fatCatStage.dataService.RetrieveFirstGraph();
    public function doGraphChange(event:ResultEvent):void
    if(event.result.result!='failure')
    var GraphData:Object = event.result.response;
    this.lastGraphData = GraphData;
    fatCatViz.removeAll()
    var root:GenericSprite = fatCatViz.addNodeElement(GraphData.object,null,this.center,GraphData.object.key);
    for each ( var Connection:Object in GraphData.object.connections )
    this._recursiveGraph(root, Connection, center, 3);
    else
    Alert.show('There was an internal graphing error. Please try again.');
    fatCatViz.updateInternalStructure();
    this.intervalSet = setInterval(timedReLayout,500);
    ]]>
    </fx:Script>
    That's all of the relevant actionscript for the entire application. Where is it referencing localhost?

  • Problems with RemoteObject?

    I've got an application that uses RemoteObjects, built for web.  I'm porting it to AIR now, but the RemoteObject code which works just fine built for web is failing when built for AIR.
    When I invoke a method on a RemoteObject, I get a fault with the following error condition:
    faultDetail    "Channel.Connect.Failed error Invalid URL url: 'null'"
    What's strange is that I have verified that the URL going into the Channel.  And as I said, this code works perfectly when built for web.
    Using Flex 4 with the latest AIR SDK.
    I've tried setting the endpoint directly, which gives the same result.  Also please note I'm not using MXML to create my RO's, I'm doing it all in AS3 using ChannelSets and all that.
    Any ideas what's wrong?
    Thanks!
    Craig

    The error happens regardless of where I access it (the beta URL, the production URL, etc).
    That's literally all the actionscript code for the remote object... I've included an extended snippet below, but I have no idea why the SWF would be trying to access localhost.
    Even on my development machines (where it seems to work), there's nothing running on the host/port combo it's trying to access.
    Extended AS3:
    FatCatStage.mxml:
    <s:RemoteObject id="dataService" showBusyCursor="false" destination="data" endpoint="/_rpc/data" />
    main.mxml:
    <fx:Script>
    <![CDATA[
                   fatCatStage.dataService.RetrieveFirstGraph.addEventListener( ResultEvent.RESULT, fatCatStage.graphInitialize );
    fatCatStage.dataService.RetrieveFirstGraph();
    public function doGraphChange(event:ResultEvent):void
    if(event.result.result!='failure')
    var GraphData:Object = event.result.response;
    this.lastGraphData = GraphData;
    fatCatViz.removeAll()
    var root:GenericSprite = fatCatViz.addNodeElement(GraphData.object,null,this.center,GraphData.object.key);
    for each ( var Connection:Object in GraphData.object.connections )
    this._recursiveGraph(root, Connection, center, 3);
    else
    Alert.show('There was an internal graphing error. Please try again.');
    fatCatViz.updateInternalStructure();
    this.intervalSet = setInterval(timedReLayout,500);
    ]]>
    </fx:Script>
    That's all of the relevant actionscript for the entire application. Where is it referencing localhost?

  • Problem with SQL Insert

    Hi
    I am using Flex to insert data through remoteobject and using
    SAVE method generated from CFC Wizard.
    My VO contains the following variables where id has a default
    value of 0 :
    public var id:Number = 0 ;
    public var date:String = "";
    public var accountno:String = "";
    public var debit:Number = 0;
    public var credit:Number = 0;
    id is set as the primary key in my database.
    I have previously used MySQL which automatically generates a
    new id if I either omitted the id value in my insert statement or
    use 0 as the default value.
    However, now I am using MS SQL Server and the insert
    generated this error:
    Unable to invoke CFC - Error Executing Database Query.
    Detail:
    [Macromedia][SQLServer JDBC Driver][SQLServer]Cannot insert
    explicit value for identity column in table 'Transactions' when
    IDENTITY_INSERT is set to OFF.
    Strange thing is that I dont see this problem with another
    sample application. I compared with that application (it has the
    same VO with default value of 0 for id) and everything looks
    similar so I can't understand why I have this error in my
    application.
    This is SQL used to create the table:
    USE [Transactions]
    SET ANSI_NULLS ON
    SET QUOTED_IDENTIFIER ON
    SET ANSI_PADDING ON
    CREATE TABLE [dbo].[Transactions](
    [id] [int] IDENTITY(1,1) NOT NULL,
    [date] [datetime] NULL,
    [accountno] [varchar](100) NULL,
    [debit] [int] NULL,
    [credit] [int] NULL,
    CONSTRAINT [PK_Transactions] PRIMARY KEY CLUSTERED
    [id] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE =
    OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON,
    ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    Has anyone encountered this problem before with insert
    statements dealing with a unique id (with MS SQL Server)?

    Change "addRecords =
    connection.prepareStatement("
    to "addRecords =
    connection.preparedStatement("
    -BIGD

  • Problem with RMI in ADB T75 receiver

    Hi:
    I have a problem with an xlet that uses the RMI (IXC) API in the ADB T75 development settop box.
    I export an object (of type MyObject) implementing the Remote interface, and, later, I import it with no problem.
    The problem appears after importing the object, when I try to cast the imported object to the type of the exported object (type MyObject) for using it (example on page 371 of the marvelous Morris book).
    If I import the object in the same xlet where I export it (a little bit useless), the process works fine as the class of the imported object (remoteObject.getClass().getName()) is the same of the exported object.
    But, when importing the object from another xlet, doing the cast fails (ClassCastException). This time, remoteObject.getClass().getName() returns the name "stub_MyObject_ca_ba" ( "ca" is the OrgID and "ba" is the AppID of the exporting xlet). That is, the middleware is returning to the importing xlet an object of the stub class.
    The ClassCastException seems to be right, as the the superclass of the "stub_MyObject_ca_ba" is directly java.lang.Object. That is, the types of the exported object (MyObject) and the returned object (stub_MyObject_ca_ba) are not in the same hierarchy.
    Has anyone one explanation or solution?
    May be a bug of the ADB T75 settop box?
    Thanks in advance for your comments
    Liga0068

    Problem solved. This was posted by Pretorius_594 on Feb 27, 2004.
    Sorry for bothering.
    The problem was due to that I was doing a cast to the original object (MyObject). That is:
    remoteObject = lookup(...)
    MyObject importedobject = (MyObject)remoteObject.
    I saw such an example in the Morris and Smith-Chaigneau book, but, definetively, that code seems not to work (at least in the ADB receiver)
    Th right solution is to extend the Remote interface (MyRemote) and to cast the importedobject to that type. That is:
    public interface MyRemote extends Remote ...
    remoteObject = lookup(...)
    MyRemote importedobject = (MyRemote)remoteObject.
    Liga0068

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • How to stop a running remoteobject in flex?

    Hi,
    I'm using Flex+Blazeds+Java to do my project, but now I met a big problem: when I query the database, I use remoteobject to call the Java method to do this. But usually the query takes a long time, so during the waiting time , I hope I can cancel the query operation, or when I begin the next query, it can cancel the last query operation automatically. Is there any way to do this? If yes, How?
    Thanks a lot!

    Did you ever solve this problem ? If so please share the solution.

  • Creation of RemoteObject

    Hi,
    I have a serious problem with the instanciation of my RemoteObject.
    The strange thing is that this instanciation work fine until i regenerate my stub and skeleton. Moreover, i have no way to print trace or debug my application. So, I would like to know all the errors that the instanciation of a RemoteObject can generate or any pointer.
    my failing code is similar to:
    MyRemoteObject mmyRemote = new MyRemoteObject() ;
    Thanks for your help.
    Best regards guiguch.

    When you create an instance of an object, but dont bind it, then you can never hope to see it remotely, since its not in the registry. Strictly speaking, if you do bind it, then you are really getting an instance of the stub, which makes the call for you to the skeleton. By and by a reference to what you bound will be finally obtained. The exact details of an RMI call can be explained, and it had to do with getting references to the stubs themselves for sure.

  • Using mx:RemoteObject

    Hi There,
    I was trying "Daniel Harfleet's" sample example , where he
    is showing how to integrate Java and Flex using a simple RPC
    example. I followed the steps, but I am getting an error on the
    Server console.
    My Flex application is deployed on JBoss server 4.0.5.
    I've made sure that the java class is compiled and is in
    placed in the WEB-INF/classes directory of my Flex application.
    This is how the remoteobject tag looks in my sample.mxml
    file
    <mx:RemoteObject
    id="echoRO"
    destination="echoService"
    fault="handleFault(event)"
    result="handleResult(event)" />
    ============
    This is how the entry in the remote-config.xml looks
    <default-channels>
    <channel ref="my-amf"/>
    </default-channels>
    <destination id="echoService">
    <properties>
    <source>fdsweb.EchoService</source>
    <scope>application</scope>
    </properties>
    </destination>
    ==========
    So, when I try to access the application deployed in the JBoss,
    it throws the following error on the console.
    22:59:59,484 INFO [STDOUT] [Flex] [ERROR] Exception when
    invoking service: remo
    ting-service
    with message: Flex Message
    (flex.messaging.messages.RemotingMessage)
    operation = echo
    clientId = 4A82830C-BC09-C972-DEFB-361367B86F0E
    destination = echoService
    messageId = C4DFD400-5B97-AB88-DFD7-80D2BD155FFC
    timestamp = 1170392399484
    timeToLive = 1170392399484
    body = null
    hdr(DSEndpoint) = my-amf
    exception: flex.messaging.MessageException: No destination
    'echoService' exist
    s in service flex.messaging.services.RemotingService
    22:59:59,500 INFO [STDOUT] [Flex] [ERROR] Error handling
    message: flex.messagin
    g.MessageException: No destination 'echoService' exists in
    service flex.messagin
    g.services.RemotingService
    incomingMessage: Flex Message
    (flex.messaging.messages.RemotingMessage)
    operation = echo
    clientId = 4A82830C-BC09-C972-DEFB-361367B86F0E
    destination = echoService
    messageId = C4DFD400-5B97-AB88-DFD7-80D2BD155FFC
    timestamp = 1170392399484
    timeToLive = 1170392399484
    body = null
    hdr(DSEndpoint) = my-amf
    errorReply: Flex Message
    (flex.messaging.messages.ErrorMessage)
    clientId = null
    correlationId = C4DFD400-5B97-AB88-DFD7-80D2BD155FFC
    destination = echoService
    messageId = 4A828333-CC08-81C5-E391-08512AA44718
    timestamp = 1170392399500
    timeToLive = 0
    body = null
    code = Server.Processing
    message = No destination 'echoService' exists in service
    flex.messaging.ser
    vices.RemotingService
    details = null
    rootCause = null
    body = null
    extendedData = null
    Could someone , please let me know as to what I am missing.
    -Regards

    As it seems, your destination is configured so it's likely to
    be a configuration problem.
    1) Are you sure your JBoss has been properly configured? This
    document shows how:
    http://www.adobe.com/support/documentation/en/flex/2/install.html#jboss
    2) An FDS application is composed by several XML files, JAR
    files and so son... To ensure your application will have all
    packages needed, it's recommended to start it from samples.war
    provided in FDS instalation. Are you doing it? I mean, don't start
    your application from scratch, append your destination
    configuration to an existing remoting-config and ad your classes to
    the classes directory
    3) If it doesn't work let me know

  • Problem in Blazeds with Jboss Clustering ( Mod_JK with SSL )

    Hi,
         We are running our flex application in jboss clustering environment with the help of Apache mod_jk(Apache Web server as front end with mod_ssl enabled). We are using the SecureAMFChannel as we deploy the application in SSL. We use the RemoteObject for communicating with Java.
    The Application is running fine when we have only one node of JBoss. But once we add one more node to the cluster the application throws the following exception .
    Duplicate HTTP-based FlexSession error: A request for FlexClient 'FDCA49A7-9317-4D8A-881F-9248B1136E7A' arrived over a new FlexSession 'C9C563B8266A03C2207C00796CD7DFF1', but FlexClient is already associated with  FlexSession '8A328320F5C530D55E94568996A1B552', therefore it cannot be associated with the new session.
    As I am maintaing the session in the server, I need to use the JBoss cluster for session replication. I heard that flex clustering is not needed as we have mod_jk and it will do all the stuff for us.
    I checked with simple application without any session data also then too I faced the same problem.
    After the very first login, I can see 2 session created simultaneously and destroyed. I checked the application whether it calls twice before the session is created, but it is calling only once.
    Also when application connects with server2 and if I down the server2 my flex application throws the error that the server is not found, It is not detecting the other server.But it works once I refresh the browser.
    Application Environment Details
    JBoss 6
    Blaze Ds 4.5
    Apache Web server 2.2.21
    Mod_JK   1.2.32
    Mod_SSL 2.8.31
    Thanks,
    Suresh T
    I enabled the sticky session in Mod_jk .
    It is working when the connection is not secure(http) in both apache web server and jboss web server ). But when the connection is https the above problem is happening .
    Message was edited by: suresh.thirumurugan

    Hi,
     Thanks for your info.
      It worked for me as well.
    Thanks,
    Prasad
    On 6/26/08,
    Matthieu Labour <
    [email protected]> wrote:
    A new message was posted by Matthieu Labour in
    Configuration and Getting Started Discussion --
      Problem with configuring BlazeDS with JBOSS
    You might want to download the following tutorial
    http://sebastien-arbogast.com/2008/04/10/flex-spring-and-blazeds-the-full-stack/
    it works on jboss
    Best
    Matt
    View/reply at
    Problem with configuring BlazeDS with JBOSS
    Replies by email are OK.
    Use the
    unsubscribe form to cancel your email subscription.

  • Error connecting using RemoteObject

    I've developed a simple flex app for listing data in a grid,
    which works just fine locally when the remoteobject call is made to
    the cfc. However, once the file was moved to a testing server, I
    receive the following error when the object call fires off:
    [RPC Fault faultString="Send failed"
    faultCode="Client.Error.MessageSend"
    faultDetail="Channel.Connect.Failed error
    NetConnection.Call.BadVersion: : url:
    http://www.website.edu/flex2gateway/
    The site does have a firewall in place, but the call to the
    page is being made from a pc inside the network. Are there any
    specific cf config files that need modified to allow the AMF
    message to get through?
    Thanks!

    Hi
    1.May be JCO's are not configured properly.Check your JCO's are up and running by pinging it in ContentAdmin->WebDynpro.
    2. its a simple problem of connection pooling. In your JCO connection settings change the maximum connections to 200. It will work.it  is good After you execute the Model please release the connection. The reason you are getting this JCO Client null is because the connection is not getting released.
    When you say the following code
    wdContext.current<BAPI_INPUT>.modelObject().execute();
    //Get the reference to the model and release the connection
    If your Model name is say "MO_Mymodel"  then
    MO_Mymodel model = (MO_Mymodel) WDModelFactory.getModelInstance(MO_Mymodel.class);
    model.disconnectIfAlive();
    This should release your connections. Also ensure you release the connections even if there is a exception :).
    Please refer the below forum also:
    Error connection using  JCO.Client :null
    JCO.Client: null
    com.sap.mw.jco.JCO$Exception: (102) JCO_ERROR_COMMUNICATION: JCO.Client not
    Thanks
    susmita

  • Problem in using the Unreferenced interface

    I let my RemoteObject to implement the Unreferenced interface to handle with the unexpectly abort client. but I have a question about how to use such interface in my remote object.
    My first thought about it is simple :
    class RemoteObject extends UnicastRemoteObject implements Unreferenced {
        public long lock(final int recno) {
            this.lockedRecNo = recno;
            this.lockCookie = LockManager.getInstance().lock(recno);
            return lockcookie;
        public void unreferenced() {
            this.unlock(this.lockedRecNo, this.lockCookie);
    }I think it is absolutely wrong under such scenario, since the unreference does not take effect immediately and we surely have only one RemoteObject, during this time. someother client may lock on other records, When performing the unreferenced, we may work on the incorrect record number and cookie.
    Then I improved it as
    class RemoteObject extends UnicastRemoteObject implements Unreferenced {
        private HashMap lockedRecord = new HashMap();
        public long lock(final int recno) {
            this.lockedRecNo = recno;
            this.lockCookie = LockManager.getInstance().lock(recno);
            lockedRecord.put(new Integer(recno), new Long(lockCookie))
            return lockcookie;
        public void unlock(final int recno, final int cookie) {
            LockManager.getInstance().unlock(recno, cookie);
            lockedRecord.remove(new Integer(recno));
        public void unreferenced() {
            //get all that haven't released lock from the HashMap
            //do a loop
            **loop** {
            this.unlock(this.lockedRecNo, this.lockCookie);
        }There are still some problems. maybe when we are executing the unreference, there is a client who are holding a lock and doing the update action, then we may wrongly release his lock.
    I can not figure out a good enough way to handle this. can any one help me on this. thx in advance.

    Hi.. Actually, it is not part of the[b] real world problem, I just want to provide a way to clean up the staleness record. If considering this. do you guys thing the approach 2 of the first posting is a way(maybe not a good way), except I should change the hashmap to hashtable to avoid the concurrent accessing... appreciate for any reply from u.

Maybe you are looking for

  • MTL_SECONDARY_LOCS_INTERFACE... Import Program

    Hi all, I am working on Inventory Stock Locators Conversion, While exploring the interface table & Import program, I found the below statement (from Manufacturing API, Page no. 195) "You may also put in details about other interface tables not used b

  • Why is my search 1000% slower after re-saving a PDF? (Acrobat 9 Pro Extended)

    I purchased and downloaded the PDF version of "Javascript: the Definitive Guide" (Flanagan, David, O'Reilly Press, 5th Ed., 2006). When I first started using the PDF, searches would yield results instantaneously. After making some notations and highl

  • 11.7.700.169 exe won't run

    I'm trying to install 11.7.700.169 on 64-bit Windows 7. I've tried via Chrome, IE and Firefox. Each time I download and open the exe file, but when I click "run" nothing happens. I know in Chrome there is that Technote about it already being part of

  • Please help with corrupted iPod :(

    Hello everyone, I was listening to music using iTunes on my computer when I suddently got the blue screen of death. I disconnected the iPod as I was restarting the computer. Now my Ipod says it's EMPTY, no music or videos but still have my contacts.

  • How do I get to GUI environmet?

    Just let you know, I am a first timer... I installed Arch Linux (Don't Panic) on my desktop and installed successfully, The thing is after installation and reboot, I am at bash command line environment and can not do(dont know) anything. I thought in