This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Dreaded error=87

Mar 19th, 2011, 01:12 PM

I had this problem using STS 2.5.2 and was going to report it today, when I saw that 2.6.0 had been released.
I removed my Maven repository and removed my Workspace.
Then I've done a full, clean install of STS and loaded the DataNucleus and Google enhancements.
I then run roo and enter the following :

After the first entity, I ran as a WebApp and then GWT compiled (pain, but the only way I can get it to work) - the first entity was enterable/editable etc.
Using the same procedure, I then created the second entitya ... and got this

Code:

Cannot run program "F:\Tools\jdk6\bin\javaw.exe" (in directory "F:\Workspace\FavershamArts"): CreateProcess error=87, The parameter is incorrect
Cannot run program "F:\Tools\jdk6\bin\javaw.exe" (in directory "F:\Workspace\FavershamArts"): CreateProcess error=87, The parameter is incorrect

As I said, I have had this error using both STS 2.5.2 and 6.

How come I can't create a project with 2 entities!!!?

I know it's a windows command-line error (too long) - but I can't identify what I can shorten (or remove)

Comment

In order to run it at all, I discovered the following process works (ish):

Build Project
Run as ... Web Application
Wait for the server to start
Press the GWT compile button
Once compiled, navigate to the page

This works when I have one entity, and I can Create/Save/View data using the generated CRUD screens.
The Build Project step fails when I have 2 entities

I think it is caused by the command line having too much data on it - this is a known problem - but I'm not sure if it's the DataNucleusEnhancer trying to run javaw or Eclipse trying to run DataNucleusEnhancer.

The thing is that I can't see the command line (or classpath) being used to try to shorten it - and I have no idea where the command is being called from (presumably Maven?)

When restarting the roo console, I have this message (that I think is secondary), but I think the check should be done before accepting the command:

'owner' is not allowed to be used as field name as it is currently reserved by GWT. Please rename the field 'owner' in type Place.
Updated SRC_MAIN_JAVA\fr\test\client\managed\request\Perso nProxy.java
Updated SRC_MAIN_JAVA\fr\test\client\managed\request\Perso nRequest.java

I understand that being an early adopter can cause some frustrating experience, but I seriously think there should be a better unit testing for the next releases: the most stable version of Roo seams to be still the 1.0.0 (for my own experience with GWT and GAE)

Best Regards,
Zied Hamdi

Comment

I tried to change the configuration of my project to use my installations of roo and gwt rather that the one by default :
C:\Documents and Settings\Zied Hamdi\.m2\repository\com\google\appengine\appengin e-api-1.0-sdk\1.4.0

but there seams to be a trigger in Roo that changes the settings after me to these values (I don't think it's a good thing to oblige the user to have a given setting for the project, you can fill that value the first time to have a working project by default, but let us change the value if we want to) especially that in this case, where I suppose the problem is coming from the spaces in the url, i'm not able to fix the problem manually. grrrr...