|
|
|
No, the "getConnection" exceptions don't appear to be related: I see something about "Rails DB Connection" flash by on the progress pane upon startup. It looks like the only thing logged is this:
!ENTRY org.rubypeople.rdt.launching 1 -1 2008-12-22 14:59:08.130 !ENTRY com.aptana.rdt 1 -1 2008-12-22 14:59:08.536 !ENTRY org.eclipse.core.resources 4 372 2008-12-22 14:59:08.536 These three messages are linked with a successful "refreshing workspace" (that took about 10 seconds) upon starting Aptana. And it looks like something tried to execute markup on my last comment.
The mangled line is "MESSAGE Got into a bad state" with bangs on the beginning and end. Here's the javaw stacktrace from VisualStudio when Aptana is hung:
> ntdll.dll!_KiFastSystemCallRet@0() This might not be helpful at all. I notice that a week ago, I have NINE megabytes of logs containing just this error (full trace in the attached bak_0.log, as mentioned):
!ENTRY org.rubypeople.rdt.core 4 0 2008-12-16 19:49:24.110 !MESSAGE !STACK 0 java.lang.NullPointerException at java.util.Hashtable.get(Unknown Source) at org.rubypeople.rdt.internal.core.buffer.LRUCache.get(LRUCache.java:206) at org.rubypeople.rdt.internal.core.parser.RubyParser.parse(RubyParser.java:134) at org.rubypeople.rdt.internal.core.parser.RubyParser.parse(RubyParser.java:121) All from the same minute. That's probably the best place to look.
What version of RadRails do you have installed? http://www.aptana.com/docs/index.php/Determining_your_Aptana_version#Determining_your_RadRails.2FPHP.2FAIR.2FiPhone_version
Actually, I guess the version doesn't matter I can see the bug plain as day in my code. ..
Fixed in 1.1 maintenance branch. Targeted for a 1.1.1 release and will get merged into trunk for a 1.2.0 release as well.
Make sure all bugs marked fixed for 1.1.1 are also marked as fixed for 1.2.0 as the branch bugfixes have now been merged over to trunk.
Only tie things resolved in 1.1.2 and 1.2.0 to 1.1.2 as fixed version (since it's assumed that 1.2.0 as a later release will contain all the previous release's bugfixes).
I have exactly the same problem in 1.2.7.024774. Starting Aptana with -clean does not help; also, it only happens on certain projects.
Aron: What version of RadRails do you have installed? Do your logs contain this exact same error?
Apologies, my statement "exactly the same" is not entirely correct; this behaviour occurs when opening certain PHP projects. The only way to fix it is to remove the project (not the contents) and re-create it.
Closing ticket again. Ticket PHP-980 opened for Aron.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
java.lang.ClassCastException: org.jruby.ast.BlockNode cannot be cast to org.jruby.ast.WhenNode
at com.aptana.rdt.internal.parser.warnings.UnecessaryElseVisitor$ReturnVisitor.visitCaseNode(UnecessaryElseVisitor.java:98)
at org.jruby.ast.CaseNode.accept(CaseNode.java:80)
at org.jruby.ast.visitor.AbstractVisitor.acceptNode(AbstractVisitor.java:149)
at org.rubypeople.rdt.internal.core.parser.InOrderVisitor.visitNewlineNode(InOrderVisitor.java:759)
at org.jruby.ast.NewlineNode.accept(NewlineNode.java:74)
at com.aptana.rdt.internal.parser.warnings.UnecessaryElseVisitor.alwaysExplicitReturn(UnecessaryElseVisitor.java:55)
at com.aptana.rdt.internal.parser.warnings.UnecessaryElseVisitor.visitIfNode(UnecessaryElseVisitor.java:45)
at org.rubypeople.rdt.core.parser.warnings.DelegatingVisitor.visitIfNode(DelegatingVisitor.java:542)