OW2 Forge: Detail: 100587 GenIC fails with CreateProcess

Advanced - Powered by Google

Log In
New Account
My Page
Project Tree
Project Openings

Tracker: Bugs

Submit New | Browse | Admin | ExportToXml

[ #100587 ] GenIC fails with CreateProcess

2003-12-08 15:05
Submitted By:
Helene Joanin (joaninh)
Assigned To:
Helene Joanin (joaninh)
GenIC fails with CreateProcess

Detailed description:
We may have this error on Windows. This is due to a too long javac command. See in the jonas-users mailing list: - -

Add A Comment:

Please login


Date: 2006-06-12 10:40
Sender: benoitf
Logged In: YES 

The command is present in the GenIC tool :
-invokecmd : invoke, in some case, directly the  method of
the java class corresponding to the command

Also, I ask to open a feature request as this bug was
already closed and there is an existing workaround.

Date: 2006-06-10 18:13
Sender: booster
Logged In: YES 

Is there is a way to turn on invokecmd switcher in JOnAS 4.
It would be greate because I don't want to use GenIC tool 
separately. I already have tuned up development environment 
that allows me to pack my 2 web modules and 1 EJB module 
into enterprise archive (EAR) and automatically deploys it 
to JOnAS and then JOnAS starts GenIC to generate stubs and 
skeletons. All this job done without ant scripts.
So I wouldn't like to write ant scripts to build web modules 
and EJB module and then call GenIC manually and then copy 
file to JOnAS.

I think this shouldn't be the feature request because user 
should know nothing about processing a large number of 
source files by GenIC.

This is just the bug of the GenIC tool and I just give you a 
link to the solution provided by Sun.
Date: 2006-06-10 15:59
Sender: benoitf
Logged In: YES 

ok thank for the tip, but for now, you can use the tools.jar
with invokecmd, no ?
If you can open a "new feature request" with the tip
with @
Date: 2006-06-10 15:52
Sender: booster
Logged In: YES 

I surmise that the right solution can be found by the 
following link:
Quote from this link:
"There are two ways to pass source code file names to javac:
For a small number of source files, simply list the file 
names on the command line. 

For a large number of source files, list the file names in a 
file, separated by blanks or line breaks. Then use the list 
file name on the javac command line, preceded by an @ 

Please fix this annoying bug as soon as possible.
Date: 2006-06-10 15:29
Sender: booster
Logged In: YES 

I'm using JOnAS 4.6.6 and I still have this problem with 
GenIC on Windows XP.

There are 52 EJB's in my project and this number will 
continue to grow.

Workaround proposed by hanzz no longer helps me cause 
project is growing.
Date: 2004-01-28 09:13
Sender: joaninh
Logged In: YES 

Fixed in JOnAS version > 3.3.5
Date: 2004-01-16 14:04
Sender: joaninh
Logged In: YES 

A modification had be done  in JOnAS 3.3.5+ and 4.0.a1
to be able to work around this problem.

An option '-invokecmd' is added to GenIC and the Guillaume
Toloup's contribution is integrated:
There is also a new attribute "invokecmd" to the JOnAS
ejbjar task, equivalent to this -invokecmd option.
(default value is "false").
Note that tools.jar must be accessible via the classpath.

This fix has to be tested...

Date: 2003-12-08 15:36
Sender: hanzz
Temporary workaround on Windows: 
GenIC uses the environment-variable TEMP to create it's temporary
files. On Windows2k/XP this is by default C:\documents and
settings\username\local blablab\temp - a rather LONG path for
each file.

set the TEMP variable to a short directory like C:\TMP and you
can avoid GenIC to fail... but if the project grows the failure
will come up again...

Attached Files:

Name Description Download
No Files Currently Attached


Resource id #66listtable
close_date close_date status_id resolution_id close_date assigned_to
Field Old Value Date By
close_date2006-06-12 10:402006-06-12 10:40benoitf
close_date2006-06-10 15:592006-06-10 15:59benoitf
status_idOpen2004-01-28 09:13joaninh
resolution_idNone2004-01-28 09:13joaninh
close_date2004-01-28 09:132004-01-28 09:13joaninh
assigned_tonone2004-01-15 08:35joaninh

Copyright © 1999-2008, OW2 Consortium | contact | You have a difficulty, a problem ? Please report an issue using your OW2 forge account credentials