System.InvalidCastException: Unable to cast object of type 'java.lang.Object' to type 'java.lang.StackTraceElement'. at net.sf.jni4net.utils.Convertor.StrongJ2Cp(JNIEnv env, JniLocalHandle obj) at net.sf.jni4net.utils.Convertor.ArrayStrongJ2Cp(JNIEnv env, Jni LocalHandle array) at java.lang.Throwable.getStackTrace() at java.lang.Throwable.get_StackTrace() at net.sf.robocode.io.LoggerN.logError(Exception t) at net.sf.robocode.dotnet.host.seed.HostingSeed.Construct() at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate) 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, Object 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)

robocode | zf0rce | 6 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Unable to battle with created bot

    robocode | 6 years ago | zf0rce
    System.InvalidCastException: Unable to cast object of type 'java.lang.Object' to type 'java.lang.StackTraceElement'. at net.sf.jni4net.utils.Convertor.StrongJ2Cp(JNIEnv env, JniLocalHandle obj) at net.sf.jni4net.utils.Convertor.ArrayStrongJ2Cp(JNIEnv env, Jni LocalHandle array) at java.lang.Throwable.getStackTrace() at java.lang.Throwable.get_StackTrace() at net.sf.robocode.io.LoggerN.logError(Exception t) at net.sf.robocode.dotnet.host.seed.HostingSeed.Construct() at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate) 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, Object 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)

    Root Cause Analysis

    1. System.InvalidCastException

      Unable to cast object of type 'java.lang.Object' to type 'java.lang.StackTraceElement'. at net.sf.jni4net.utils.Convertor.StrongJ2Cp(JNIEnv env, JniLocalHandle obj) at net.sf.jni4net.utils.Convertor.ArrayStrongJ2Cp(JNIEnv env, Jni LocalHandle array) at java.lang.Throwable.getStackTrace() at java.lang.Throwable.get_StackTrace() at net.sf.robocode.io.LoggerN.logError(Exception t) at net.sf.robocode.dotnet.host.seed.HostingSeed.Construct() at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate) 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, Object 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()
    2. net.sf.robocode
      WizardController$EventHandler.actionPerformed
      1. net.sf.robocode.dotnet.host.DotnetHost.createRobotProxy(Native Method)
      2. net.sf.robocode.host.HostManager.createRobotProxy(HostManager.java:98)
      3. net.sf.robocode.host.HostManager.createRobotProxy(HostManager.java:34)
      4. net.sf.robocode.battle.peer.RobotPeer.<init>(RobotPeer.java:217)
      5. net.sf.robocode.battle.Battle.createPeers(Battle.java:296)
      6. net.sf.robocode.battle.Battle.setup(Battle.java:184)
      7. net.sf.robocode.battle.BattleManager.startNewBattleImpl(BattleManager.java:177)
      8. net.sf.robocode.battle.BattleManager.startNewBattle(BattleManager.java:130)
      9. net.sf.robocode.ui.dialog.NewBattleDialog.finishButtonActionPerformed(NewBattleDialog.java:118)
      10. net.sf.robocode.ui.dialog.WizardController.finishButtonActionPerformed(WizardController.java:68)
      11. net.sf.robocode.ui.dialog.WizardController.access$100(WizardController.java:32)
      12. net.sf.robocode.ui.dialog.WizardController$EventHandler.actionPerformed(WizardController.java:45)
      12 frames
    3. Java RT
      Dialog.setVisible
      1. javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      2. javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      4. javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      6. java.awt.Component.processMouseEvent(Unknown Source)
      7. javax.swing.JComponent.processMouseEvent(Unknown Source)
      8. java.awt.Component.processEvent(Unknown Source)
      9. java.awt.Container.processEvent(Unknown Source)
      10. java.awt.Component.dispatchEventImpl(Unknown Source)
      11. java.awt.Container.dispatchEventImpl(Unknown Source)
      12. java.awt.Component.dispatchEvent(Unknown Source)
      13. java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      14. java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      15. java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      16. java.awt.Container.dispatchEventImpl(Unknown Source)
      17. java.awt.Window.dispatchEventImpl(Unknown Source)
      18. java.awt.Component.dispatchEvent(Unknown Source)
      19. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      20. java.awt.EventQueue.access$000(Unknown Source)
      21. java.awt.EventQueue$3.run(Unknown Source)
      22. java.awt.EventQueue$3.run(Unknown Source)
      23. java.security.AccessController.doPrivileged(Native Method)
      24. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      25. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      26. java.awt.EventQueue$4.run(Unknown Source)
      27. java.awt.EventQueue$4.run(Unknown Source)
      28. java.security.AccessController.doPrivileged(Native Method)
      29. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      30. java.awt.EventQueue.dispatchEvent(Unknown Source)
      31. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      32. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      33. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      34. java.awt.WaitDispatchSupport$2.run(Unknown Source)
      35. java.awt.WaitDispatchSupport$4.run(Unknown Source)
      36. java.security.AccessController.doPrivileged(Native Method)
      37. java.awt.WaitDispatchSupport.enter(Unknown Source)
      38. java.awt.Dialog.show(Unknown Source)
      39. java.awt.Component.show(Unknown Source)
      40. java.awt.Component.setVisible(Unknown Source)
      41. java.awt.Window.setVisible(Unknown Source)
      42. java.awt.Dialog.setVisible(Unknown Source)
      42 frames
    4. net.sf.robocode
      MenuBar$EventHandler.actionPerformed
      1. net.sf.robocode.ui.dialog.WindowUtil.packCenterShow(WindowUtil.java:143)
      2. net.sf.robocode.ui.WindowManager.showNewBattleDialog(WindowManager.java:383)
      3. net.sf.robocode.ui.dialog.MenuBar.battleNewActionPerformed(MenuBar.java:237)
      4. net.sf.robocode.ui.dialog.MenuBar.access$100(MenuBar.java:59)
      5. net.sf.robocode.ui.dialog.MenuBar$EventHandler.actionPerformed(MenuBar.java:111)
      5 frames
    5. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      2. javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      4. javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      5. javax.swing.AbstractButton.doClick(Unknown Source)
      6. javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
      7. javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(UnknownSource)
      8. java.awt.Component.processMouseEvent(Unknown Source)
      9. javax.swing.JComponent.processMouseEvent(Unknown Source)
      10. java.awt.Component.processEvent(Unknown Source)
      11. java.awt.Container.processEvent(Unknown Source)
      12. java.awt.Component.dispatchEventImpl(Unknown Source)
      13. java.awt.Container.dispatchEventImpl(Unknown Source)
      14. java.awt.Component.dispatchEvent(Unknown Source)
      15. java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      16. java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      17. java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      18. java.awt.Container.dispatchEventImpl(Unknown Source)
      19. java.awt.Component.dispatchEvent(Unknown Source)
      20. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      21. java.awt.EventQueue.access$000(Unknown Source)
      22. java.awt.EventQueue$3.run(Unknown Source)
      23. java.awt.EventQueue$3.run(Unknown Source)
      24. java.security.AccessController.doPrivileged(Native Method)
      25. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      26. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      27. java.awt.EventQueue$4.run(Unknown Source)
      28. java.awt.EventQueue$4.run(Unknown Source)
      29. java.security.AccessController.doPrivileged(Native Method)
      30. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      31. java.awt.EventQueue.dispatchEvent(Unknown Source)
      32. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      33. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      34. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      35. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      36. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      37. java.awt.EventDispatchThread.run(Unknown Source)
      37 frames