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 | 5 years ago
  1. 0

    Unable to battle with created bot

    robocode | 5 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)
  2. 0

    Unable to cast 'NHibernate.Collection.Generic.PersistentGenericSet`1 to System.Collections.Generic.IList`1

    Google Groups | 4 years ago | Riderman Sousa
    System.InvalidCastException: Unable to cast object of type 'NHibernate.Collection.Generic.PersistentGenericSet`1[CreditoImobiliarioBB.Model.Pessoa]' to type 'System.Collections.Generic.IList`1[CreditoImobiliarioBB.Model.Pessoa]'. Result StackTrace: at (Object , Object[] , SetterCallback ) at NHibernate.Bytecode.Lightweight.AccessOptimizer.SetPropertyValues(Object target, Object[] values) at NHibernate.Tuple.Entity.PocoEntityTuplizer.SetPropertyValuesWithOptimizer(Object entity, Object[] values) --- End of inner exception stack trace --- at NHibernate.Tuple.Entity.PocoEntityTuplizer.SetPropertyValuesWithOptimizer(Object entity, Object[] values) at NHibernate.Tuple.Entity.PocoEntityTuplizer.SetPropertyValues(Object entity, Object[] values) at NHibernate.Persister.Entity.AbstractEntityPersister.SetPropertyValues(Object obj, Object[] values, EntityMode entityMode) at NHibernate.Event.Default.AbstractSaveEventListener.PerformSaveOrReplicate(Object entity, EntityKey key, IEntityPersister persister, Boolean useIdentityColumn, Object anything, IEventSource source, Boolean requiresImmediateIdAccess) at NHibernate.Event.Default.AbstractSaveEventListener.PerformSave(Object entity, Object id, IEntityPersister persister, Boolean useIdentityColumn, Object anything, IEventSource source, Boolean requiresImmediateIdAccess) at NHibernate.Event.Default.AbstractSaveEventListener.SaveWithGeneratedId(Object entity, String entityName, Object anything, IEventSource source, Boolean requiresImmediateIdAccess)
  3. 0

    Unable to cast object of type 'JetBrains.ReSharper.Psi.CSharp.Impl.Tree.AccessorDeclaration' to type 'JetBrains.ReSharper.Psi.CSharp.Tree.IMethodDeclaration'.

    YouTrack | 1 decade ago
    System.InvalidCastException: Unable to cast object of type 'JetBrains.ReSharper.Psi.CSharp.Impl.Tree.AccessorDeclaration' to type 'JetBrains.ReSharper.Psi.CSharp.Tree.IMethodDeclaration'. at JetBrains.ReSharper.Refactorings.Convert.FunctionToProperty.FunctionToPropertyRefactoring.ProcessMethod(IFunction method) in c:\Agent\work\Server\ReSharper2.5\src\Refactorings\src\convert\functiontoproperty\FunctionToPropertyRefactoring.cs:line 139 at JetBrains.ReSharper.Refactorings.Convert.FunctionToProperty.FunctionToPropertyRefactoring.ProcessMethods() in c:\Agent\work\Server\ReSharper2.5\src\Refactorings\src\convert\functiontoproperty\FunctionToPropertyRefactoring.cs:line 132 at JetBrains.ReSharper.Refactorings.Convert.FunctionToProperty.FunctionToPropertyRefactoring.Execute() in c:\Agent\work\Server\ReSharper2.5\src\Refactorings\src\convert\functiontoproperty\FunctionToPropertyRefactoring.cs:line 126 at JetBrains.ReSharper.Refactorings.Convert.FunctionToProperty.Impl.FunctionToPropertyRefactoringWorkflow.Execute(IProgressIndicator progressIndicator) in c:\Agent\work\Server\ReSharper2.5\src\Refactorings\src\convert\functiontoproperty\Impl\FunctionToPropertyRefactoringWorkflow.cs:line 84 at JetBrains.ReSharper.Refactorings.Workflow.WorkflowProcessor.RefactoringExecutor.Execute(IProgressIndicator progressIndicator) in c:\Agent\work\Server\ReSharper2.5\src\Refactorings\src\Workflow\WorkflowProcessor.cs:line 615 --- End of inner exception stack trace --- at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String, Boolean) in c:\Agent\work\Server\ReSharper2.5\src\Util\src\Logger.cs:line 350 column 9 at JetBrains.ReSharper.Util.Logger.LogException(Exception) in c:\Agent\work\Server\ReSharper2.5\src\Util\src\Logger.cs:line 362 column 5 at JetBrains.ReSharper.Refactorings.Workflow.RefactoringExecutor.Execute(IProgressIndicator) in c:\Agent\work\Server\ReSharper2.5\src\Refactorings\src\Workflow\WorkflowProcessor.cs:line 628 column 11 at JetBrains.ReSharper.Shell.Progress.TaskHelper.Run() in c:\Agent\work\Server\ReSharper2.5\src\Shell\src\Progress\UITaskExecutor.cs:line 231 column 13
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to cast object of type 'JetBrains.ReSharper.Psi.CSharp.Impl.Tree.AccessorDeclaration' to type 'JetBrains.ReSharper.Psi.CSharp.Tree.IMethodDeclaration'.

    YouTrack | 1 decade ago
    System.InvalidCastException: Unable to cast object of type 'JetBrains.ReSharper.Psi.CSharp.Impl.Tree.AccessorDeclaration' to type 'JetBrains.ReSharper.Psi.CSharp.Tree.IMethodDeclaration'. at JetBrains.ReSharper.Refactorings.Convert.FunctionToProperty.FunctionToPropertyRefactoring.ProcessMethod(IFunction method) in c:\Agent\work\ReSharper-Main\src\Refactorings\src\convert\functiontoproperty\FunctionToPropertyRefactoring.cs:line 139 at JetBrains.ReSharper.Refactorings.Convert.FunctionToProperty.FunctionToPropertyRefactoring.ProcessMethods() in c:\Agent\work\ReSharper-Main\src\Refactorings\src\convert\functiontoproperty\FunctionToPropertyRefactoring.cs:line 132 at JetBrains.ReSharper.Refactorings.Convert.FunctionToProperty.FunctionToPropertyRefactoring.Execute() in c:\Agent\work\ReSharper-Main\src\Refactorings\src\convert\functiontoproperty\FunctionToPropertyRefactoring.cs:line 126 at JetBrains.ReSharper.Refactorings.Convert.FunctionToProperty.Impl.FunctionToPropertyRefactoringWorkflow.Execute(IProgressIndicator progressIndicator) in c:\Agent\work\ReSharper-Main\src\Refactorings\src\convert\functiontoproperty\Impl\FunctionToPropertyRefactoringWorkflow.cs:line 84 at JetBrains.ReSharper.Refactorings.Workflow.WorkflowProcessor.RefactoringExecutor.Execute(IProgressIndicator progressIndicator) in c:\Agent\work\ReSharper-Main\src\Refactorings\src\Workflow\WorkflowProcessor.cs:line 615 --- End of inner exception stack trace --- at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String, Boolean) in c:\Agent\work\ReSharper-Main\src\Util\src\Logger.cs:line 350 column 9 at JetBrains.ReSharper.Util.Logger.LogException(Exception) in c:\Agent\work\ReSharper-Main\src\Util\src\Logger.cs:line 362 column 5 at JetBrains.ReSharper.Refactorings.Workflow.RefactoringExecutor.Execute(IProgressIndicator) in c:\Agent\work\ReSharper-Main\src\Refactorings\src\Workflow\WorkflowProcessor.cs:line 628 column 11 at JetBrains.ReSharper.Shell.Progress.TaskHelper.Run() in c:\Agent\work\ReSharper-Main\src\Shell\src\Progress\UITaskExecutor.cs:line 231 column 13
  6. 0

    Renamer throws InvalidCastException

    GitHub | 2 years ago | ilmax
    System.InvalidCastException: Unable to cast object of type 'Microsoft.CodeAnalysis.CSharp.Syntax.QualifiedNameSyntax' to type 'Microsoft.CodeAnalysis.CSharp.Syntax.IdentifierNameSyntax'. at Microsoft.CodeAnalysis.CSharp.Rename.CSharpRenameConflictLanguageService.RenameRewriter.RenameToken(SyntaxToken oldToken, SyntaxToken newToken, String suffix, Boolean isAccessorLocation) at Microsoft.CodeAnalysis.CSharp.Rename.CSharpRenameConflictLanguageService.RenameRewriter.<RenameAndAnnotateAsync>d__1.MoveNext() Stack: at System.Environment.FailFast(System.String, System.Exception)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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