J2R5M3 / evolutionchamber

Automatically exported from code.google.com/p/evolutionchamber
0 stars 0 forks source link

java.io.InvalidClassException raised on first press of [Start] #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the application
2. Enter 1 ultralisk as the target state - don't change other values
3. Press [start]

What is the expected output? What do you see instead?
I expect the application to run without raising exceptions in the background.
Instead the following stack trace was printed after pressing [Start] (the 
calculation followed correctly)

EcActionBuildQueen
EcActionBuildSpawningPool
EcActionBuildDrone
EcActionExtractorTrick
EcActionBuildHatchery
EcActionBuildOverlord
EcActionWait
EcActionBuildUltralisk
EcActionBuildUltraliskCavern
EcActionBuildHive
EcActionBuildInfestationPit
EcActionBuildLair
EcActionBuildExtractor
java.io.InvalidClassException: com.fray.evo.action.build.EcActionBuildSpawningPo
ol; local class incompatible: stream classdesc serialVersionUID = -4903876851297
953652, local class serialVersionUID = -8791385094769414081
        at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
        at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
        at java.io.ObjectInputStream.readClassDesc(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at java.util.ArrayList.readObject(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at java.util.ArrayList.readObject(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at com.fray.evo.EvolutionChamber.loadSeeds(EvolutionChamber.java:252)
        at com.fray.evo.EvolutionChamber.loadOldBuildOrders(EvolutionChamber.jav
a:216)
        at com.fray.evo.EvolutionChamber.spawnEvolutionaryChamber(EvolutionChamb
er.java:144)
        at com.fray.evo.EvolutionChamber.go(EvolutionChamber.java:88)
        at com.fray.evo.ui.swingx.EcSwingX.restartChamber(EcSwingX.java:800)
        at com.fray.evo.ui.swingx.EcSwingX.access$8(EcSwingX.java:789)
        at com.fray.evo.ui.swingx.EcSwingX$61.actionPerformed(EcSwingX.java:735)

        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

Tested on v0008 Windows XP SP3 java:
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)

Please use labels and text to provide additional information.
I had a etc directory in the application cwd with data from previous builds. 
Maybe that was the cause as a second attempt to reproduce the problem failed.

Original issue reported on code.google.com by netpr...@gmail.com on 20 Oct 2010 at 8:02

GoogleCodeExporter commented 8 years ago
Fixed.

Original comment by Frit...@gmail.com on 21 Oct 2010 at 1:27

GoogleCodeExporter commented 8 years ago
Issue still present in v0013. Results of a first run (target 7 mutalisk + 1 
flyer attack in final tab, 5 roaches in WP3):

EcActionBuildQueen
EcActionBuildSpawningPool
EcActionBuildDrone
EcActionExtractorTrick
EcActionBuildHatchery
EcActionBuildOverlord
EcActionWait
EcActionUpgradeFlyerAttacks1
EcActionBuildSpire
EcActionBuildLair
EcActionBuildExtractor
EcActionBuildMutalisk
EcActionBuildRoach
EcActionBuildRoachWarren
java.io.InvalidClassException: com.fray.evo.action.EcAction; local class incompa
tible: stream classdesc serialVersionUID = 6593466198612627333, local class seri
alVersionUID = -5068685159823504387
        at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
        at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
        at java.io.ObjectInputStream.readClassDesc(Unknown Source)
        at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
        at java.io.ObjectInputStream.readClassDesc(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at java.util.ArrayList.readObject(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at java.util.ArrayList.readObject(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at com.fray.evo.EvolutionChamber.loadSeeds(EvolutionChamber.java:290)
        at com.fray.evo.EvolutionChamber.loadOldBuildOrders(EvolutionChamber.jav
a:237)
        at com.fray.evo.EvolutionChamber.spawnEvolutionaryChamber(EvolutionChamb
er.java:148)
        at com.fray.evo.EvolutionChamber.go(EvolutionChamber.java:90)
        at com.fray.evo.ui.swingx.EcSwingX.restartChamber(EcSwingX.java:821)
        at com.fray.evo.ui.swingx.EcSwingX.access$8(EcSwingX.java:810)
        at com.fray.evo.ui.swingx.EcSwingX$63.actionPerformed(EcSwingX.java:753)

        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
2b8c73dd23a015695d22b04db323b397886bc24246b5bb05609585cc193cc348c0acd8b82639bb4c
81c502
91247212b836b564c3027b8642d8c136501b210a11c40a347a232d8940c2895b7ac42a115461c778
a130a1
2b59892061c637256102423150a1b3872757d653c847b61c7051ccb813497b68182ab3942bda2957
a39ab7
2b56292021c637256302428b5001ba872b57d656c8430b1c74b1ccb843497b66182ab594cbda2957
a39ca7
999c53425d7d1c2c31d22cdab3b7c588220c87796c30b6167c5bcc4243492b68183ab8942db629b7
a394b7
999c53425d7d1c2c31d22cdab3b7c588220c87796c30b6167c5bcc4240c2895b7ac4a2115461c575
a130a1
999c53425d7d1c2b31d22cdab3b7cc88220c87796c30b6167c50cc4240c2895b7ac4a211946ab896
3d952d
2556292127c23725630242832801ba292257d956cc490b1cd4b1ccb6c6897bc7882ab52c2bda2937
a39ab7
2556292127c23725630242832801ba292957d9568c490b1cd4b6ccb6c6897bc78822b52c2bda2937
a393b7
2555292127c23725680242832801ba292987d9568c490b1cd4b6ccb6c2897bc7a822b52c2bda2937
a3c3b7
6b2c992021c657bc63022cd0a3b71508225c87c95c30bb1c74b1c7b843497b140c695513b7bc1a8d
703ca6
2556292127c23725630242832801ba292297d956cc490b1cd481ccb6c6897bc7882ab52c2bda2987
a39ab7
6b2c9b209196572552022cdab3b7c565225c87796c3bb1c74b1ccb84349bb140c622b52c2bda2937
a393b7
2556292127c23725630242832801ba292297d956cc490b1cd481ccb6c6897bc7ab02b52c2bd72937
a3c3b7
6b2c940091965725520223dab3b7c56522bc87796c3bb1c75b8ccb8b349bb140c622b52c2b9a2937
a2a3b7
252c992021c6572563022cdab3b7c508225c87796c3bb1c74b1c6086c6897bc78895b52c2bda29b7
a393b7
642c9b209196572552022cdab367c525222c87796c3bb1c74b1ccb84349bb140c622b52b2bda2937
03c3b7
6b2c9b2091965725528223dab3b7c575225c87796c37b1c70b2ccb84349bb140c622bb2b2bda2937
a393b7
2556292127c43725528223dab3b7c575225c87796c37b1c70b2ccb84349bb140c622bb2b2bda2937
a393b7
2556292127c43725528223dab3b7c575225c87796c37b1c70b2ccb84349bb1b0c622b5cb2bda2937
03c3b7
2556292127c43725528223dab3b7c579225c87096c37b1c7052ccb84349bb130c622bb2b2bda2937
a393b7
6b2c9b2991965725528223dab3b7c571225c87796c37b1c30b2ccb84349bbbc7482bbb2b2bd92937
c393b7
6b2c9b2991965725528223dab3b7c571225c87796c37b1c30b2ccb84349bbbc7c022bb2b2bd92937
c393b7
6b2c9b2991965725528223dab3b7c575225c87796c37b1c30b2ccb84349bbbc7c022bb2b2bd92937
c393b7
6b2c9b2991265725528223dab3b7c571225c87796c37b1c30b2ccb84349bbbc7d022bb2b2bda2939
a2b3b7
6b2c9b2991265725522223dab9b7c57122c627796c37b1330b2ccb84349b5bc7cb2abbbb2bd12937
3a93b7
6b2c9b2991265725522223dab9b7c57122c627796c37b1330b2ccb84349b6bc7cb2abbbb2bd12937
3a93b7
6b2c9b2921265725572223dab9b7c57122c62779ac27b933ab2ccb84379b8bc7cb32bb6b2bb12937
3a93b7
6b2c9b2921265725572223dab9b7c50122c62779ac27b933ab2ccb843b9b8b17cb32bb6b2bb12937
3a13b7
6b2c9b2921265725572223dab9b7c57122062779a927b933a92ccb84379b8bc7cb32bb6b3bb12937
3a93b7
8b2c9b2921265725572223dab9b7c57122c62779ac27b933ab2ccb84379b6bc7cb32bb6b2bb12937
3a93b7
8b2c9b2921265725572223dab9b7c57122b627797c27b533ab2c3b84379b6bc7cb32bb6b2bb12937
36a3b7
6b2c9b2921265725572223dab9b7c57122c62279ac279933ab2ccb84379b6bc7cb32bb6b2bb12937
3a9367
8b2c9b2321265725572223dab9b7c57122b627797c27b7a3a02c3b84379b6bc7cb32bb6b2bb12938
36a3b7
6b2c9b2921265725572223dab9b73571225627792c27b933ab2ccb84379b6bc7cb32bb6b2bb12937
3a93bb
8b2c922921265725572223dab9b7357122c62779aa27b935ab2ccb84379b6bc7cb32bb6b3bb12933
a93b77

--
Further startups don't display the error like in the initial report.

Original comment by netpr...@gmail.com on 21 Oct 2010 at 10:36

GoogleCodeExporter commented 8 years ago

Original comment by Frit...@gmail.com on 22 Oct 2010 at 7:49

GoogleCodeExporter commented 8 years ago
*facepalm* hopefully fixed this time.

Original comment by Frit...@gmail.com on 22 Oct 2010 at 7:51

GoogleCodeExporter commented 8 years ago

Original comment by Frit...@gmail.com on 22 Oct 2010 at 7:51

GoogleCodeExporter commented 8 years ago
The fix works.

Original comment by netpr...@gmail.com on 22 Oct 2010 at 10:35