SuperDevoMode and Source Maps

383 views
Skip to first unread message

Adolfo Panizo Touzon

unread,
Aug 8, 2012, 3:42:57 AM8/8/12
to google-we...@googlegroups.com
Hi all,

I am trying to user SuperDevMode with SourceMaps but I think I am doing something wrong.

I succeeded running the code server as a Java process (I have the bookmarks "Dev mode on" and "Dev mode off" in my browser's tab), also I have running the app without problems and even if I make click on "Dev mode on" tab, the app's compilation works perfect.

But it's impossible for me find the .java files in the Developer Tools's Scripts. In the classpath's tab I've added the src folder of my app (when I created the Java app in order to serve to the browser the non optimized JS).

Further info: If I go to localhost:9087/myApp, I can see the nomal files that you obtain when you compile the app (many files XXX.gwt.rpc and the common myapp.noche.js, myap.devmode.js), and this files also appear in the Developer Tools's Scripts instead of the .java files.

So, what I am missing?

Thank you in advance.

Adolfo.




--
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

Paul Robinson

unread,
Aug 8, 2012, 4:52:05 AM8/8/12
to google-we...@googlegroups.com
Have you enabled source map support in chrome? Click the settings cog/wheel thing in the bottom-right corner, and tick "Enable source maps".

Also, you must compile while the developer tools tab is open, or else it won't show the java source code.

HTH
Paul
> --
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> 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.

Adolfo Panizo Touzon

unread,
Aug 8, 2012, 5:03:11 AM8/8/12
to google-we...@googlegroups.com
Hi Paul,

thank you for answering.

Yes, I had the source maps enabled, and I did the compilation with the developers Tools open and it's the same.

I can see the myapp.devmode.js and the myapp.nocache.js, but not the code.

It's strange because in the work dir ( -workDir The root of the directory tree where the code server will write compiler output. If not supplied, a temporary directory will be used.), I can see the java files.

It could be something related with the -src flag when I am launching the Java app?? (I am using  -src C:\myWorkSpace\myWebApp\src\myapp\client)

Thanks in advance,

Adolfo.




2012/8/8 Paul Robinson <ukcu...@gmail.com>

Julien Dramaix

unread,
Aug 8, 2012, 9:24:08 AM8/8/12
to google-we...@googlegroups.com
Do you add these two lines in your gwt.xml file :

<add-linker name="xsiframe"/>

<set-configuration-property name="devModeRedirectEnabled" value="true"/>



2012/8/8 Paul Robinson <ukcu...@gmail.com>
> To unsubscribe from this group, send email to google-web-toolkit+unsub...@googlegroups.com.

> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Thomas Broyer

unread,
Aug 8, 2012, 9:54:41 AM8/8/12
to google-we...@googlegroups.com
I might be wrong (this is from memory) but myapp.devmode.is rings a bell: are you by any mean running in DevMode? I.e. do you have ?gwt.codesvr= in your URL?

Adolfo Panizo Touzon

unread,
Aug 8, 2012, 10:37:23 AM8/8/12
to google-we...@googlegroups.com
Thomas, you are right! Now I can see all the code, but.... I am receiving SOP problems.

I've read in other posts that if I copy/paste all the *.gwt.rpc files into my war folder, I can avoid that problems... is that correct?

But... when I am trying to compile the app I receive this error:

Compiling module uk.co.myApp.appName
   [WARN] Unable to read: jar:file:/C:/gwt-2.5.0.rc1/gwt-user.jar!/com/google/gwt/user/User.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837
   [WARN] Unable to read: jar:file:/C:/gwt-2.5.0.rc1/gwt-user.jar!/com/google/gwt/core/Core.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837
   [WARN] Unable to read: jar:file:/C:/gwt-2.5.0.rc1/gwt-user.jar!/com/google/gwt/logging/Logging.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837
   [ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
....
....
Caused by: java.io.InvalidClassException: com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream classdesc serialVersionUID = -2407201776821563037, local class serialVersionUID = 4713379764594032837
at java.io.InvalidClassException.<init>(InvalidClassException.java:62)
...

I've seen here   that maybe is a bug (I am using RAD and WebSphere from IBM).

Any ideas?

Thank you in advance.

Adolfo.

2012/8/8 Thomas Broyer <t.br...@gmail.com>
I might be wrong (this is from memory) but myapp.devmode.is rings a bell: are you by any mean running in DevMode? I.e. do you have ?gwt.codesvr= in your URL?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

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.

Smithimage

unread,
Oct 19, 2012, 10:27:02 AM10/19/12
to google-we...@googlegroups.com

Hi there Adolfo!

Did you find a solution to this problem?

I seem to have encountered a similar issue.. However I am developing on a Mac OSX (lion)

Best regards!

Smithimage
Reply all
Reply to author
Forward
0 new messages