Re: Recovering the source

2011-06-23 Thread Nathan Klatt
Thanks for the responses. Rather a bummer but not unexpected.

Maybe I can talk them into rebuilding with GWT because we do have most of 
the back-end logic available in the decompiled class files.

-- 
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/-/SWULCtcp5p8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Recovering the source

2011-06-22 Thread Nathan Klatt
I don't have much hope for this but is there any way to recover something 
reasonably approaching the original source of a GWT project given the 
generated class, html, JavaScript, etc files?

A client has given us the generated web application but does not have access 
to the original source and the original developers are unavailable. (Yes, 
this makes me nervous and, no, I don't know the full circumstances, but I'm 
not the one calling the shots here.)

If we can get it to a working state, we will probably continue pressing on 
with it as a GWT application. Otherwise, we will write it from scratch which 
means back to the PHP dungeon for me.

I have played around with decompiling the class files but I suspect a 
significant chunk of the client code remains hiding in the JavaScript, is 
that correct? How difficult will that be to replicate?

Can anyone offer some hope here?

-- 
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/-/DqHsbia0iasJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: No source code is available for type java.lang.NoSuchFieldError

2011-06-21 Thread Nathan Klatt
Makes perfect sense - thanks so much for the reply and the link!

-- 
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/-/96qmqceSNOQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: No source code is available for type java.lang.NoSuchFieldError

2011-06-21 Thread Nathan Klatt
Thanks for the idea - right now I'm strictly command-line (on a remote 
server) but I'll add this to my list of Reasons to Develop on My Local 
Machine with a GUI. :)

-- 
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/-/JJhcnb0gfEcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



No source code is available for type java.lang.NoSuchFieldError

2011-06-20 Thread Nathan Klatt
I've inherited a GWT project and I'm receiving the following compiler error 
(more info below):

[java] [ERROR] Line 51: No source code is available for type 
java.lang.NoSuchFieldError; did you forget to inherit a required module?

It's complaining about a core part of the language here, right? Why is it 
looking for source code for it at all? Is it not finding one of the core jar 
files? Do I need to point it at something in the ant build.xml file?

For testing purposes, I followed all the GWT 
instructionshttp://code.google.com/webtoolkit/gettingstarted.html, 
used webAppCreator to generate a Hello, world. app, and that builds and 
runs just fine. I added a simple try...catch(NoSuchFieldError err) - and an 
import java.lang.NoSuchFieldError line - and it gave me the error.

I'm new to this Java/GWT stuff so I suspect I'm missing something obvious - 
I'd love it if you could point out exactly what! :)

Thanks.

=

$ ant build
Buildfile: build.xml

libs:

javac:
[javac] Compiling 1 source file to 
/home/nklatt/gwt-2.3.0/MyWebApp/war/WEB-INF/classes

gwtc:
 [java] Compiling module com.mycompany.mywebapp.MyWebApp
 [java]Validating newly compiled units
 [java]   [ERROR] Errors in 
'file:/home/nklatt/gwt-2.3.0/MyWebApp/src/com/mycompany/mywebapp/client/MyWebApp.java'
 [java]  [ERROR] Line 51: No source code is available for type 
java.lang.NoSuchFieldError; did you forget to inherit a required module?
 [java]Finding entry point classes
 [java]   [ERROR] Unable to find type 
'com.mycompany.mywebapp.client.MyWebApp'
 [java]  [ERROR] Hint: Previous compiler errors may have made 
this type unavailable
 [java]  [ERROR] Hint: Check the inheritance chain from your 
module; it may not be inheriting a required module or a module may not be 
adding its source path entries properly

BUILD FAILED

-- 
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/-/X0WLWblX1GoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.