[ 
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.

Reply via email to