Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 314423

Summary: using gwt http Response.gettext fails
Product: [Eclipse Project] JDT Reporter: James Mike DuPont <JamesMikeDuPont>
Component: DebugAssignee: Sarika Sinha <sarika.sinha>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, Michael_Rennie, sarika.sinha
Version: 3.5   
Target Milestone: 4.13 M1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description James Mike DuPont CLA 2010-05-26 05:54:40 EDT
What steps will reproduce the problem?
1. git clone git@github.com:h4ck3rm1k3/GWTOsm.git
   80837e5..66328cc  master -> master
   
2. run ant devmode 
3. connect with the debugger
3. when the http response finally loads, somehow the data is not readable.


-- Error Details --
Date: Wed May 26 10:42:30 CEST 2010
Message: Exception processing async thread queue
Severity: Error
Product: Eclipse 1.2.2.20100122-1337 (org.eclipse.epp.package.java.product)
Plugin: org.eclipse.jdt.debug
Session Data:
eclipse.buildId=unknown
java.version=1.6.0_0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.java.product


Exception Stack Trace:
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
	at java.lang.String.charAt(String.java:694)
	at org.eclipse.jdt.internal.debug.eval.ast.engine.BinaryBasedSourceGenerator.isAnonymousTypeName(BinaryBasedSourceGenerator.java:495)
	at org.eclipse.jdt.internal.debug.eval.ast.engine.BinaryBasedSourceGenerator.buildTypeDeclaration(BinaryBasedSourceGenerator.java:173)
	at org.eclipse.jdt.internal.debug.eval.ast.engine.BinaryBasedSourceGenerator.buildTypeDeclaration(BinaryBasedSourceGenerator.java:145)
	at org.eclipse.jdt.internal.debug.eval.ast.engine.BinaryBasedSourceGenerator.buildSource(BinaryBasedSourceGenerator.java:74)
	at org.eclipse.jdt.internal.debug.eval.ast.engine.EvaluationSourceGenerator.getInstanceSourceMapper(EvaluationSourceGenerator.java:204)
	at org.eclipse.jdt.internal.debug.eval.ast.engine.EvaluationSourceGenerator.getSource(EvaluationSourceGenerator.java:216)
	at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.getCompiledExpression(ASTEvaluationEngine.java:226)
	at org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.evaluate(ASTEvaluationEngine.java:115)
	at org.eclipse.jdt.internal.debug.ui.JavaWatchExpressionDelegate$EvaluationRunnable.run(JavaWatchExpressionDelegate.java:144)
	at org.eclipse.jdt.internal.debug.core.model.JDIThread$ThreadJob.run(JDIThread.java:2751)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Michael Rennie CLA 2012-07-11 13:21:14 EDT
I have not seen this exception using just the platform. James can you provide some steps to reproduce without all the extra bits installed? I am wondering if one of the additional plugins mentioned is using our internal code or not.

The exception points towards an evaluation that is failing when we ask a type name  - whose simple name is the empty string - if it is anonymous.
Comment 2 Eclipse Genie CLA 2019-06-25 16:37:56 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Sarika Sinha CLA 2019-06-26 00:59:10 EDT
Please reopen if you are able to reproduce with SDK.