Re: GWT 2.4 DevMode almost always hangs at "Checking for updates"

425 views
Skip to first unread message

Dominique L.

unread,
Aug 10, 2012, 6:05:18 AM8/10/12
to Google Web Toolkit
I have never had this problem.
Do you use Internet Explorer (see "CheckForUpdatesIE6") ? Can you try
with Firefox ?

Dominique.

On Aug 8, 8:29 pm, Tim Boemker <t...@boemker.com> wrote:
> When I try to launch a GWT project, com.google.gwt.dev.DevMode hangs about 90% of the time after writing "Checking for updates" to the console.
>
> Here's the stack trace for the threads that look interesting:
>
> Thread [main] (Suspended)
>         DevMode(DevModeBase).ensureCodeServerListener() line: 925
>         DevMode(DevModeBase).doStartup(File) line: 915
>         DevMode.doStartup() line: 424
>         DevMode(DevModeBase).startUp() line: 1058
>         DevMode(DevModeBase).run() line: 811
>         DevMode.main(String[]) line: 311
> Thread [Thread-0] (Suspended)
>         URLClassPath.getLoader(int) line: 279
>         URLClassPath.getResource(String, boolean) line: 168
>         URLClassLoader$1.run() line: 194
>         AccessController.doPrivileged(PrivilegedExceptionAction<T>, AccessControlContext) line: not available [native method]
>         Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 190
>         Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 306
>         Launcher$AppClassLoader.loadClass(String, boolean) line: 301
>         Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 247
>         DescriptorProtos$DescriptorProto.<init>() line: 1539
>         DescriptorProtos$DescriptorProto.<clinit>() line: 1144
>         DescriptorProtos$FileDescriptorProto$Builder.mergeFrom(CodedInputStream, ExtensionRegistryLite) line: 769
>         DescriptorProtos$FileDescriptorProto$Builder.mergeFrom(CodedInputStream, ExtensionRegistryLite) line: 593
>         DescriptorProtos$FileDescriptorProto$Builder(AbstractMessage$Builder<Builde rType>).mergeFrom(CodedInputStream) line: 244
>         DescriptorProtos$FileDescriptorProto$Builder(AbstractMessage$Builder<Builde rType>).mergeFrom(CodedInputStream) line: 182
>         DescriptorProtos$FileDescriptorProto$Builder(AbstractMessageLite$Builder<Bu ilderType>).mergeFrom(byte[], int, int) line: 161
>         DescriptorProtos$FileDescriptorProto$Builder(AbstractMessage$Builder<Builde rType>).mergeFrom(byte[], int, int) line: 642
>         DescriptorProtos$FileDescriptorProto$Builder(AbstractMessage$Builder<Builde rType>).mergeFrom(byte[], int, int) line: 182
>         DescriptorProtos$FileDescriptorProto$Builder(AbstractMessageLite$Builder<Bu ilderType>).mergeFrom(byte[]) line: 152
>         DescriptorProtos$FileDescriptorProto$Builder(AbstractMessage$Builder<Builde rType>).mergeFrom(byte[]) line: 635
>         DescriptorProtos$FileDescriptorProto.parseFrom(byte[]) line: 542
>         Descriptors$FileDescriptor.internalBuildGeneratedFileFrom(String[], Descriptors$FileDescriptor[], Descriptors$FileDescriptor$InternalDescriptorAssigner) line: 276
>         DescriptorProtos.<clinit>() line: 8623
>         DescriptorProtos$FileOptions$OptimizeMode.<clinit>() line: 4717
>         DescriptorProtos$FileOptions.<init>() line: 4745
>         DescriptorProtos$FileOptions.<clinit>() line: 4635
>         DescriptorProtos$FileDescriptorProto.<init>() line: 428
>         DescriptorProtos$FileDescriptorProto.<clinit>() line: 332
>         Descriptors$FileDescriptor.internalBuildGeneratedFileFrom(String[], Descriptors$FileDescriptor[], Descriptors$FileDescriptor$InternalDescriptorAssigner) line: 276
>         RemoteMessageProto.<clinit>() line: 10853
>         RemoteMessageProto$Message$MessageType.<clinit>() line: 97
>         RemoteMessageProto$Message.<init>() line: 9822
>         RemoteMessageProto$Message.<clinit>() line: 15
>         MessageTransport$3.run() line: 320
>         Thread.run() line: 662
> Daemon Thread [GWT Update Checker] (Suspended)
>         ProviderConfig.getProvider() line: 188
>         ProviderList.getProvider(int) line: 215
>         ProviderList.getService(String, String) line: 313
>         GetInstance.getInstance(String, Class, String) line: 140
>         CertificateFactory.getInstance(String) line: 148
>         PKCS7.parseSignedData(DerValue) line: 244
>         PKCS7.parse(DerInputStream, boolean) line: 141
>         PKCS7.parse(DerInputStream) line: 110
>         PKCS7.<init>(byte[]) line: 92
>         SignatureFileVerifier.<init>(ArrayList, ManifestDigester, String, byte[]) line: 80
>         JarVerifier.processEntry(ManifestEntryVerifier) line: 267
>         JarVerifier.update(int, byte[], int, int, ManifestEntryVerifier) line: 199
>         JarFile.initializeVerifier() line: 323
>         JarFile.getInputStream(ZipEntry) line: 388
>         JarIndex.getJarIndex(JarFile, MetaIndex) line: 120
>         URLClassPath$JarLoader$1.run() line: 608
>         AccessController.doPrivileged(PrivilegedExceptionAction<T>) line: not available [native method]
>         URLClassPath$JarLoader.ensureOpen() line: 599
>         URLClassPath$JarLoader.<init>(URL, URLStreamHandler, HashMap<String,Loader>) line: 583
>         URLClassPath$3.run() line: 333
>         AccessController.doPrivileged(PrivilegedExceptionAction<T>) line: not available [native method]
>         URLClassPath.getLoader(URL) line: 322
>         URLClassPath.getLoader(int) line: 299
>         URLClassPath.access$000(URLClassPath, int) line: 60
>         URLClassPath$1.next() line: 195
>         URLClassPath$1.hasMoreElements() line: 206
>         URLClassLoader$3$1.run() line: 416
>         AccessController.doPrivileged(PrivilegedAction<T>, AccessControlContext) line: not available [native method]
>         URLClassLoader$3.next() line: 413
>         URLClassLoader$3.hasMoreElements() line: 438
>         CompoundEnumeration<E>.next() line: 27
>         CompoundEnumeration<E>.hasMoreElements() line: 36
>         Service$LazyIterator.hasNext() line: 255
>         Preferences.factory1() line: 263
>         Preferences.access$000() line: 208
>         Preferences$2.run() line: 255
>         Preferences$2.run() line: 253
>         AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]
>         Preferences.factory() line: 252
>         Preferences.<clinit>() line: 210
>         CheckForUpdatesIE6(CheckForUpdates).check(long) line: 263
>         DevModeBase$1.run() line: 905
>
> I would appreciate any help.
>
> Thanks,
>
> Tim

Thomas Broyer

unread,
Aug 10, 2012, 10:21:25 AM8/10/12
to google-we...@googlegroups.com
It's browser independent, but OS dependent. You can disable the update check though.

Sanjiv Jivan

unread,
Nov 13, 2012, 10:18:20 AM11/13/12
to google-we...@googlegroups.com
How can this check be disabled? 

Thanks,
Sanjiv


On Fri, Aug 10, 2012 at 10:21 AM, Thomas Broyer <t.br...@gmail.com> wrote:
It's browser independent, but OS dependent. You can disable the update check though.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/XOTHOZV1iaQJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Sanjiv Jivan

unread,
Nov 13, 2012, 11:02:09 AM11/13/12
to google-we...@googlegroups.com
It found the option : -XdisableUpdateCheck

The reason I need to disable this is because of classloader issues I'm running into with a custom PreferencesFactory implementation that our app uses. The DevMode check for update initializes the Preferences class outside the web app context class loader and the Preferences class uses a static final member variable for the factory.
Reply all
Reply to author
Forward
0 new messages