!ENTRY org.eclipse.ui 4 0 2013-12-05 08:54:41.940 !MESSAGE Unhandled event loop exception !STACK 0 java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.substring(String.java:1937) at com.adobe.rds.client.core.services.debugger.DebuggerEventProcessor.getDebuggerPort(Unknown Source) at com.adobe.rds.client.core.services.debugger.DebuggerEventProcessor.getDebuggerPort(Unknown Source) at com.adobe.rds.client.core.services.debugger.DebuggerEventProcessor.getDebuggerPort(Unknown Source) at com.adobe.rds.client.core.services.debugger.DebuggerEventProcessor.getDebuggerPort(Unknown Source) at com.adobe.rds.client.eclipse.preferences.RDSServerEditor$15.widgetSelected(Unknown Source) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4166) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1489) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1474) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4012) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3651) at org.eclipse.jface.window.Window.runEventLoop(Window.java:826) at org.eclipse.jface.window.Window.open(Window.java:802) at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215) at org.eclipse.ui.internal.handlers.ShowPreferencePageHandler.execute(ShowPreferencePageHandler.java:58) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290) at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243) at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224) at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132) at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213) at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:200) at org.eclipse.e4.ui.workbench.renderers.swt.cocoa.CocoaUIHandler.runCommand(CocoaUIHandler.java:716) at org.eclipse.e4.ui.workbench.renderers.swt.cocoa.CocoaUIHandler.access$6(CocoaUIHandler.java:704) at org.eclipse.e4.ui.workbench.renderers.swt.cocoa.CocoaUIHandler$8.widgetSelected(CocoaUIHandler.java:569) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4166) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1489) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1474) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4012) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3651) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
Sekani, it’s not clear if the issue could be with Kepler. So to start, I’d be curious: had you done such debugging using an older version of Eclipse? If so, was it from the same dev box and to the same CF server? If so, then at least you’d know the issue might be specific to Kepler. Conversely, if it did not work from an older Eclipse, then you could suspect any of many things but ruling out Kepler.
With respect to that, I’ll note that I’ve written and presented much on troubleshooting the CF debugger (whether that provided in CFBuilder, or using Eclipse/CFEclipse and the old CF 8 extension). There are just so many things that can go wrong that it may be hard to pick through them here in email. It may be better for you to review the possible challenges and let us know if anything is still unclear.
I share various specific things to watch out for, and requests you can make to test things, to help spot where things may be amiss among the many moving parts. (Good to see you confirm at least that you do have a successful RDS connection. That’s a key step.)
For more info, see either my talks (with both a recording and PDF of slides):
http://www.carehart.org/presentations/#cfb_debugger_setup
http://www.carehart.org/presentations/#cf8debug
Or if you prefer text, see my section on troubleshooting the debugger in my chapter on it in the CF9 WACK book, which chapter is available online via:
http://www.carehart.org/articles/#2010_2
And an older article that was a small subset of that info:
http://www.carehart.org/articles/#2008_4
But I (and I’m sure others) will be happy to help address any more specific questions you may have. I have no specific experience with Kepler to share but again it may be that the issue is NOT related to that. Let us know at least the answer to my first question above.
Hope that’s helpful.
/charlie
From: cfeclip...@googlegroups.com [mailto:cfeclip...@googlegroups.com] On Behalf Of Sekani Tembo
Sent: Thursday, December 05, 2013 12:11 PM
To: cfeclip...@googlegroups.com
Subject: [cfeclipse-users] Line Debugging with Eclipse Kepler and CF8
Has anyone had any luck getting line debugging to work using:
Eclipse J2EE Kepler
CFEclipse latest
Coldfusion 8:
- on a remote server
- server is using Apache
CF8 Adobe Eclipse Plugins
?
I've been trying for a few days to no avail. If you've had any success please let me know. I've gotten to the point where I can show a successful RDS connection test within the preferences page, but attempting to use test debugger results in no response. When attempting to Debug from Debug/CFEclipse perspectives, result is the following error:
!ENTRY org.eclipse.ui 4 0 2013-12-05 08:54:41.940
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
at java.lang.String.substring(String.java:1937)
at com.adobe.rds.client.core.services.debugger.DebuggerEventProcessor.getDebuggerPort(Unknown Source)
at com.adobe.rds.client.core.services.debugger.DebuggerEventProcessor.getDebuggerPort(Unknown Source)
at com.adobe.rds.client.core.services.debugger.DebuggerEventProcessor.getDebuggerPort(Unknown Source)
<snip>
Sekani, honestly I really doubt that you will find most of what I wrote (especially the troubleshooting steps) in any CF docs. I’m intimately familiar with those docs, and wrote those resources over the years specifically because the docs were so VERY Spartan and did NOT cover much in the way of troubleshooting the process of setting up debugging. Are you saying you looked at all 4 resources I mentioned? Especially the segments focused on troubleshooting? If you may have only briefly scanned things, I hope you’ll reconsider.
Bottom line: the debugger does work, including the old Eclipse extensions. Many who found it “not to work” were (in nearly every case I saw) tripping over the kind of configuration challenges I discuss, whether in Eclipse, in the CF Admin, or the web server. I appreciate that many threw up their hands in frustration when they couldn’t get it to work, especially if on most resources they found only other people agreeing that “they couldn’t get it to work”.
And I appreciate that many decided that they could get along just fine with cfoutput/cfdump. But as I discuss in those resources, there are many times when that CANNOT suffice, such as within CFCs where you’ve turned on output=false, or in situations where there is no output to the browser (like onsessionend in application.cfc), to name just a couple. More than that, as you will know from doing other step debugging, many who get it working are amazed at the powerful access to such things as all variables in all scopes, the stack (how you got to where you are), stepping into and out of other called templates/CFCs/custom tags, etc.
So yes, I am a big fan of the debugger, and do go overboard when I see folks saying they’re having trouble getting it working, and want to point them to resources that may help. I even offer a specific form of consulting to help troubleshoot such problems (if you guys will forgive the brief sales pitch), of a fixed price of $75 for up to 2 hours to solve any single CFBuilder (or CF-related Eclipse) problem, and if I don’t solve it after 2 hours, you don’t pay. For more info, see the consulting page at carehart.org.
But if you have reached the end of your patience (or appreciate of the value) in trying to get the debugger working, I’ll happily let things go. Still, I leave all that info for others to consider. :-)
Test debugger failed.
An RDS connection was established but the Coldfusion RDS line debugger could not be contacted. The server gave the following message:
-1:Could not initialize class coldfusion.log.CFLogs
--
--
For more information on CFEclipse visit: cfeclipse.org
For support, FAQ and tips and tricks visit: https://github.com/cfeclipse/cfeclipse/wiki
You are subscribed to the Google Groups "CFEclipse Users" group.
To post send email to: cfeclip...@googlegroups.com
To unsubscribe send email to: cfeclipse-use...@googlegroups.com
For more options, visit this group online: http://groups.google.com/group/cfeclipse-users?hl=en
---
You received this message because you are subscribed to the Google Groups "CFEclipse Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cfeclipse-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.