creating long expressions

From: Marcin Skladaniec (marci..sh.com.au)
Date: Tue Dec 05 2006 - 20:56:14 EST

  • Next message: Marcin Skladaniec: "Re: creating long expressions"

    Hi
    I create a really long org.cayenne.exp.Expression. The longest I
    created so far, had 63000 characters as string. The problem is that
    after reaching certain (not sure what size, need to test more) size I
    get:

    Exception in thread "Thread-8"
    org.apache.cayenne.CayenneRuntimeException: [v.3.0-incubating-
    SNAPSHOT ] Remote error. URL - http://localhost:8181/angel-server-
    cayenne
             at
    org.apache.cayenne.remote.hessian.HessianConnection.doSendMessage
    (HessianConnection.java:145)
             at org.apache.cayenne.remote.BaseConnection.sendMessage
    (BaseConnection.java:73)
             at org.apache.cayenne.remote.ClientChannel.send
    (ClientChannel.java:276)
             at org.apache.cayenne.remote.ClientChannel.onQuery
    (ClientChannel.java:110)
             at org.apache.cayenne.util.ObjectContextQueryAction.runQuery
    (ObjectContextQueryAction.java:282)
             at org.apache.cayenne.CayenneContextQueryAction.execute
    (CayenneContextQueryAction.java:51)
             at org.apache.cayenne.CayenneContext.onQuery
    (CayenneContext.java:347)
             at org.apache.cayenne.CayenneContext.performQuery
    (CayenneContext.java:336)
             at ish.oncourse.cayenne.CayenneContext.performQuery
    (CayenneContext.java:152)
             at
    ish.oncourse.print.ProfitLossPrintableObject.getTransactionsFromRecords(
    ProfitLossPrintableObject.java:180)
             at ish.oncourse.controller.PrintController$1.construct
    (PrintController.java:263)
             at ish.oncourse.view.SwingWorker$2.run(SwingWorker.java:117)
             at java.lang.Thread.run(Thread.java:613)
    Caused by: java.lang.StackOverflowError
             at java.util.IdentityHashMap.hash(IdentityHashMap.java:283)
             at java.util.IdentityHashMap.get(IdentityHashMap.java:313)
             at com.caucho.hessian.io.HessianOutput.addRef
    (HessianOutput.java:799)
             at com.caucho.hessian.io.JavaSerializer.writeObject
    (JavaSerializer.java:134)
             at com.caucho.hessian.io.HessianOutput.writeObject
    (HessianOutput.java:317)
             at com.caucho.hessian.io.JavaSerializer
    $FieldSerializer.serialize(JavaSerializer.java:242)
             at com.caucho.hessian.io.JavaSerializer.writeObject10
    (JavaSerializer.java:175)
             at com.caucho.hessian.io.JavaSerializer.writeObject
    (JavaSerializer.java:157)
             at com.caucho.hessian.io.HessianOutput.writeObject
    (HessianOutput.java:317)
             at com.caucho.hessian.io.JavaSerializer
    $FieldSerializer.serialize(JavaSerializer.java:242)
             at com.caucho.hessian.io.JavaSerializer.writeObject10
    (JavaSerializer.java:175)
             at com.caucho.hessian.io.JavaSerializer.writeObject
    (JavaSerializer.java:157)

    It looks like hessian is failing to serialise the Expression. I'm I
    right ? If so I'll post them a bug report.

    Marcin



    This archive was generated by hypermail 2.0.0 : Tue Dec 05 2006 - 20:57:38 EST