You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Marcin Skladaniec (JIRA)" <ji...@apache.org> on 2009/12/09 04:59:19 UTC

[jira] Created: (CAY-1331) hessian upgrade stops rop

hessian upgrade stops rop
-------------------------

                 Key: CAY-1331
                 URL: https://issues.apache.org/jira/browse/CAY-1331
             Project: Cayenne
          Issue Type: Bug
          Components: Cayenne Core Library
    Affects Versions: 3.0 beta 1
            Reporter: Marcin Skladaniec


I tried to upgrade to most recent hessian library (4.0.2). The Cayenne Hessian transport stopped working. On client connection is created ok, but once the client-server data channel is created following exception is thrown:

     [java] 13:45:27,866 [AWT-EventQueue-0] INFO  org.apache.cayenne.remote.hessian.HessianConnection :189 - Connecting to [admin:*******@http://delish.ish.com.au:8181/angel-server-cayenne] - dedicated session.
     [java] 13:45:28,428 [AWT-EventQueue-0] INFO  org.apache.cayenne.remote.hessian.HessianConnection :228 - Error establishing remote session. URL - http://delish.ish.com.au:8181/angel-server-cayenne; CAUSE - expected integer at 0x53 java.lang.String 
     [java] 13:45:28,430 [AWT-EventQueue-0] INFO  ish.oncourse.controller.LoginController :429 - Authentication failed.
     [java] org.apache.cayenne.CayenneRuntimeException: [v.3.0B1 Nov 03 2009 19:16:06] Error establishing remote session. URL - http://delish.ish.com.au:8181/angel-server-cayenne; CAUSE - expected integer at 0x53 java.lang.String (org.apache.cayenne.remote.RemoteSession)
     [java] 	at org.apache.cayenne.remote.hessian.HessianConnection.connect(HessianConnection.java:229)
     [java] 	at org.apache.cayenne.remote.hessian.HessianConnection.getServerEventBridge(HessianConnection.java:114)
     [java] 	at org.apache.cayenne.remote.ClientChannel.setupRemoteChannelListener(ClientChannel.java:256)
     [java] 	at org.apache.cayenne.remote.ClientChannel.<init>(ClientChannel.java:94)
     [java] 	at org.apache.cayenne.remote.ClientChannel.<init>(ClientChannel.java:76)
     [java] 	at org.apache.cayenne.remote.ClientChannel.<init>(ClientChannel.java:71)
     [java] 	at ish.oncourse.ContextManager.getDataChannel(ContextManager.java:81)
     [java] 	at ish.oncourse.ContextManager.getChannel(ContextManager.java:70)
     [java] 	at ish.oncourse.ContextManager.getNewDedicatedContext(ContextManager.java:107)
....
     [java] Caused by: com.caucho.hessian.io.HessianProtocolException: expected integer at 0x53 java.lang.String (org.apache.cayenne.remote.RemoteSession)
     [java] 	at com.caucho.hessian.io.Hessian2Input.error(Hessian2Input.java:2765)
     [java] 	at com.caucho.hessian.io.Hessian2Input.expect(Hessian2Input.java:2736)
     [java] 	at com.caucho.hessian.io.Hessian2Input.readInt(Hessian2Input.java:796)
     [java] 	at com.caucho.hessian.io.Hessian2Input.readObject(Hessian2Input.java:1621)
     [java] 	at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:253)
     [java] 	at $Proxy2.establishSession(Unknown Source)
     [java] 	at org.apache.cayenne.remote.hessian.HessianConnection.connect(HessianConnection.java:210)
     [java] 	... 48 more

as additional info: in our setup we are using basic authentication username and password


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAY-1331) hessian upgrade stops rop

Posted by "Marcin Skladaniec (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAY-1331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787901#action_12787901 ] 

Marcin Skladaniec commented on CAY-1331:
----------------------------------------

forgot to mention, server side there are no exceptions, from server point of view everything is ok.
this is client side only.

> hessian upgrade stops rop
> -------------------------
>
>                 Key: CAY-1331
>                 URL: https://issues.apache.org/jira/browse/CAY-1331
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Cayenne Core Library
>    Affects Versions: 3.0 beta 1
>            Reporter: Marcin Skladaniec
>
> I tried to upgrade to most recent hessian library (4.0.2). The Cayenne Hessian transport stopped working. On client connection is created ok, but once the client-server data channel is created following exception is thrown:
>      [java] 13:45:27,866 [AWT-EventQueue-0] INFO  org.apache.cayenne.remote.hessian.HessianConnection :189 - Connecting to [admin:*******@http://delish.ish.com.au:8181/angel-server-cayenne] - dedicated session.
>      [java] 13:45:28,428 [AWT-EventQueue-0] INFO  org.apache.cayenne.remote.hessian.HessianConnection :228 - Error establishing remote session. URL - http://delish.ish.com.au:8181/angel-server-cayenne; CAUSE - expected integer at 0x53 java.lang.String 
>      [java] 13:45:28,430 [AWT-EventQueue-0] INFO  ish.oncourse.controller.LoginController :429 - Authentication failed.
>      [java] org.apache.cayenne.CayenneRuntimeException: [v.3.0B1 Nov 03 2009 19:16:06] Error establishing remote session. URL - http://delish.ish.com.au:8181/angel-server-cayenne; CAUSE - expected integer at 0x53 java.lang.String (org.apache.cayenne.remote.RemoteSession)
>      [java] 	at org.apache.cayenne.remote.hessian.HessianConnection.connect(HessianConnection.java:229)
>      [java] 	at org.apache.cayenne.remote.hessian.HessianConnection.getServerEventBridge(HessianConnection.java:114)
>      [java] 	at org.apache.cayenne.remote.ClientChannel.setupRemoteChannelListener(ClientChannel.java:256)
>      [java] 	at org.apache.cayenne.remote.ClientChannel.<init>(ClientChannel.java:94)
>      [java] 	at org.apache.cayenne.remote.ClientChannel.<init>(ClientChannel.java:76)
>      [java] 	at org.apache.cayenne.remote.ClientChannel.<init>(ClientChannel.java:71)
>      [java] 	at ish.oncourse.ContextManager.getDataChannel(ContextManager.java:81)
>      [java] 	at ish.oncourse.ContextManager.getChannel(ContextManager.java:70)
>      [java] 	at ish.oncourse.ContextManager.getNewDedicatedContext(ContextManager.java:107)
> ....
>      [java] Caused by: com.caucho.hessian.io.HessianProtocolException: expected integer at 0x53 java.lang.String (org.apache.cayenne.remote.RemoteSession)
>      [java] 	at com.caucho.hessian.io.Hessian2Input.error(Hessian2Input.java:2765)
>      [java] 	at com.caucho.hessian.io.Hessian2Input.expect(Hessian2Input.java:2736)
>      [java] 	at com.caucho.hessian.io.Hessian2Input.readInt(Hessian2Input.java:796)
>      [java] 	at com.caucho.hessian.io.Hessian2Input.readObject(Hessian2Input.java:1621)
>      [java] 	at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:253)
>      [java] 	at $Proxy2.establishSession(Unknown Source)
>      [java] 	at org.apache.cayenne.remote.hessian.HessianConnection.connect(HessianConnection.java:210)
>      [java] 	... 48 more
> as additional info: in our setup we are using basic authentication username and password

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Closed: (CAY-1331) hessian upgrade stops rop

Posted by Andrey Razumovsky <ra...@gmail.com>.
This is definitely safer, although I find Caucho repo rather reliable. Also
we might want to move to a newer version when Caucho releases it :)

2009/12/24 Andrus Adamchik <an...@objectstyle.org>

>
> On Dec 24, 2009, at 3:30 PM, Andrey Razumovsky (JIRA) wrote:
>
>
>> BTW maybe we should start test against Hessian 4.0.2 internally? Andrus,
>> do you think new artifact should be deployed to Objectstyle repo or we can
>> add caucho repo to our pom?
>>
>
> I'd rather we stick it on objectstyle.org, otherwise we risk losing it
> when Caucho releases a new version or something.
>
> (makes me think I need to put a real repo manager out there, not just rely
> on the filesystem / Apache)
>
> Andrus
>
>


-- 
Andrey

Re: [jira] Closed: (CAY-1331) hessian upgrade stops rop

Posted by Andrus Adamchik <an...@objectstyle.org>.
On Dec 24, 2009, at 3:30 PM, Andrey Razumovsky (JIRA) wrote:

>
> BTW maybe we should start test against Hessian 4.0.2 internally?  
> Andrus, do you think new artifact should be deployed to Objectstyle  
> repo or we can add caucho repo to our pom?

I'd rather we stick it on objectstyle.org, otherwise we risk losing it  
when Caucho releases a new version or something.

(makes me think I need to put a real repo manager out there, not just  
rely on the filesystem / Apache)

Andrus


[jira] Closed: (CAY-1331) hessian upgrade stops rop

Posted by "Andrey Razumovsky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrey Razumovsky closed CAY-1331.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1M1

OK, I'm desperate to get an answer from Hessian team, so I've done a workaround which works with Hessian 3.0.x, 3.1 x and 4.0.x. Note that Hessian 3.2.x is binary incompatible with our code.
This is only committed to 3.1 branch, as the workaround will hopefully be removed after Caucho fixes the problem (Cayenne 3.0 will be frozen by that time). If you want to, you can pick svn patch and build custom version of Cayenne

BTW maybe we should start test against Hessian 4.0.2 internally? Andrus, do you think new artifact should be deployed to Objectstyle repo or we can add caucho repo to our pom?

> hessian upgrade stops rop
> -------------------------
>
>                 Key: CAY-1331
>                 URL: https://issues.apache.org/jira/browse/CAY-1331
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Cayenne Core Library
>    Affects Versions: 3.0 beta 1
>            Reporter: Marcin Skladaniec
>            Assignee: Andrey Razumovsky
>             Fix For: 3.1M1
>
>
> I tried to upgrade to most recent hessian library (4.0.2). The Cayenne Hessian transport stopped working. On client connection is created ok, but once the client-server data channel is created following exception is thrown:
>      [java] 13:45:27,866 [AWT-EventQueue-0] INFO  org.apache.cayenne.remote.hessian.HessianConnection :189 - Connecting to [admin:*******@http://delish.ish.com.au:8181/angel-server-cayenne] - dedicated session.
>      [java] 13:45:28,428 [AWT-EventQueue-0] INFO  org.apache.cayenne.remote.hessian.HessianConnection :228 - Error establishing remote session. URL - http://delish.ish.com.au:8181/angel-server-cayenne; CAUSE - expected integer at 0x53 java.lang.String 
>      [java] 13:45:28,430 [AWT-EventQueue-0] INFO  ish.oncourse.controller.LoginController :429 - Authentication failed.
>      [java] org.apache.cayenne.CayenneRuntimeException: [v.3.0B1 Nov 03 2009 19:16:06] Error establishing remote session. URL - http://delish.ish.com.au:8181/angel-server-cayenne; CAUSE - expected integer at 0x53 java.lang.String (org.apache.cayenne.remote.RemoteSession)
>      [java] 	at org.apache.cayenne.remote.hessian.HessianConnection.connect(HessianConnection.java:229)
>      [java] 	at org.apache.cayenne.remote.hessian.HessianConnection.getServerEventBridge(HessianConnection.java:114)
>      [java] 	at org.apache.cayenne.remote.ClientChannel.setupRemoteChannelListener(ClientChannel.java:256)
>      [java] 	at org.apache.cayenne.remote.ClientChannel.<init>(ClientChannel.java:94)
>      [java] 	at org.apache.cayenne.remote.ClientChannel.<init>(ClientChannel.java:76)
>      [java] 	at org.apache.cayenne.remote.ClientChannel.<init>(ClientChannel.java:71)
>      [java] 	at ish.oncourse.ContextManager.getDataChannel(ContextManager.java:81)
>      [java] 	at ish.oncourse.ContextManager.getChannel(ContextManager.java:70)
>      [java] 	at ish.oncourse.ContextManager.getNewDedicatedContext(ContextManager.java:107)
> ....
>      [java] Caused by: com.caucho.hessian.io.HessianProtocolException: expected integer at 0x53 java.lang.String (org.apache.cayenne.remote.RemoteSession)
>      [java] 	at com.caucho.hessian.io.Hessian2Input.error(Hessian2Input.java:2765)
>      [java] 	at com.caucho.hessian.io.Hessian2Input.expect(Hessian2Input.java:2736)
>      [java] 	at com.caucho.hessian.io.Hessian2Input.readInt(Hessian2Input.java:796)
>      [java] 	at com.caucho.hessian.io.Hessian2Input.readObject(Hessian2Input.java:1621)
>      [java] 	at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:253)
>      [java] 	at $Proxy2.establishSession(Unknown Source)
>      [java] 	at org.apache.cayenne.remote.hessian.HessianConnection.connect(HessianConnection.java:210)
>      [java] 	... 48 more
> as additional info: in our setup we are using basic authentication username and password

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CAY-1331) hessian upgrade stops rop

Posted by "Andrey Razumovsky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrey Razumovsky reassigned CAY-1331:
--------------------------------------

    Assignee: Andrey Razumovsky

Looks like bug in Hessian. Already posted a message to them..

> hessian upgrade stops rop
> -------------------------
>
>                 Key: CAY-1331
>                 URL: https://issues.apache.org/jira/browse/CAY-1331
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Cayenne Core Library
>    Affects Versions: 3.0 beta 1
>            Reporter: Marcin Skladaniec
>            Assignee: Andrey Razumovsky
>
> I tried to upgrade to most recent hessian library (4.0.2). The Cayenne Hessian transport stopped working. On client connection is created ok, but once the client-server data channel is created following exception is thrown:
>      [java] 13:45:27,866 [AWT-EventQueue-0] INFO  org.apache.cayenne.remote.hessian.HessianConnection :189 - Connecting to [admin:*******@http://delish.ish.com.au:8181/angel-server-cayenne] - dedicated session.
>      [java] 13:45:28,428 [AWT-EventQueue-0] INFO  org.apache.cayenne.remote.hessian.HessianConnection :228 - Error establishing remote session. URL - http://delish.ish.com.au:8181/angel-server-cayenne; CAUSE - expected integer at 0x53 java.lang.String 
>      [java] 13:45:28,430 [AWT-EventQueue-0] INFO  ish.oncourse.controller.LoginController :429 - Authentication failed.
>      [java] org.apache.cayenne.CayenneRuntimeException: [v.3.0B1 Nov 03 2009 19:16:06] Error establishing remote session. URL - http://delish.ish.com.au:8181/angel-server-cayenne; CAUSE - expected integer at 0x53 java.lang.String (org.apache.cayenne.remote.RemoteSession)
>      [java] 	at org.apache.cayenne.remote.hessian.HessianConnection.connect(HessianConnection.java:229)
>      [java] 	at org.apache.cayenne.remote.hessian.HessianConnection.getServerEventBridge(HessianConnection.java:114)
>      [java] 	at org.apache.cayenne.remote.ClientChannel.setupRemoteChannelListener(ClientChannel.java:256)
>      [java] 	at org.apache.cayenne.remote.ClientChannel.<init>(ClientChannel.java:94)
>      [java] 	at org.apache.cayenne.remote.ClientChannel.<init>(ClientChannel.java:76)
>      [java] 	at org.apache.cayenne.remote.ClientChannel.<init>(ClientChannel.java:71)
>      [java] 	at ish.oncourse.ContextManager.getDataChannel(ContextManager.java:81)
>      [java] 	at ish.oncourse.ContextManager.getChannel(ContextManager.java:70)
>      [java] 	at ish.oncourse.ContextManager.getNewDedicatedContext(ContextManager.java:107)
> ....
>      [java] Caused by: com.caucho.hessian.io.HessianProtocolException: expected integer at 0x53 java.lang.String (org.apache.cayenne.remote.RemoteSession)
>      [java] 	at com.caucho.hessian.io.Hessian2Input.error(Hessian2Input.java:2765)
>      [java] 	at com.caucho.hessian.io.Hessian2Input.expect(Hessian2Input.java:2736)
>      [java] 	at com.caucho.hessian.io.Hessian2Input.readInt(Hessian2Input.java:796)
>      [java] 	at com.caucho.hessian.io.Hessian2Input.readObject(Hessian2Input.java:1621)
>      [java] 	at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:253)
>      [java] 	at $Proxy2.establishSession(Unknown Source)
>      [java] 	at org.apache.cayenne.remote.hessian.HessianConnection.connect(HessianConnection.java:210)
>      [java] 	... 48 more
> as additional info: in our setup we are using basic authentication username and password

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.