plugin failed to connect to hosted mode server at...

164 views
Skip to first unread message

tashi

unread,
Oct 1, 2010, 1:34:07 AM10/1/10
to Google Web Toolkit
I created a simple project that uses gwt and gwt-maps.jar, which
worked few days ago, and now all of a sudden not working. I recreated
it multiple times but no luck. Every time i put address into my
browser I get 'plugin failed to connect blah blah'

After running it Chrome the dev mode window gives me these errors:

22:31:23.739 [ERROR] [simplemaps] Exception initializing module
sun.misc.InvalidJarIndexException: Invalid index
at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
at sun.misc.URLClassPath$JarLoader.findResource(Unknown Source)
at sun.misc.URLClassPath.findResource(Unknown Source)
at java.net.URLClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(Unknown Source)
at java.lang.ClassLoader.getResource(Unknown Source)
at com.google.gwt.dev.javac.JdtCompiler
$INameEnvironmentImpl.findType(JdtCompiler.java:240)
at com.google.gwt.dev.javac.JdtCompiler
$INameEnvironmentImpl.findType(JdtCompiler.java:226)
at
org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:
122)
at
org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:
181)
at
org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:
2460)
at
org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:
2181)
at
org.eclipse.jdt.internal.compiler.ast.SingleTypeReference.getTypeBinding(SingleTypeReference.java:
44)
at
org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:
130)
at
org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:
201)
at
org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType(TypeReference.java:
179)
at
org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.java:
1167)
at
org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperclass(ClassScope.java:
867)
at
org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:
1010)
at
org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectMemberTypes(ClassScope.java:
835)
at
org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:
1018)
at
org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:
290)
at
org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:
185)
at
org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:
719)
at
org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:
376)
at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:420)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
467)
at com.google.gwt.dev.javac.CompilationStateBuilder
$CompileMoreLater.compile(CompilationStateBuilder.java:142)
at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:
281)
at
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:
182)
at
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
280)
at com.google.gwt.dev.DevModeBase
$UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:99)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
180)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Unknown Source)

22:31:23.842 [ERROR] [simplemaps] Failed to load module 'simplemaps'
from user agent 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3'
at 192.168.1.100:65206
sun.misc.InvalidJarIndexException: Invalid index
at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
at sun.misc.URLClassPath$JarLoader.findResource(Unknown Source)
at sun.misc.URLClassPath.findResource(Unknown Source)
at java.net.URLClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(Unknown Source)
at java.lang.ClassLoader.getResource(Unknown Source)
at com.google.gwt.dev.javac.JdtCompiler
$INameEnvironmentImpl.findType(JdtCompiler.java:240)
at com.google.gwt.dev.javac.JdtCompiler
$INameEnvironmentImpl.findType(JdtCompiler.java:226)
at
org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:
122)
at
org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:
181)
at
org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:
2460)
at
org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:
2181)
at
org.eclipse.jdt.internal.compiler.ast.SingleTypeReference.getTypeBinding(SingleTypeReference.java:
44)
at
org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:
130)
at
org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:
201)
at
org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType(TypeReference.java:
179)
at
org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.java:
1167)
at
org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperclass(ClassScope.java:
867)
at
org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:
1010)
at
org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectMemberTypes(ClassScope.java:
835)
at
org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:
1018)
at
org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:
290)
at
org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:
185)
at
org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:
719)
at
org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:
376)
at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:420)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
467)
at com.google.gwt.dev.javac.CompilationStateBuilder
$CompileMoreLater.compile(CompilationStateBuilder.java:142)
at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:
281)
at
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:
182)
at
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
280)
at com.google.gwt.dev.DevModeBase
$UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:99)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
180)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Unknown Source)


PLEASE I REALLY NEED TO GET THIS DONE

Артём

unread,
Oct 1, 2010, 8:43:05 AM10/1/10
to Google Web Toolkit
Check the Classpath of your Run Configuration. It looks like your
source folder is missing from it.
(GWT compiler need to find your Java source files somewhere, it uses
Classpath for this).

tashi

unread,
Oct 1, 2010, 4:59:47 PM10/1/10
to Google Web Toolkit
Thank you so much for replying.. I need to get this done in a week. I
had it working but then all of sudden it stopped, I think my project
got corrupted. But I'm pretty sure I got to work by messing around
with different configurations, but can't remember what exactly I did
and what worked.

I checked the classpath under run config like you suggested, but not
sure what it's supposed to look like. Here is what it has:

->Bootstrap entries
JRE System Library
->User entries
src-\SimpleMaps\
->SimpleMaps(default classpath)
SimpleMaps
App engine SDK
GWT SDK
gwt-maps2.jar-C:path...

What needs to be changed?


Thanks!
> > org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(Looku­pEnvironment.java:
> > 122)
> >     at
> > org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(Pa­ckageBinding.java:
> > 181)
> >     at
> > org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:
> > 2460)

Thomas Broyer

unread,
Oct 1, 2010, 7:40:29 PM10/1/10
to Google Web Toolkit


On 1 oct, 22:59, tashi <na.aleksandr...@gmail.com> wrote:
> Thank you so much for replying.. I need to get this done in a week. I
> had it working but then all of sudden it stopped, I think my project
> got corrupted. But I'm pretty sure I got to work by messing around
> with different configurations, but can't remember what exactly I did
> and what worked.
>
> I checked the classpath under run config like you suggested, but not
> sure what it's supposed to look like. Here is what it has:
>
> ->Bootstrap entries
>        JRE System Library
> ->User entries
>        src-\SimpleMaps\
>        ->SimpleMaps(default classpath)
>              SimpleMaps
>              App engine SDK
>              GWT SDK
>              gwt-maps2.jar-C:path...
>
> What needs to be changed?

Given the error "sun.misc.InvalidJarIndexException: Invalid index" it
looks like a corrupted JAR file; have you tried re-downloadeing the
App Engine SDK, GWT SDK and/or gwt-maps2?

tashi

unread,
Oct 1, 2010, 7:41:43 PM10/1/10
to Google Web Toolkit
So here is an update I recreated the project again. I created one
using eclipse and workspace of my flashdrive, second one using eclipse
+workspace on my desktop. Different names of the project everything
else is the same. The one from my flashdrive worked right away, the
one from my desktop gives error in the browser "HTTP ERROR 404"
"Problem accessing/GMapsProject.html Reason: NOT_FOUND"
How can two identical projects produce different results??!!! I'm so
confused ... I need the project to run from computer its really
inconviniet to run from a flash drive.

On Oct 1, 5:43 am, Артём <artem...@gmail.com> wrote:

tashi

unread,
Oct 1, 2010, 10:16:40 PM10/1/10
to Google Web Toolkit
I redid everything on my desktop with fresh download of elipse and
everything else, maybe I downloaded corrupted .jar file.
But now I went back to my laptop and redid the projects. Right now I
have 3 and randomly work whenever either one of them feels like
working.. I'm so confused, either I'm doing something wrong, or it's
just playing games with me. It's very unstable it'll work but later
I'll get "http 404 error file not found" what does that mean? is that
the problem with google maps side?
> App Engine SDK, GWT SDK and/or gwt-maps2?- Hide quoted text -
>
> - Show quoted text -

John Huss

unread,
Aug 31, 2011, 12:14:56 PM8/31/11
to google-we...@googlegroups.com
You can try regenerating the jar index by running this command:

jar i gwt-maps.jar
Reply all
Reply to author
Forward
0 new messages