Hello all, I can now confirm the 1.7.1 gwt-servlet.jar file was being
used in my WEB-INF/lib folder output by IntelliJ IDEA 9.0.1.

I thought I had removed all references to 1.7.1 from IntelliJ when I
updated to 2.0.2, but since JetBrains have introduced these new, darn-
fangled "artifacts" in IntelliJ 9.x, there is now one more place to
look and check for library files -- as if there wasn't enough places
in IntelliJ already...

So, while I used 2.0.2 gwt-user.jar and gwt-servlet.jar as
dependencies when compiling I had errantly not checked the new
artifacts configuration in the project structure, which is where the
files output to WEB-INF/lib are specified.

So, in the end, the error messages were all my fault <red-faced> and I
deeply apologise for wasting everybody's time.

Besides checking for everything myself, what really clued me in was
the link Trevor Skaife provided:

http://www.google.com/url?sa=D&q=http://code.google.com/p/google-web-toolkit/issues/detail%3Fid%3D4363%26q%3DParameter%25200%2520of%2520is%2520of%2520an%2520unknown%2520type&usg=AFQjCNFpbG55iGzVS5lAa1o1iTL4tFa88g

particularly at the end, where Thobias Karlsson says things worked for
him when he removed the gwt-servlet.jar from WEB-INF/lib and assumed
(correctly) that the one sitting there previously was an older version
of gwt-servlet.jar.  My solution wasn't to remove it entirely, just be
sure the correct version is there!

That's the problem with using these modern IDE's, you tend to lose
some control.  I miss good ol' UNIX 'make' when I used to be a 'C'
programmer <mumble,mumble> years ago!

Thank you to EVERYONE who participated in this discussion.  All your
comments did help, because I started to realise it was something *I*
was doing wrong after all.  In the end, I really couldn't believe GWT
was up to 2.0.2 with a problem like this one, but I do see others
stumbling over it too.  Hopefully this discussion is helpful to those
others in this respect.

Cheers and THANK YOU!

- Garry


On Feb 19, 10:23 am, Trevor Skaife <[email protected]> wrote:
> I've also had a similar error before when going from 1.7.1 to 2.0.0.
> And I had the same problem as Flemming above, I had both 1.7.1 and
> 2.0.0 jars in my classpath, the 1.7.1 jar still happened to be in my
> lib folder. I've never had a problem since then with either 2.0.0 and
> 2.0.2.
>
> If you really think it's a bug maybe you should report 
> ithttp://code.google.com/p/google-web-toolkit/issues/list
>
> Trevor
>
> On Feb 19, 7:29 am, gazarcher <[email protected]> wrote:
>
> > Thanks for the reply.
>
> > I only had GWT 2.0.2 in my classpath when I got the error (which,
> > incidentally, is caused when a callback throws an exception and the
> > callback's onFailure() method is called.  The actual exception thrown
> > is a com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException
> > during a com.google.gwt.user.server.rpc.RPC.decodeRequest).
>
> > I am having no problems with GWT 1.7.1 using the same codebase in my
> > project (i.e., my code hasn't changed and I'm confident it is nothing
> > I did in my code to cause the error).
>
> > Before I dare try GWT 2.0.x again, I need to see some response that
> > this error has been fixed (by the GWT team).
>
> > - Garry
>
> > On Feb 19, 3:44 am, Flemming Boller <[email protected]> wrote:
>
> > > I had the same error , but it was because I had a mix of GWT 2 and GWT 1.7
> > > jarfiles on my running classpath. (also using Intellij)
>
> > > Br
> > > Flemming
>
> > > On Thu, Feb 18, 2010 at 11:47 PM, gazarcher <[email protected]> 
> > > wrote:
> > > > Up until this week I was using IntelliJ IDEA 9.0 with GWT 1.7.1 on Mac
> > > > OS X 10.5 and decided to upgrade to GWT 2.0.2 per the instructions on
> > > > the GWT Website, including installing the GWT plugin into Firefox.
>
> > > > After recompiling and running my application with several GWT modules
> > > > and running in Firefox 3.5.7, Firefox 3.6 and Safari 4.0.3, the GWT
> > > > modules all give the same error:
>
> > > >    Parameter 0 of is of an unknown type 'java.lang.String/2004016611'
>
> > > > but even before that GWT spewed "ERROR: Failed to parse the policy
> > > > file <policy file pathname>" for each module.
>
> > > > I've cleaned out output folders/directories in IntelliJ, deleted
> > > > caches for IntelliJ and Firefox, and tried again, but with the same
> > > > result.  Nothing has changed in my code.
>
> > > > I cleared out output folders/directories in IntelliJ, deleted caches
> > > > for IntelliJ and Firefox again and uninstalled GWT 2.0.2 from my
> > > > IntelliJ project, reinstalled GWT 1.7.1, compiled and every thing ran
> > > > fine again.
>
> > > > I've looked around the discussion groups and other people appear to be
> > > > having the same problem with GWT 2.0.x.. so even though GWT 2.0 has
> > > > gone through beta, early access, etc., and has now gone up two more
> > > > versions, this is still an issue, and not just for me.  I understand
> > > > the GWT version 1.0.7511 plugin for Firefox also has an issue for some
> > > > folks.  I don't know if it is this causing the problem.
>
> > > > Is anybody actually working with GWT 2.0 in their projects?  If so, is
> > > > there a workaround for this issue if they hit the same problem?
>
> > > > Is anyone on the GWT team aware of this issue and working on it?
>
> > > > At the moment, GWT 2.0.x is unusable for me and trying to use it is
> > > > holding up my work.  I'm going back to GWT 1.7.1 until I find a
> > > > solution (or you do!).
>
> > > > Any help on this matter is *greatly* appreciated.
>
> > > > Cheers,
> > > > - Garry
>
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to 
> > > > [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<google-web-toolkit%2Bunsubs
> > > >  [email protected]>
> > > > .
> > > > 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to