java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Recieved this in my log file. File in question is attached" {code} !ENTRY com.aptana.editor.php 4 0 2011-10-07 13:20:36.399 !MESSAGE (Build 3.0.3.qualifier) [ERROR] Error while indexing module - /symphony2/vendor/bundles/Sensio/Bundle/DistributionBundle/Controller/ConfiguratorController.php !STACK 0 java.lang.ClassCastException: org2.eclipse.php.internal.core.ast.nodes.Variable cannot be cast to org2.eclipse.php.internal.core.ast.nodes.Identifier at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer$PHPASTVisitor.getPathByStaticDispatch(PDTPHPModuleIndexer.java:2444) at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer$PHPASTVisitor.countStaticDispatchTypes(PDTPHPModuleIndexer.java:2847) at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer$PHPASTVisitor.countExpressionTypes(PDTPHPModuleIndexer.java:2687) at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer$PHPASTVisitor.visit(PDTPHPModuleIndexer.java:1781) at org2.eclipse.php.internal.core.ast.nodes.ReturnStatement.accept0(ReturnStatement.java:67) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.childrenAccept(FunctionDeclaration.java:109) at org2.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.accept0(FunctionDeclaration.java:98) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.MethodDeclaration.childrenAccept(MethodDeclaration.java:92) at org2.eclipse.php.internal.core.ast.nodes.MethodDeclaration.accept0(MethodDeclaration.java:84) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.ClassDeclaration.childrenAccept(ClassDeclaration.java:119) at org2.eclipse.php.internal.core.ast.nodes.ClassDeclaration.accept0(ClassDeclaration.java:105) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.NamespaceDeclaration.childrenAccept(NamespaceDeclaration.java:187) at org2.eclipse.php.internal.core.ast.nodes.NamespaceDeclaration.accept0(NamespaceDeclaration.java:231) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Program.childrenAccept(Program.java:203) at org2.eclipse.php.internal.core.ast.nodes.Program.accept0(Program.java:196) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer.indexModule(PDTPHPModuleIndexer.java:3851) at com.aptana.editor.php.indexer.PHPGlobalIndexer$WrapIndexer.indexModule(PHPGlobalIndexer.java:92) at com.aptana.editor.php.indexer.PHPGlobalIndexer$8.run(PHPGlobalIndexer.java:524) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) at org2.eclipse.php.internal.core.ast.nodes.ReturnStatement.accept0(ReturnStatement.java:67) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.childrenAccept(FunctionDeclaration.java:109) at org2.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.accept0(FunctionDeclaration.java:98) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.MethodDeclaration.childrenAccept(MethodDeclaration.java:92) at org2.eclipse.php.internal.core.ast.nodes.MethodDeclaration.accept0(MethodDeclaration.java:84) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.ClassDeclaration.childrenAccept(ClassDeclaration.java:119) at org2.eclipse.php.internal.core.ast.nodes.ClassDeclaration.accept0(ClassDeclaration.java:105) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.NamespaceDeclaration.childrenAccept(NamespaceDeclaration.java:187) at org2.eclipse.php.internal.core.ast.nodes.NamespaceDeclaration.accept0(NamespaceDeclaration.java:231) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Program.childrenAccept(Program.java:203) at org2.eclipse.php.internal.core.ast.nodes.Program.accept0(Program.java:196) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer.indexModule(PDTPHPModuleIndexer.java:3851) at com.aptana.editor.php.indexer.PHPGlobalIndexer$WrapIndexer.indexModule(PHPGlobalIndexer.java:92) at com.aptana.editor.php.indexer.PHPGlobalIndexer$8.run(PHPGlobalIndexer.java:524) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code}
    via by Ingo Muschenetz,
  • Recieved this in my log file. File in question is attached" {code} !ENTRY com.aptana.editor.php 4 0 2011-10-07 13:20:36.399 !MESSAGE (Build 3.0.3.qualifier) [ERROR] Error while indexing module - /symphony2/vendor/bundles/Sensio/Bundle/DistributionBundle/Controller/ConfiguratorController.php !STACK 0 java.lang.ClassCastException: org2.eclipse.php.internal.core.ast.nodes.Variable cannot be cast to org2.eclipse.php.internal.core.ast.nodes.Identifier at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer$PHPASTVisitor.getPathByStaticDispatch(PDTPHPModuleIndexer.java:2444) at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer$PHPASTVisitor.countStaticDispatchTypes(PDTPHPModuleIndexer.java:2847) at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer$PHPASTVisitor.countExpressionTypes(PDTPHPModuleIndexer.java:2687) at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer$PHPASTVisitor.visit(PDTPHPModuleIndexer.java:1781) at org2.eclipse.php.internal.core.ast.nodes.ReturnStatement.accept0(ReturnStatement.java:67) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.childrenAccept(FunctionDeclaration.java:109) at org2.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.accept0(FunctionDeclaration.java:98) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.MethodDeclaration.childrenAccept(MethodDeclaration.java:92) at org2.eclipse.php.internal.core.ast.nodes.MethodDeclaration.accept0(MethodDeclaration.java:84) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.ClassDeclaration.childrenAccept(ClassDeclaration.java:119) at org2.eclipse.php.internal.core.ast.nodes.ClassDeclaration.accept0(ClassDeclaration.java:105) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.NamespaceDeclaration.childrenAccept(NamespaceDeclaration.java:187) at org2.eclipse.php.internal.core.ast.nodes.NamespaceDeclaration.accept0(NamespaceDeclaration.java:231) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Program.childrenAccept(Program.java:203) at org2.eclipse.php.internal.core.ast.nodes.Program.accept0(Program.java:196) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer.indexModule(PDTPHPModuleIndexer.java:3851) at com.aptana.editor.php.indexer.PHPGlobalIndexer$WrapIndexer.indexModule(PHPGlobalIndexer.java:92) at com.aptana.editor.php.indexer.PHPGlobalIndexer$8.run(PHPGlobalIndexer.java:524) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) at org2.eclipse.php.internal.core.ast.nodes.ReturnStatement.accept0(ReturnStatement.java:67) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.childrenAccept(FunctionDeclaration.java:109) at org2.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.accept0(FunctionDeclaration.java:98) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.MethodDeclaration.childrenAccept(MethodDeclaration.java:92) at org2.eclipse.php.internal.core.ast.nodes.MethodDeclaration.accept0(MethodDeclaration.java:84) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.ClassDeclaration.childrenAccept(ClassDeclaration.java:119) at org2.eclipse.php.internal.core.ast.nodes.ClassDeclaration.accept0(ClassDeclaration.java:105) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.NamespaceDeclaration.childrenAccept(NamespaceDeclaration.java:187) at org2.eclipse.php.internal.core.ast.nodes.NamespaceDeclaration.accept0(NamespaceDeclaration.java:231) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Program.childrenAccept(Program.java:203) at org2.eclipse.php.internal.core.ast.nodes.Program.accept0(Program.java:196) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer.indexModule(PDTPHPModuleIndexer.java:3851) at com.aptana.editor.php.indexer.PHPGlobalIndexer$WrapIndexer.indexModule(PHPGlobalIndexer.java:92) at com.aptana.editor.php.indexer.PHPGlobalIndexer$8.run(PHPGlobalIndexer.java:524) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code}
    via by Ingo Muschenetz,
    • java.lang.ClassCastException: org2.eclipse.php.internal.core.ast.nodes.Variable cannot be cast to org2.eclipse.php.internal.core.ast.nodes.Identifier at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer$PHPASTVisitor.getPathByStaticDispatch(PDTPHPModuleIndexer.java:2444) at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer$PHPASTVisitor.countStaticDispatchTypes(PDTPHPModuleIndexer.java:2847) at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer$PHPASTVisitor.countExpressionTypes(PDTPHPModuleIndexer.java:2687) at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer$PHPASTVisitor.visit(PDTPHPModuleIndexer.java:1781) at org2.eclipse.php.internal.core.ast.nodes.ReturnStatement.accept0(ReturnStatement.java:67) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.childrenAccept(FunctionDeclaration.java:109) at org2.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.accept0(FunctionDeclaration.java:98) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.MethodDeclaration.childrenAccept(MethodDeclaration.java:92) at org2.eclipse.php.internal.core.ast.nodes.MethodDeclaration.accept0(MethodDeclaration.java:84) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.ClassDeclaration.childrenAccept(ClassDeclaration.java:119) at org2.eclipse.php.internal.core.ast.nodes.ClassDeclaration.accept0(ClassDeclaration.java:105) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.NamespaceDeclaration.childrenAccept(NamespaceDeclaration.java:187) at org2.eclipse.php.internal.core.ast.nodes.NamespaceDeclaration.accept0(NamespaceDeclaration.java:231) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Program.childrenAccept(Program.java:203) at org2.eclipse.php.internal.core.ast.nodes.Program.accept0(Program.java:196) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer.indexModule(PDTPHPModuleIndexer.java:3851) at com.aptana.editor.php.indexer.PHPGlobalIndexer$WrapIndexer.indexModule(PHPGlobalIndexer.java:92) at com.aptana.editor.php.indexer.PHPGlobalIndexer$8.run(PHPGlobalIndexer.java:524) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) at org2.eclipse.php.internal.core.ast.nodes.ReturnStatement.accept0(ReturnStatement.java:67) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.childrenAccept(FunctionDeclaration.java:109) at org2.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.accept0(FunctionDeclaration.java:98) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.MethodDeclaration.childrenAccept(MethodDeclaration.java:92) at org2.eclipse.php.internal.core.ast.nodes.MethodDeclaration.accept0(MethodDeclaration.java:84) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.ClassDeclaration.childrenAccept(ClassDeclaration.java:119) at org2.eclipse.php.internal.core.ast.nodes.ClassDeclaration.accept0(ClassDeclaration.java:105) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:98) at org2.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:91) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.NamespaceDeclaration.childrenAccept(NamespaceDeclaration.java:187) at org2.eclipse.php.internal.core.ast.nodes.NamespaceDeclaration.accept0(NamespaceDeclaration.java:231) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at org2.eclipse.php.internal.core.ast.nodes.Program.childrenAccept(Program.java:203) at org2.eclipse.php.internal.core.ast.nodes.Program.accept0(Program.java:196) at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285) at com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer.indexModule(PDTPHPModuleIndexer.java:3851) at com.aptana.editor.php.indexer.PHPGlobalIndexer$WrapIndexer.indexModule(PHPGlobalIndexer.java:92) at com.aptana.editor.php.indexer.PHPGlobalIndexer$8.run(PHPGlobalIndexer.java:524) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    No Bugmate found.