Error in Gen.bat for JAVA

eSky

eSky

Well Known Member
I am getting following error on launcing gen.bat.

Starting Generator with :
java Version "1.4.2_05"

JAVA <TM>2 RunTIme Environment, Standard EDition <build 1.4.2_05-b04>
JAva HotSpot<TM? Clinet VM <build 1.4.2_05-b04, mixed mode>
Invalid thread stack size: -Xss1m -classic -ms128m -mx512m
Could not create Java Virual Machine
Error!!!
Press any key to Continue . . .

Does Anyone faced same error before?


I am pasting my Gen.bat

Gen.BAT

@echo off
:please change to match the location of Java SDK on your machine,
:it should be exactly the same SDK as used by your WebServer

set JDK=C:\jdk\
if exist %JDK%\bin\java.exe goto start

echo No JDK found at location : %JDK%
goto error

:start

:please change for your 'local jas.ini' directory on your machine ( ONLY REQUIRED FOR >>Direct Generation<<)
set JAS_INI=C:\B7\system\Generator\WEB-INF

:please choose the appropriate Database Drivers ( ONLY REQUIRED FOR >>Direct Generation<<)
:AS400 jt400.jar
:SQLServer7 weblogic.zip
:Oracle classes12.jar
:UDB db2java.zip
:SQLServer2000 msbase.jar;msutil.jar;mssqlserver.jar


set DBDRIVERS=classes12.zip

:please set classpath to the required Files
set GEN_CLASSPATH=WEB-INF\classes;WEB-INF\lib\images.jar;WEB-INF\lib\xalan.jar;WEB-INF\lib\xerces.jar;WEB-INF\lib\OWResource.jar;%DBDRIVERS%


set GENERATOR_OPT="-Xss1m -classic -ms128m -mx512m"


echo Starting Generator with :
%JDK%\bin\java -version


%JDK%\bin\java %GENERATOR_OPT% -Ddefault_path=%JAS_INI% -classpath %GEN_CLASSPATH% com.jdedwards.runtime.generator.Generator %1



goto check

:check
if errorlevel 1 goto error
goto end
:error
Echo Error!!!
pause
:end
 
What version you running , E1 and WebSpehere. I notice that your JDK is 1.4.1...that aint aupported till WAS 6.0 I think.

If you are using WAS 5.0.2 you need to use JDK 1.3.1, and use the IBM JDK...makes it easier...
 
i faced the same problem with j2sdk ver. 1.4.2_04.......
i just replaced entry for GENERATOR_OPT in gen.bat as

set GENERATOR_OPT="-Djava.compiler=NONE"

after this i am able to run eGenerator successfully...hopefully this solution will work in your case
 
Hi Esky,

Just add one entry into the gen.bat. I think that it will works for you. This entry is missing in your gen.bat.

When the safe mode is activated, the Generator defaults to Sequential Generation during "Generate All," and inserts one object at a time to the serialized database. Safe Mode reduces the number of concurrent threads from 11 to 1, and enhances the stability, although the "safe mode" is 30% slower than regular parallel generation.

To activate Safe Mode, add the following text to the command line in the gen.bat file:

%JDK%\bin\java %GENERATOR_OPT%
blush.gif
-Dmode=safe
blush.gif

-Ddefault_path=%JAS_INI% -classpath %GEN_CLASSPATH%
com.jdedwards.runtime.generator.Generator %1

AmarDeep
 
yes my jdk was incorrect. I am on Websphere 4.0.2. Changed my JDK to 1.3.1. That have solved the problem of connecting to Generation.

Further, I have done full generation.
Now, i am stuck with another issue, i am able to generate all object except Application.


On Generating Application type of Objects Generator throws error on command prompt. All other Objects (Reports, Table etc ) are generated Successfuuly. I am doing direct Generation Service Pack : SP22_Y1. XE with Database Oracle. Java Version on Generation Machine 1.3.1


(PS: I am also attaching the error log)
Error Log : Generating application P4210 ... An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x24f18e67 Function name=Java_com_jdedwards_runtime_generator_jniinclude_JNIFunction_Fe extInterconnectParam Library=C:\B7\system\Bin32\jnigen.dll Current Java thread: at com.jdedwards.runtime.generator.jniinclude.JNIFunction.FetchNextI connectParam(Native Method) at com.jdedwards.runtime.generator.engine.ERGenHelper.createFormInte nectParam(Unknown Source) at com.jdedwards.runtime.generator.engine.ERGenHelper.createFormInte nect(Unknown Source) at com.jdedwards.runtime.generator.engine.ERGenHelper.processStateme nknown Source) at com.jdedwards.runtime.generator.engine.ERGenHelper.generateER(Unk Source) at com.jdedwards.runtime.generator.engine.AppGenEngine.createForm(Un n Source) at com.jdedwards.runtime.generator.engine.AppGenEngine.generate(Unkn Source) at com.jdedwards.runtime.generator.engine.GeneratorEngine.singleThre n(Unknown Source) at com.jdedwards.runtime.generator.engine.GeneratorEngine.startGener n(Unknown Source) at com.jdedwards.runtime.generator.view.GenerateAppsView.run(Unknown rce) at java.lang.Thread.run(Thread.java:484) Dynamic libraries: 0x00400000 - 0x00405000 C:\jdk\bin\java.exe 0x77F80000 - 0x77FFB000 C:\WINNT\system32\ntdll.dll 0x7C2D0000 - 0x7C332000 C:\WINNT\system32\ADVAPI32.dll 0x7C570000 - 0x7C623000 C:\WINNT\system32\KERNEL32.DLL 0x77D30000 - 0x77DA1000 C:\WINNT\system32\RPCRT4.DLL 0x78000000 - 0x78045000 C:\WINNT\system32\MSVCRT.dll 0x6D420000 - 0x6D4EE000 C:\jdk\jre\bin\hotspot\jvm.dll 0x77E10000 - 0x77E6F000 C:\WINNT\system32\USER32.dll 0x77F40000 - 0x77F7C000 C:\WINNT\system32\GDI32.dll 0x77570000 - 0x775A0000 C:\WINNT\system32\WINMM.dll 0x6D220000 - 0x6D227000 C:\jdk\jre\bin\hpi.dll 0x6D3B0000 - 0x6D3BD000 C:\jdk\jre\bin\verify.dll 0x6D250000 - 0x6D266000 C:\jdk\jre\bin\java.dll 0x6D3C0000 - 0x6D3CD000 C:\jdk\jre\bin\zip.dll 0x6D020000 - 0x6D128000 C:\jdk\jre\bin\awt.dll 0x77800000 - 0x7781E000 C:\WINNT\system32\WINSPOOL.DRV 0x76620000 - 0x76630000 C:\WINNT\system32\MPR.DLL 0x75E60000 - 0x75E7A000 C:\WINNT\system32\IMM32.dll 0x7CE20000 - 0x7CF0F000 C:\WINNT\system32\ole32.dll 0x24F10000 - 0x24F2D000 C:\B7\system\Bin32\jnigen.dll 0x24F30000 - 0x2517B000 C:\B7\system\bin32\jdeuser.DLL 0x71710000 - 0x71794000 C:\WINNT\system32\COMCTL32.dll 0x25180000 - 0x251E9000 C:\B7\system\bin32\Jdenet.dll 0x251F0000 - 0x25217000 C:\B7\system\bin32\Jdeipc.dll 0x779B0000 - 0x77A4B000 C:\WINNT\system32\OLEAUT32.dll 0x25220000 - 0x25261000 C:\B7\system\bin32\jdel.dll 0x77920000 - 0x77943000 C:\WINNT\system32\IMAGEHLP.dll 0x75050000 - 0x75058000 C:\WINNT\system32\WSOCK32.dll 0x75030000 - 0x75044000 C:\WINNT\system32\WS2_32.DLL 0x75020000 - 0x75028000 C:\WINNT\system32\WS2HELP.DLL 0x25270000 - 0x25280000 C:\B7\system\bin32\XMLRequest.dll 0x4A800000 - 0x4A860000 C:\B7\system\bin32\icuuc.dll 0x780A0000 - 0x780B2000 C:\WINNT\system32\MSVCIRT.dll 0x25280000 - 0x2531D000 C:\B7\system\bin32\XERCES4C.dll 0x25320000 - 0x2540E000 C:\B7\system\bin32\PG32.dll 0x25410000 - 0x25434000 C:\B7\system\bin32\pg3dtool.dll 0x25440000 - 0x254C0000 C:\B7\system\bin32\SS32D25.dll 0x254C0000 - 0x25522000 C:\B7\system\bin32\accugnt5.dll 0x72E90000 - 0x72EA1000 C:\WINNT\system32\CTL3D32.dll 0x25530000 - 0x25EB8000 C:\B7\system\bin32\Jdekrnl.dll 0x76B30000 - 0x76B6E000 C:\WINNT\system32\comdlg32.dll 0x70A70000 - 0x70AD6000 C:\WINNT\system32\SHLWAPI.DLL 0x7CF30000 - 0x7D176000 C:\WINNT\system32\SHELL32.DLL 0x25EC0000 - 0x25ED4000 C:\B7\system\bin32\GnuMP.dll 0x25EE0000 - 0x260C3000 C:\B7\system\bin32\PDFL40.dll 0x260D0000 - 0x26162000 C:\B7\system\bin32\AGM.dll 0x26170000 - 0x26250000 C:\B7\system\bin32\CoolType.dll 0x26250000 - 0x262FD000 C:\B7\system\bin32\DLI_dll.DLL 0x26300000 - 0x263D8000 C:\B7\system\bin32\LIBEAY32.dll 0x263E0000 - 0x263E8000 C:\B7\system\bin32\jdeObject.dll 0x263F0000 - 0x263F6000 C:\B7\system\bin32\owver.dll 0x6C370000 - 0x6C46B000 C:\WINNT\system32\MFC42.DLL 0x695E0000 - 0x69609000 C:\WINNT\system32\OLEPRO32.DLL 0x4C000000 - 0x4C131000 C:\B7\system\bin32\OT60AS.dll 0x44000000 - 0x44029000 C:\B7\system\bin32\OSC60AS.dll 0x780C0000 - 0x78121000 C:\WINNT\system32\MSVCP60.dll 0x6A830000 - 0x6A8B1000 C:\WINNT\system32\msxml.dll 0x782C0000 - 0x782CC000 C:\WINNT\System32\rnr20.dll 0x77980000 - 0x779A4000 C:\WINNT\system32\DNSAPI.DLL 0x77340000 - 0x77353000 C:\WINNT\system32\iphlpapi.dll 0x77520000 - 0x77525000 C:\WINNT\system32\ICMP.DLL 0x77320000 - 0x77337000 C:\WINNT\system32\MPRAPI.DLL 0x75150000 - 0x7515F000 C:\WINNT\system32\SAMLIB.DLL 0x75170000 - 0x751BF000 C:\WINNT\system32\NETAPI32.DLL 0x7C340000 - 0x7C34F000 C:\WINNT\system32\Secur32.dll 0x77BF0000 - 0x77C01000 C:\WINNT\system32\NTDSAPI.dll 0x77950000 - 0x7797A000 C:\WINNT\system32\WLDAP32.DLL 0x751C0000 - 0x751C6000 C:\WINNT\system32\NETRAP.dll 0x773B0000 - 0x773DF000 C:\WINNT\system32\ACTIVEDS.DLL 0x77380000 - 0x773A3000 C:\WINNT\system32\ADSLDPC.DLL 0x77830000 - 0x7783E000 C:\WINNT\system32\RTUTILS.DLL 0x77880000 - 0x7790E000 C:\WINNT\system32\SETUPAPI.DLL 0x7C0F0000 - 0x7C151000 C:\WINNT\system32\USERENV.DLL 0x774E0000 - 0x77513000 C:\WINNT\system32\RASAPI32.DLL 0x774C0000 - 0x774D1000 C:\WINNT\system32\RASMAN.DLL 0x77530000 - 0x77552000 C:\WINNT\system32\TAPI32.DLL 0x77360000 - 0x77379000 C:\WINNT\system32\DHCPCSVC.DLL 0x777E0000 - 0x777E8000 C:\WINNT\System32\winrnr.dll 0x777F0000 - 0x777F5000 C:\WINNT\system32\rasadhlp.dll 0x74FD0000 - 0x74FEE000 C:\WINNT\system32\msafd.dll 0x75010000 - 0x75017000 C:\WINNT\System32\wshtcpip.dll 0x28130000 - 0x28177000 C:\B7\system\bin32\JDBOCI90.DLL 0x28180000 - 0x2819D000 C:\oracle\ora92\bin\OCI.dll 0x60600000 - 0x60784000 C:\oracle\ora92\bin\OraClient9.Dll 0x610A0000 - 0x6113F000 C:\oracle\ora92\bin\oracore9.dll 0x612A0000 - 0x61319000 C:\oracle\ora92\bin\oranls9.dll 0x613A0000 - 0x613B1000 C:\oracle\ora92\bin\oraunls9.dll 0x60800000 - 0x60806000 C:\oracle\ora92\bin\oravsn9.dll 0x60500000 - 0x60590000 C:\oracle\ora92\bin\oracommon9.dll 0x281A0000 - 0x283F7000 C:\oracle\ora92\bin\orageneric9.dll 0x62FC0000 - 0x6303D000 C:\oracle\ora92\bin\oraxml9.dll 0x630F0000 - 0x63110000 C:\oracle\ora92\bin\oraxsd9.dll 0x615A0000 - 0x61629000 C:\oracle\ora92\bin\orannzsbb9.dll 0x61480000 - 0x61534000 C:\oracle\ora92\bin\oran9.dll 0x61400000 - 0x6142C000 C:\oracle\ora92\bin\oranl9.dll 0x61960000 - 0x61971000 C:\oracle\ora92\bin\oranldap9.dll 0x62000000 - 0x62024000 C:\oracle\ora92\bin\oraldapclnt9.dll 0x616B0000 - 0x616C8000 C:\oracle\ora92\bin\orancrypt9.dll 0x62300000 - 0x6233E000 C:\oracle\ora92\bin\ORATRACE9.dll 0x61730000 - 0x61766000 C:\oracle\ora92\bin\oranro9.dll 0x617C0000 - 0x617C6000 C:\oracle\ora92\bin\oranhost9.dll 0x617D0000 - 0x617D6000 C:\oracle\ora92\bin\oranoname9.dll 0x616A0000 - 0x616A6000 C:\oracle\ora92\bin\orancds9.dll 0x61820000 - 0x61827000 C:\oracle\ora92\bin\orantns9.dll 0x64000000 - 0x64007000 C:\oracle\ora92\bin\oranms.dll 0x64020000 - 0x64030000 C:\oracle\ora92\bin\oranmsp.dll 0x60A00000 - 0x60D13000 C:\oracle\ora92\bin\orapls9.dll 0x62500000 - 0x62507000 C:\oracle\ora92\bin\oraslax9.dll 0x61350000 - 0x61360000 C:\oracle\ora92\bin\orasnls9.dll 0x60810000 - 0x60816000 C:\oracle\ora92\bin\orawtc9.dll 0x62600000 - 0x62675000 C:\oracle\ora92\bin\orasql9.dll 0x61910000 - 0x6191C000 C:\oracle\ora92\bin\orantcp9.dll 0x61060000 - 0x61080000 C:\B7\DV7333\bin32\JDBTRG1.dll 0x61030000 - 0x61060000 C:\B7\DV7333\bin32\JDBTRG2.dll 0x61020000 - 0x6102D000 C:\B7\DV7333\bin32\JDBTRG3.dll 0x61010000 - 0x61018000 C:\B7\DV7333\bin32\JDBTRG4.dll 0x28960000 - 0x28D5D000 C:\B7\DV7333\bin32\CALLBSFN.dll 0x6D1E0000 - 0x6D21B000 C:\jdk\jre\bin\fontmanager.dll 0x69510000 - 0x695D7000 C:\WINNT\system32\OPENGL32.dll 0x6FAC0000 - 0x6FADF000 C:\WINNT\system32\GLU32.dll 0x51000000 - 0x5104B000 C:\WINNT\system32\DDRAW.dll 0x728A0000 - 0x728A6000 C:\WINNT\system32\DCIMAN32.dll 0x30D40000 - 0x30F0A000 C:\WINNT\system32\ialmgicd.dll 0x30F20000 - 0x30F50000 C:\WINNT\system32\ialmgdev.dll 0x6D340000 - 0x6D348000 C:\jdk\jre\bin\net.dll 0x3A0C0000 - 0x3A0CE000 C:\B7\system\bin32\rdashare.dll 0x3A0D0000 - 0x3A15F000 C:\B7\system\bin32\jdegbr.dll 0x3A160000 - 0x3A2C8000 C:\B7\system\bin32\jdepp.dll 0x77820000 - 0x77827000 C:\WINNT\system32\VERSION.dll 0x759B0000 - 0x759B6000 C:\WINNT\system32\LZ32.DLL 0x3A2D0000 - 0x3A45F000 C:\B7\system\bin32\jdeomw.dll 0x3A460000 - 0x3A471000 C:\B7\system\bin32\Jdecalc.dll 0x3A480000 - 0x3A654000 C:\B7\system\bin32\Rdapp.dll 0x72A00000 - 0x72A2D000 C:\WINNT\system32\DBGHELP.dll 0x690A0000 - 0x690AB000 C:\WINNT\system32\PSAPI.DLL Local Time = Tue Apr 18 18:49:43 2006 Elapsed Time = 108 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.3.1_01 mixed mode) # # An error report file has been saved as hs_err_pid1436.log. # Please refer to the file for further information. # C:\B7\Generator>goto check C:\B7\Generator>if errorlevel 1 goto error C:\B7\Generator>Echo Error!!! Error!!! C:\B7\Generator>pause Press any key to continue . . .
 

Attachments

  • 106120-Application are not Generated in Direct Generation.doc
    40.5 KB · Views: 177
Hi,
You may try to generate the applications alone once again by launching the gen.bat again. Put a check against applications alone and see if it solves your issue. Have you placed the genapp.ini in c:\winnt location? You need to do that.

Karthik Iyer
 
Hi,
genapp.ini is located in c:/winnt. So no issue with that.

On Checking against an Application, the generation hangs.

Attach the command prompt log.
 

Attachments

  • 106288-command prompt log.txt
    2.6 KB · Views: 118
Back
Top