Re: GWT Maven Install compile error java.lang.NullPointerException at com.google.gwt.dev.util.DiskCache.transferToStream(DiskCache.java:187)
Jens right. I'll just post the full configuration: org.codehaus.mojo gwt-maven-plugin ${gwtVersion} compile true etsyheroku.html ${webappDirectory} On Tuesday, December 3, 2013 10:05:08 PM UTC+2, umesh shaw wrote: > > I am having this error. tried all the option to delete gwt cache, temp > folder, etc from online. but still no luck > > Please help.. > > [ERROR] Exception in thread "pool-1-thread-323" > *java.lang.NullPointerException* > > [ERROR] at com.google.gwt.dev.util.DiskCache.transferToStream( > *DiskCache.java:187*) > > [ERROR] at com.google.gwt.dev.util.DiskCacheToken.writeObject( > *DiskCacheToken.java:91*) > > [ERROR] at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown > Source) > > [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke( > *DelegatingMethodAccessorImpl.java:25*) > > [ERROR] at java.lang.reflect.Method.invoke(*Method.java:597*) > > [ERROR] at java.io.ObjectStreamClass.invokeWriteObject( > *ObjectStreamClass.java:940*) > > [ERROR] at java.io.ObjectOutputStream.writeSerialData( > *ObjectOutputStream.java:1469*) > > [ERROR] at java.io.ObjectOutputStream.writeOrdinaryObject( > *ObjectOutputStream.java:1400*) > > [ERROR] at java.io.ObjectOutputStream.writeObject0( > *ObjectOutputStream.java:1158*) > > [ERROR] at java.io.ObjectOutputStream.defaultWriteFields( > *ObjectOutputStream.java:1518*) > > [ERROR] at java.io.ObjectOutputStream.defaultWriteObject( > *ObjectOutputStream.java:422*) > > [ERROR] at > com.google.gwt.dev.javac.CachedCompilationUnit.writeObject( > *CachedCompilationUnit.java:222*) > > [ERROR] at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown > Source) > > [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke( > *DelegatingMethodAccessorImpl.java:25*) > > [ERROR] at java.lang.reflect.Method.invoke(*Method.java:597*) > > [ERROR] at java.io.ObjectStreamClass.invokeWriteObject( > *ObjectStreamClass.java:940*) > > [ERROR] at java.io.ObjectOutputStream.writeSerialData( > *ObjectOutputStream.java:1469*) > > [ERROR] at java.io.ObjectOutputStream.writeOrdinaryObject( > *ObjectOutputStream.java:1400*) > > [ERROR] at java.io.ObjectOutputStream.writeObject0( > *ObjectOutputStream.java:1158*) > > [ERROR] at java.io.ObjectOutputStream.writeObject( > *ObjectOutputStream.java:330*) > > [ERROR] at com.google.gwt.dev.javac.PersistentUnitCache$6.run( > *PersistentUnitCache.java:446*) > > [ERROR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask( > *ThreadPoolExecutor.java:895*) > > [ERROR] at java.util.concurrent.ThreadPoolExecutor$Worker.run( > *ThreadPoolExecutor.java:918*) > > [ERROR] at java.lang.Thread.run(*Thread.java:662*) > > [ERROR] Exception in thread "pool-1-thread-322" > *java.lang.NullPointerException* > > [ERROR] at com.google.gwt.dev.util.DiskCache.transferToStream( > *DiskCache.java:187*) > > [ERROR] at com.google.gwt.dev.util.DiskCacheToken.writeObject( > *DiskCacheToken.java:91*) > > [ERROR] at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown > Source) > > [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke( > *DelegatingMethodAccessorImpl.java:25*) > > [ERROR] at java.lang.reflect.Method.invoke(*Method.java:597*) > > [ERROR] at java.io.ObjectStreamClass.invokeWriteObject( > *ObjectStreamClass.java:940*) > > [ERROR] at java.io.ObjectOutputStream.writeSerialData( > *ObjectOutputStream.java:1469*) > > [ERROR] at java.io.ObjectOutputStream.writeOrdinaryObject( > *ObjectOutputStream.java:1400*) > > [ERROR] at java.io.ObjectOutputStream.writeObject0( > *ObjectOutputStream.java:1158*) > > [ERROR] at java.io.ObjectOutputStream.defaultWriteFields( > *ObjectOutputStream.java:1518*) > > [ERROR] at java.io.ObjectOutputStream.defaultWriteObject( > *ObjectOutputStream.java:422*) > > [ERROR] at > com.google.gwt.dev.javac.CachedCompilationUnit.writeObject( > *CachedCompilationUnit.java:222*) > > [ERROR] at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown > Source) > > [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke( > *DelegatingMethodAccessorImpl.java:25*) > > [ERROR] at java.lang.reflect.Method.invoke(*Method.java:597*) > > [ERROR] at java.io.ObjectStreamClass.invokeWriteObject( > *ObjectStreamClass.java:940*) > > [ERROR] at java.io.ObjectOutputStream.writeSerialData( > *ObjectOutputStream.java:1469*) > > [ERROR] at java.io.ObjectOutputStream.writeOrdinaryObject( > *ObjectOutputStream.java:1400*) > > [ERROR] at java.io.Obj
Re: GWT Maven Install compile error java.lang.NullPointerException at com.google.gwt.dev.util.DiskCache.transferToStream(DiskCache.java:187)
Try true in your gwt-maven-plugin configuration. Maybe you have libraries in your project that interference with embedded libraries in gwt-dev.jar. -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT Maven Install compile error java.lang.NullPointerException at com.google.gwt.dev.util.DiskCache.transferToStream(DiskCache.java:187)
I am having the same problem. Did you get to solve it? On Tuesday, December 3, 2013 9:05:08 PM UTC+1, umesh shaw wrote: > > I am having this error. tried all the option to delete gwt cache, temp > folder, etc from online. but still no luck > > Please help.. > > [ERROR] Exception in thread "pool-1-thread-323" > *java.lang.NullPointerException* > > [ERROR] at com.google.gwt.dev.util.DiskCache.transferToStream( > *DiskCache.java:187*) > > [ERROR] at com.google.gwt.dev.util.DiskCacheToken.writeObject( > *DiskCacheToken.java:91*) > > [ERROR] at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown > Source) > > [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke( > *DelegatingMethodAccessorImpl.java:25*) > > [ERROR] at java.lang.reflect.Method.invoke(*Method.java:597*) > > [ERROR] at java.io.ObjectStreamClass.invokeWriteObject( > *ObjectStreamClass.java:940*) > > [ERROR] at java.io.ObjectOutputStream.writeSerialData( > *ObjectOutputStream.java:1469*) > > [ERROR] at java.io.ObjectOutputStream.writeOrdinaryObject( > *ObjectOutputStream.java:1400*) > > [ERROR] at java.io.ObjectOutputStream.writeObject0( > *ObjectOutputStream.java:1158*) > > [ERROR] at java.io.ObjectOutputStream.defaultWriteFields( > *ObjectOutputStream.java:1518*) > > [ERROR] at java.io.ObjectOutputStream.defaultWriteObject( > *ObjectOutputStream.java:422*) > > [ERROR] at > com.google.gwt.dev.javac.CachedCompilationUnit.writeObject( > *CachedCompilationUnit.java:222*) > > [ERROR] at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown > Source) > > [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke( > *DelegatingMethodAccessorImpl.java:25*) > > [ERROR] at java.lang.reflect.Method.invoke(*Method.java:597*) > > [ERROR] at java.io.ObjectStreamClass.invokeWriteObject( > *ObjectStreamClass.java:940*) > > [ERROR] at java.io.ObjectOutputStream.writeSerialData( > *ObjectOutputStream.java:1469*) > > [ERROR] at java.io.ObjectOutputStream.writeOrdinaryObject( > *ObjectOutputStream.java:1400*) > > [ERROR] at java.io.ObjectOutputStream.writeObject0( > *ObjectOutputStream.java:1158*) > > [ERROR] at java.io.ObjectOutputStream.writeObject( > *ObjectOutputStream.java:330*) > > [ERROR] at com.google.gwt.dev.javac.PersistentUnitCache$6.run( > *PersistentUnitCache.java:446*) > > [ERROR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask( > *ThreadPoolExecutor.java:895*) > > [ERROR] at java.util.concurrent.ThreadPoolExecutor$Worker.run( > *ThreadPoolExecutor.java:918*) > > [ERROR] at java.lang.Thread.run(*Thread.java:662*) > > [ERROR] Exception in thread "pool-1-thread-322" > *java.lang.NullPointerException* > > [ERROR] at com.google.gwt.dev.util.DiskCache.transferToStream( > *DiskCache.java:187*) > > [ERROR] at com.google.gwt.dev.util.DiskCacheToken.writeObject( > *DiskCacheToken.java:91*) > > [ERROR] at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown > Source) > > [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke( > *DelegatingMethodAccessorImpl.java:25*) > > [ERROR] at java.lang.reflect.Method.invoke(*Method.java:597*) > > [ERROR] at java.io.ObjectStreamClass.invokeWriteObject( > *ObjectStreamClass.java:940*) > > [ERROR] at java.io.ObjectOutputStream.writeSerialData( > *ObjectOutputStream.java:1469*) > > [ERROR] at java.io.ObjectOutputStream.writeOrdinaryObject( > *ObjectOutputStream.java:1400*) > > [ERROR] at java.io.ObjectOutputStream.writeObject0( > *ObjectOutputStream.java:1158*) > > [ERROR] at java.io.ObjectOutputStream.defaultWriteFields( > *ObjectOutputStream.java:1518*) > > [ERROR] at java.io.ObjectOutputStream.defaultWriteObject( > *ObjectOutputStream.java:422*) > > [ERROR] at > com.google.gwt.dev.javac.CachedCompilationUnit.writeObject( > *CachedCompilationUnit.java:222*) > > [ERROR] at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown > Source) > > [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke( > *DelegatingMethodAccessorImpl.java:25*) > > [ERROR] at java.lang.reflect.Method.invoke(*Method.java:597*) > > [ERROR] at java.io.ObjectStreamClass.invokeWriteObject( > *ObjectStreamClass.java:940*) > > [ERROR] at java.io.ObjectOutputStream.writeSerialData( > *ObjectOutputStream.java:1469*) > > [ERROR] at java.io.ObjectOutputStream.writeOrdinaryObject( > *ObjectOutputStream.java:1400*) > > [ERROR] at java.io.ObjectOutputStream.writeObject0( > *ObjectOutputStream.java:1158*) > > [ERROR] at java.io.ObjectOutputStream.writeObject( > *ObjectOutputStream.java:330*) > > [ERROR] at com.google.gwt.dev.javac.PersistentUnitCache$6.run( > *PersistentUnitCache.java:446*) > > [ERROR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask( > *ThreadPoolExecutor.java:895*) > > [ERROR] at java.util.concurrent.ThreadPoolExecutor$Worker.run
GWT Maven Install compile error java.lang.NullPointerException at com.google.gwt.dev.util.DiskCache.transferToStream(DiskCache.java:187)
I am having this error. tried all the option to delete gwt cache, temp folder, etc from online. but still no luck Please help.. [ERROR] Exception in thread "pool-1-thread-323" *java.lang.NullPointerException* [ERROR] at com.google.gwt.dev.util.DiskCache.transferToStream( *DiskCache.java:187*) [ERROR] at com.google.gwt.dev.util.DiskCacheToken.writeObject( *DiskCacheToken.java:91*) [ERROR] at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke( *DelegatingMethodAccessorImpl.java:25*) [ERROR] at java.lang.reflect.Method.invoke(*Method.java:597*) [ERROR] at java.io.ObjectStreamClass.invokeWriteObject( *ObjectStreamClass.java:940*) [ERROR] at java.io.ObjectOutputStream.writeSerialData( *ObjectOutputStream.java:1469*) [ERROR] at java.io.ObjectOutputStream.writeOrdinaryObject( *ObjectOutputStream.java:1400*) [ERROR] at java.io.ObjectOutputStream.writeObject0( *ObjectOutputStream.java:1158*) [ERROR] at java.io.ObjectOutputStream.defaultWriteFields( *ObjectOutputStream.java:1518*) [ERROR] at java.io.ObjectOutputStream.defaultWriteObject( *ObjectOutputStream.java:422*) [ERROR] at com.google.gwt.dev.javac.CachedCompilationUnit.writeObject( *CachedCompilationUnit.java:222*) [ERROR] at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke( *DelegatingMethodAccessorImpl.java:25*) [ERROR] at java.lang.reflect.Method.invoke(*Method.java:597*) [ERROR] at java.io.ObjectStreamClass.invokeWriteObject( *ObjectStreamClass.java:940*) [ERROR] at java.io.ObjectOutputStream.writeSerialData( *ObjectOutputStream.java:1469*) [ERROR] at java.io.ObjectOutputStream.writeOrdinaryObject( *ObjectOutputStream.java:1400*) [ERROR] at java.io.ObjectOutputStream.writeObject0( *ObjectOutputStream.java:1158*) [ERROR] at java.io.ObjectOutputStream.writeObject( *ObjectOutputStream.java:330*) [ERROR] at com.google.gwt.dev.javac.PersistentUnitCache$6.run( *PersistentUnitCache.java:446*) [ERROR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask( *ThreadPoolExecutor.java:895*) [ERROR] at java.util.concurrent.ThreadPoolExecutor$Worker.run( *ThreadPoolExecutor.java:918*) [ERROR] at java.lang.Thread.run(*Thread.java:662*) [ERROR] Exception in thread "pool-1-thread-322" *java.lang.NullPointerException* [ERROR] at com.google.gwt.dev.util.DiskCache.transferToStream( *DiskCache.java:187*) [ERROR] at com.google.gwt.dev.util.DiskCacheToken.writeObject( *DiskCacheToken.java:91*) [ERROR] at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke( *DelegatingMethodAccessorImpl.java:25*) [ERROR] at java.lang.reflect.Method.invoke(*Method.java:597*) [ERROR] at java.io.ObjectStreamClass.invokeWriteObject( *ObjectStreamClass.java:940*) [ERROR] at java.io.ObjectOutputStream.writeSerialData( *ObjectOutputStream.java:1469*) [ERROR] at java.io.ObjectOutputStream.writeOrdinaryObject( *ObjectOutputStream.java:1400*) [ERROR] at java.io.ObjectOutputStream.writeObject0( *ObjectOutputStream.java:1158*) [ERROR] at java.io.ObjectOutputStream.defaultWriteFields( *ObjectOutputStream.java:1518*) [ERROR] at java.io.ObjectOutputStream.defaultWriteObject( *ObjectOutputStream.java:422*) [ERROR] at com.google.gwt.dev.javac.CachedCompilationUnit.writeObject( *CachedCompilationUnit.java:222*) [ERROR] at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke( *DelegatingMethodAccessorImpl.java:25*) [ERROR] at java.lang.reflect.Method.invoke(*Method.java:597*) [ERROR] at java.io.ObjectStreamClass.invokeWriteObject( *ObjectStreamClass.java:940*) [ERROR] at java.io.ObjectOutputStream.writeSerialData( *ObjectOutputStream.java:1469*) [ERROR] at java.io.ObjectOutputStream.writeOrdinaryObject( *ObjectOutputStream.java:1400*) [ERROR] at java.io.ObjectOutputStream.writeObject0( *ObjectOutputStream.java:1158*) [ERROR] at java.io.ObjectOutputStream.writeObject( *ObjectOutputStream.java:330*) [ERROR] at com.google.gwt.dev.javac.PersistentUnitCache$6.run( *PersistentUnitCache.java:446*) [ERROR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask( *ThreadPoolExecutor.java:895*) [ERROR] at java.util.concurrent.ThreadPoolExecutor$Worker.run( *ThreadPoolExecutor.java:918*) [ERROR] at java.lang.Thread.run(*Thread.java:662*) [ERROR] Exception in thread "pool-1-thread-321" *java.lang.NullPointerException* [ERROR] at com.google.gwt.dev.util.DiskCache.transferToStream( *DiskCache.java:187*) [ERROR] at com.google.gwt.dev.util.DiskCacheToken.writeObject( *DiskCacheToken.java:91*) [ERROR]
Re: java.lang.NullPointerException at com.google.gwt.dev.util.DiskCache.transferToStream(DiskCache.java:187)
Had the same problem. Problem was because of presence of another JdtCompiler (those one with Tomcat in my case) in class path which was run instead of GWT's one. On Monday, March 25, 2013 2:25:29 AM UTC+2, Kris wrote: > > GWT 2.5.1 > Maven 3.0.4 > > Hi, suddenly I get this error, and I google it for a while now, and can > see others had the problem. > But no solution... > > * java.lang.NullPointerException* > *[ERROR] at > com.google.gwt.dev.util.DiskCache.transferToStream(DiskCache.java:187)* > *[ERROR] at > com.google.gwt.dev.util.DiskCacheToken.writeObject(DiskCacheToken.java:91) > * > *[ERROR] at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)* > *[ERROR] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > * > > I did delete the gwt-unitCache folder, I deleted everything under target ( > maven project ) > I have space left on my disk. > > Attached a file with the full output.. > > Thanks. > > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: java.lang.NullPointerException at com.google.gwt.dev.util.DiskCache.transferToStream(DiskCache.java:187)
Hi Thomas, thanks for the reply. I found that the problem is with this dependency... org.jibx maven-jibx-plugin 1.2.5 And using true did solve the compile error. But why does this happen, I only use the jibx classes on the server ?? I did read your suggested posts, but in my case I would like to keep the GWT in one module.I have several modules, and actually two gwt apps, wanted to keep the modules down to a minimum. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: java.lang.NullPointerException at com.google.gwt.dev.util.DiskCache.transferToStream(DiskCache.java:187)
On Monday, March 25, 2013 1:25:29 AM UTC+1, Kris wrote: > > GWT 2.5.1 > Maven 3.0.4 > > Hi, suddenly I get this error, and I google it for a while now, and can > see others had the problem. > But no solution... > > * java.lang.NullPointerException* > *[ERROR] at > com.google.gwt.dev.util.DiskCache.transferToStream(DiskCache.java:187)* > *[ERROR] at > com.google.gwt.dev.util.DiskCacheToken.writeObject(DiskCacheToken.java:91) > * > *[ERROR] at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)* > *[ERROR] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > * > The only reason this can happen is if the JVM is shutting down while threads are trying to write to the DiskCache, which would be abnormal. And indeed it is: your problem is not this NPE, it's an internal compiler error: [INFO] [ERROR] Unexpected internal compiler error [INFO] java.lang.NoSuchFieldError: warningThreshold [INFO] at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:413) And this NoSuchFieldError can only happen if you have JDT/ECJ in your classpath (from a version incompatible with the one bundled within GWT). You're best option is to use separate client and server code in distinct artifacts (see https://github.com/tbroyer/gwt-maven-archetypes for examples, https://groups.google.com/d/topic/codehaus-mojo-gwt-maven-plugin-users/vrLAcqp5oAg/discussion for the rationale; see also https://plus.google.com/113945685385052458154/posts/RDrK7ukVFqJ if you're OK to try alpha software) but a short-term solution is to use gwtSdkFirstInClasspath: http://mojo.codehaus.org/gwt-maven-plugin/compile-mojo.html#gwtSdkFirstInClasspath -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.