Menu

Can't run battle with samplesCS-robots

Help
JensK
2010-02-23
2012-09-15
  • JensK

    JensK - 2010-02-23

    After installing original robocode.net and start a new battle with samples in
    CS: first error message

    Exception occured during event dispatching:

    System.Runtime.Serialization.SerializationException:Der Typ für Member
    "net.sf.jni4net..." wurde nicht aufgelöst.

    How can I fix this problem?

     
  • Flemming N. Larsen

    Hi,

    Could you tell use how to reproduce the problem?

    Did you install robocode-1.7.2.0-Beta-setup.jar first, and then
    robocode.dotnet-1.7.2.0-Beta-setup.jar afterwards?

     
  • JensK

    JensK - 2010-02-24

    Installation is ok. Java bots are running . Only CSSamples create this error
    message

    net.sf files are loading correct

    Same error in installation C:\ and other directories, admin and other user; OS
    Vista SP1 64

     
  • Pavel Šavara

    Pavel Šavara - 2010-02-24

    Hi simpleposer,

    it's not easy to tell just from this. Please include full exception start/
    error message.

    My first advice would be to install latest .NET runtime or service pack.
    Please let us know what helped even in case you were able to solve this
    yourself.

    Thanks Pavel

     
  • JensK

    JensK - 2010-02-25

    Update Vista SP2 64bit, same error. look this picture

     
  • Pavel Šavara

    Pavel Šavara - 2010-02-25

    My best guess would be that you have 32bit Java on PATH but 64bit JAVA_HOME.
    Or other way around. Try to unify it just on 64bit one.

     
  • Eric Juden

    Eric Juden - 2010-02-25

    I get the same thing while running WinXP SP3:

    C:\robocode>java -Xmx512M -Dsun.io.useCanonCaches=false -cp
    libs/robocode.jar;li

    bs/jni4net.j-0.7.0.0.jar robocode.Robocode

    Loaded net.sf.robocode.api

    Loaded net.sf.robocode.core

    Loading plugins from C:\robocode\libs

    Loaded net.sf.robocode.battle

    Loaded net.sf.robocode.dotnet.host

    Loaded net.sf.robocode.host

    Loaded net.sf.robocode.repository

    Loaded net.sf.robocode.sound

    Loaded net.sf.robocode.ui

    Loaded net.sf.robocode.ui.editor

    Reading robot database

    Saving robot database

    Preparing battle...

    at net.sf.jni4net.Bridge.CreateJVM()

    at net.sf.jni4net.Bridge.CreateJVM(BridgeSetup setup)

    at net.sf.robocode.dotnet.host.seed.AppDomainSeed.Bind()

    Exception occurred during event dispatching:

    System.Runtime.Serialization.SerializationException: Type is not resolved for
    me

    mber 'net.sf.jni4net.jni.JNIException,jni4net.n-0.7.0.0, Version=0.0.0.0,
    Cultur

    e=neutral, PublicKeyToken=134a23405600bab4'.

    at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)

    at net.sf.robocode.dotnet.host.seed.AppDomainShell.Init(Boolean fullBind)

    at net.sf.robocode.dotnet.host.seed.HostingShell..ctor(IRobotRepositoryItem i

    temSpecification, IHostManager hostManager, IRobotPeer peer, IRobotStatics
    jstat

    ics, String dllFileName)

    at net.sf.robocode.dotnet.host.DotnetHost.createRobotProxy(IHostManager hostM

    anager, RobotSpecification robotSpecification, IRobotStatics statics,
    IRobotPeer

    peer)

    at net.sf.robocode.dotnet.host.__DotnetHost.createRobotProxy0(IntPtr __envp,

    JniLocalHandle __obj, JniLocalHandle par0, JniLocalHandle par1, JniLocalHandle
    p

    ar2, JniLocalHandle par3)

    at net.sf.robocode.dotnet.host.DotnetHost.createRobotProxy(Native Method

    )

    at net.sf.robocode.host.HostManager.createRobotProxy(HostManager.java:98

    )

    at net.sf.robocode.host.HostManager.createRobotProxy(HostManager.java:34

    )

    at net.sf.robocode.battle.peer.RobotPeer.<init>(RobotPeer.java:218)</init>

    at net.sf.robocode.battle.Battle.createPeers(Battle.java:295)

    at net.sf.robocode.battle.Battle.setup(Battle.java:183)

    at net.sf.robocode.battle.BattleManager.startNewBattleImpl(BattleManager

    .java:176)

    at net.sf.robocode.battle.BattleManager.startNewBattle(BattleManager.jav

    a:130)

    at net.sf.robocode.ui.dialog.NewBattleDialog.finishButtonActionPerformed

    (NewBattleDialog.java:117)

    at net.sf.robocode.ui.dialog.WizardController.finishButtonActionPerforme

    d(WizardController.java:68)

    at net.sf.robocode.ui.dialog.WizardController.access$100(WizardControlle

    r.java:32)

    at net.sf.robocode.ui.dialog.WizardController$EventHandler.actionPerform

    ed(WizardController.java:45)

    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.pumpEventsForFilter(Unknown Source)

    at java.awt.Dialog$1.run(Unknown Source)

    at java.awt.Dialog$3.run(Unknown Source)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.awt.Dialog.show(Unknown Source)

    at java.awt.Component.show(Unknown Source)

    at java.awt.Component.setVisible(Unknown Source)

    at java.awt.Window.setVisible(Unknown Source)

    at java.awt.Dialog.setVisible(Unknown Source)

    at net.sf.robocode.ui.dialog.WindowUtil.packCenterShow(WindowUtil.java:1

    43)

    at net.sf.robocode.ui.WindowManager.showNewBattleDialog(WindowManager.ja

    va:379)

    at net.sf.robocode.ui.dialog.MenuBar.battleNewActionPerformed(MenuBar.ja

    va:233)

    at net.sf.robocode.ui.dialog.MenuBar.access$100(MenuBar.java:58)

    at net.sf.robocode.ui.dialog.MenuBar$EventHandler.actionPerformed(MenuBa

    r.java:109)

    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.AbstractButton.doClick(Unknown Source)

    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)

    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown

    Source)

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

     
  • Pavel Šavara

    Pavel Šavara - 2010-02-25

    Eric,

    same question. Do you run 64bit system ? If yes, try to fix PATH and
    JAVA_HOME.

    In any case, what JRE you use ?

    Is your TEMP on C: drive ?

    It's very important for us to fix this in this beta, so please help us to
    identify it.

    We are unable to reproduce it still.

    Please drop me email to my pavel.savara at gmail if you are keen to try
    several testing binaries I could create for you.

     
  • Eric Juden

    Eric Juden - 2010-02-26

    Pavel,

    Thanks for the reply. It appears my problem was not having the JAVA_HOME
    environment variable set. After that everything works great.

    Thanks,

    Eric

     
  • JensK

    JensK - 2010-02-26

    Thanks for your help.

    JAVA_HOME was setting on an old uninstalled jdk-version. Now after setting
    environment all CS-bots are running without error messages.

     

Log in to post a comment.

MongoDB Logo MongoDB