Mantis - Baratine
Viewing Issue Advanced Details
5569 minor always 10-25-13 18:36 11-25-13 17:57
nam  
ferg  
normal  
closed 0.8.0  
fixed  
none    
none 0.8.1  
0005569: ClassCastException with OpenJDK but not with Sun's JDK
nam: verified 2013-10-25

Steps to reproduce:
1. start resin
2. deploy app
3. store Employee into Store
4. edit Employee class (e.g. add class field)
5. redeploy app
6. get ClassCastException when calling method below:

    public Employee get() {
        logger.info("get");

        return (Employee) employeeStore.get(1L);
    }

[2013-10-25 11:32:13,563] {main@1} INFO ResinSystem: Resin Professional 7.0.s131025 (built Fri, 25 Oct 2013 05:09:37 PDT)
[2013-10-25 11:32:13,563] {main@1} INFO ResinSystem:
[2013-10-25 11:32:13,563] {main@1} INFO ResinSystem: Linux 2.6.32-358.23.2.el6.x86_64 amd64
[2013-10-25 11:32:13,563] {main@1} INFO ResinSystem: OpenJDK Runtime Environment 1.7.0_45-mockbuild_2013_10_23_08_18-b00, UTF-8, en
[2013-10-25 11:32:13,563] {main@1} INFO ResinSystem: OpenJDK 64-Bit Server VM 24.45-b08, 64, mixed mode, Oracle Corporation


java.lang.ClassCastException: com.ascentis.maui.storepoc.Employee cannot be cast to com.ascentis.maui.storepoc.Employee
        at com.ascentis.maui.storepoc.EmployeeService.get(EmployeeService.java:86)
        at com.caucho.ramp.proxy.SkeletonMethod_1.query(SkeletonMethod_1.java:157)
        at com.caucho.ramp.proxy.SkeletonMethod_1.query(SkeletonMethod_1.java:209)
        at com.caucho.ramp.message.QueryGatewayReadMessage_N.invokeQuery(QueryGatewayReadMessage_N.java:73)
        at com.caucho.ramp.mailbox.QueryItem.invoke(QueryItem.java:265)
        at com.caucho.ramp.mailbox.QueueMailbox$MessageConsumer.deliver(QueueMailbox.java:568)
        at com.caucho.ramp.mailbox.QueueMailbox$MessageConsumer.deliver(QueueMailbox.java:533)
        at com.caucho.env.actor.RingActorQueue.deliver(RingActorQueue.java:301)
        at com.caucho.env.actor.RingActorQueueResizing.deliver(RingActorQueueResizing.java:218)
        at com.caucho.env.actor.ActorWorkerSingleThread.runImpl(ActorWorkerSingleThread.java:87)
        at com.caucho.env.actor.ActorWorkerAdapter.runTask(ActorWorkerAdapter.java:85)
        at com.caucho.env.actor.ActorWorkerAdapter.run(ActorWorkerAdapter.java:167)
        at com.caucho.env.thread2.ThrottleExecutor$SpinTask.run(ThrottleExecutor.java:183)
        at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:217)
        at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:158)

Notes
(0006355)
ferg   
11-25-13 17:57   
baratine/7071