Automic Workload Automation

Expand all | Collapse all

JWP's Not Starting ( Error: A JNI error has occurred, please check your installation and try again )

  • 1.  JWP's Not Starting ( Error: A JNI error has occurred, please check your installation and try again )

    Posted 06-21-2017 07:30 AM
    hi ,
    i cant start jwp on local, cannot produce any log about engine temp inside.
    Also i put ojdbc7.jar file on AutomationEngine\bin\lib

    using cmd
    java -Xrs -Xmx512M -jar C:\Automic\AutomationEngine\bin\ucsrvjp.jar -IC:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\ucsrv.ini -svc%port%
    error happened 
    Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.NoClassDefFoundError: org/osgi/framework/BundleException         at java.lang.Class.getDeclaredMethods0(Native Method)         at java.lang.Class.privateGetDeclaredMethods(Unknown Source)         at java.lang.Class.privateGetMethodRecursive(Unknown Source)         at java.lang.Class.getMethod0(Unknown Source)         at java.lang.Class.getMethod(Unknown Source)         at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)         at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.osgi.framework.BundleException         at java.net.URLClassLoader.findClass(Unknown Source)         at java.lang.ClassLoader.loadClass(Unknown Source)         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)         at java.lang.ClassLoader.loadClass(Unknown Source)         ... 7 more
    service manager log 
    U00022004 Starting process 'UC4 JWP' ... 20170621/142128.829 - U00022005 ... with command line  'java -Xrs -Xmx512M -jar ucsrvjp.jar -IC:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\ucsrv.ini -svc%port%'. 20170621/142128.829 - U00022006 ... and start directory  'C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin'. 20170621/142128.844 - U00022007 Process 'UC4 JWP' (ID '912') successfully started. 20170621/142148.915 - U00022023 No associated window can be found for process 'UC4 JWP'. 20170621/142148.915 - U00022012 Process 'UC4 JWP' (ID '912') ended. 20170621/142148.915 - U00022022 Process 'UC4 JWP' ended, exit code='1'. 20170621/142201.159 - U00022019 Client statement: process 'UC4 JWP' should be started. 20170621/142201.159 - U00022031 Client data: User 'PCW\Olgun.Ozmen' of computer 'TR40B034E932A8'. 20170621/142201.159 - U00022004 Starting process 'UC4 JWP' ... 20170621/142201.159 - U00022005 ... with command line  'java -Xrs -Xmx512M -jar ucsrvjp.jar -IC:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\ucsrv.ini -svc%port%'. 20170621/142201.159 - U00022006 ... and start directory  'C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin'. 20170621/142201.174 - U00022007 Process 'UC4 JWP' (ID '10796') successfully started. 20170621/142221.256 - U00022023 No associated window can be found for process 'UC4 JWP'. 20170621/142221.256 - U00022012 Process 'UC4 JWP' (ID '10796') ended. 20170621/142221.256 - U00022022 Process 'UC4 JWP' ended, exit code='1'. 20170621/142300.723 - U00022019 Client statement: process 'UC4 JWP' should be started. 20170621/142300.723 - U00022031 Client data: User 'PCW\Olgun.Ozmen' of computer 'TR40B034E932A8'. 20170621/142300.723 - U00022004 Starting process 'UC4 JWP' ... 20170621/142300.723 - U00022005 ... with command line  'java -Xrs -Xmx512M -jar ucsrvjp.jar -IC:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin\ucsrv.ini -svc%port%'. 20170621/142300.723 - U00022006 ... and start directory  'C:\Automic\ServiceManager\bin\..\..\AutomationEngine\bin'. 20170621/142300.723 - U00022007 Process 'UC4 JWP' (ID '4148') successfully started. 20170621/142320.776 - U00022023 No associated window can be found for process 'UC4 JWP'. 20170621/142320.776 - U00022012 Process 'UC4 JWP' (ID '4148') ended. 20170621/142320.776 - U00022022 Process 'UC4 JWP' ended, exit code='1'.


    any suggestion ? 


  • 2.  JWP's Not Starting ( Error: A JNI error has occurred, please check your installation and try again )

    Posted 06-21-2017 07:49 AM
    Hi Olgun_Onur_Ozmen,

    It looks like an issue with the ojdbc7.jar.

    Please use JDBC driver "ojdbc6.jar" instead, as recommended in the documentation: https://docs.automic.com/documentation/webhelp/english/AWA/12.0/DOCU/12.0/AWA%20Guides/help.htm#AWA/Installation/install_jwp_installation.htm

    Best regards,
    Antoine



  • 3.  JWP's Not Starting ( Error: A JNI error has occurred, please check your installation and try again )

    Posted 06-21-2017 07:58 AM
    i tried many ojdbc files. my ORACLE_HOME/jdbc/lib path inside is ojdbc8_g.jar.  but tried ojdbc6.jar file.
    According the document i download and overwrite the JCE Unlimited Strength Jurisdiction Policy inside jars on java .I  cant understand why cant produce any error logs. 


  • 4.  JWP's Not Starting ( Error: A JNI error has occurred, please check your installation and try again )

    Posted 06-21-2017 08:30 AM
    Hi Olgun,

    The issue is obviously caused by java - one class seems to be missing:

    Exception in thread "main" java.lang.NoClassDefFoundError: org/osgi/framework/BundleException 

    Therefore it's either an issue with the ojdbc.jar or with the java version itself. Which version are you using ? Is it Oracle Java?

    Best regards,
    Antoine


  • 5.  JWP's Not Starting ( Error: A JNI error has occurred, please check your installation and try again )

    Posted 06-21-2017 08:34 AM
    Hi,
    jre1.8.0_131 
    Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
    Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)


  • 6.  JWP's Not Starting ( Error: A JNI error has occurred, please check your installation and try again )

    Posted 06-21-2017 09:00 AM
    How is the connection string defined in ucsrv.ini  :Are you connecting the JWP via OCI or do you use a direct connection ([JDBC] section) ?

    Did you copy ojdbc6.jar in the AutomationEngine\bin\lib folder as well ?


  • 7.  JWP's Not Starting ( Error: A JNI error has occurred, please check your installation and try again )

    Posted 06-21-2017 09:07 AM
    hi,
    using oci right now, also tried jdbc shown below which is commented.
    ;################################################################# ; please make path definitions with trailing backslash           # ;################################################################# [GLOBAL] system=AUTOMICT language=(E,D) logging=..\temp\$$srv_log_*_##.txt logcount=10 helplib=uc.msl helpcache=ALL StartMode=NORMAL snmp=0 nodename=uc4_1 PrimaryMode=1 exception=1 SystemStop=NORMAL [CPMsgTypes] srvquery=0 [CACHE] script=3000000 vara=3000000 mqmem=3000000 [TRACE] file=..\temp\$$srv_trc_*_##.txt trccount=10 memtrace=0 tcp/ip=0 database=0 ft=0 srcall=0 memio=0 jcl=0 memsv=0 snmp=0 zuxml=0 cache=0 trc11=0 ucds=0 xscript=0 uc4global=0 trc15=0 minimal=0 [TCP/IP] ; Primary Port for WP pwpport=2270 ; the logging will be written in the database in this interval report=20 ; Reconnectintervall from WP's to CP's, or WP's to P-WP connect=120 chiffre=1 ; Try count and wait time for Primary retrywait=(3,10) alivetimeout=600 maxMsgSize=31457280 ; tcp_nodelay=0 ; tcp_keepalive_time=0 ; SendBufferSize=0 ; RecvBufferSize=0 [PORTS] cp1=2217 cp2=2218 cp3=2219 cp4=2220 cp5=2221 wp1=2271 wp2=2272 wp3=2273 wp4=2274 wp5=2275 wp6=2276 wp7=2277 wp8=2278 wp9=2279 [DB_SERVICE] name= cp= KeyStore=KStore.ini InitialPackage= retention_time=60 connect=60 optimize=1 retry=10 tcp/ip=0 [ODBC] ; ODBCVAR xxxxxxxx ;         |||||||+ type of SQL-Syntax N=SQL-SERVER  O=ORACLE  D=DB2 ;         ||||||+- R=compress messages and local memory ;         |||||+-- O = with userid, N = without userid ;         ||||+--- I=OCI/CLI N=ODBC ;         |||+---- not used ;         ||+----- J = compare fieldnames case-insensitiv (in case of ORACLE !!) ;         |+------ D = DB-Disconnect after 1000 commits (perhaps in case of Oracle memory leaks) ;         +------- S = use Server-Cursor (SQL-SERVER) ; ;         SNNNNNRN for SQL-Server either Standard-Client or Native-Client without using Mars_Connection ;         NNNNNNRN for SQL-Server utilizing Native-Client (Mars_Connection=Yes is required) ;         NNJNIORO for Oracle 10.x with OCI (Oracle Call Interface) ;         NNJNIORD for DB2/NT/UNIX with CLI (Call Level Interface) ; ; SQL-Server with ODBC (either Standard-Client or Native-Client without using Mars_Connection) ;SQLDRIVERCONNECT=ODBCVAR=SNNNNNRN,DSN=automic;UID=AUTOMIC;PWD=Automictest1 ; SQL-Server with ODBC (only applicable when using ‘Native-Client', requires Mars_Connection=Yes) ;SQLDRIVERCONNECT=ODBCVAR=NNNNNNRN,DSN=UC4;UID=uc4;PWD=10BFDC349F38156A22;Mars_Connection=Yes ; Oracle with OCI SQLDRIVERCONNECT=ODBCVAR=NNJNIORO,DSN=automictest;UID=automic;PWD=Automictest1;SP=NLS_LANGUAGE=AMERICAN,NLS_TERRITORY=AMERICA,CODESET=WE8ISO8859P15 ; DB2 with CLI ;SQLDRIVERCONNECT=ODBCVAR=NNJNIORD,DSN=UC4;UID=uc4;PWD=10BFDC349F38156A22 ;[JDBC] ;SQLDRIVERCONNECT=jdbc:oracle:thin:@automictest:1521/automictest





  • 8.  JWP's Not Starting ( Error: A JNI error has occurred, please check your installation and try again )

    Posted 06-21-2017 09:12 AM
    Does the JDBC entry work?  This seems very similar to an issue I've been experiencing as well.  I had another post on my issue - https://community.automic.com/discussion/9613/jwps-not-starting#latest

    I haven't updated that post yet because we haven't identified the root cause yet, but we did get things working now with OCI.

    We created a brand new, empty db and everything started up fine including the JWP's.  So it appears to be something on the db, but we're not sure what yet.  If we figure it out - I'll post about it, but if your issue is that everything works fine with the JDBC entry, but not with OCI - I'd look to your db.


  • 9.  JWP's Not Starting ( Error: A JNI error has occurred, please check your installation and try again )

    Posted 06-21-2017 09:22 AM
    Thanks for your feedback.

    Did you also move ojdbc6.jar into the AutomationEngine\bin\lib directory?
    Are you still getting the same error or a different one?


  • 10.  JWP's Not Starting ( Error: A JNI error has occurred, please check your installation and try again )

    Posted 06-21-2017 09:34 AM
    Yes only one file putting in AutomationEngine\bin\lib directory. i tried ojdbc6.jar or mant different jar files
    when i start jwp on service manager dialog nothing happens or cant produce any logs. then i tried cmd for start jwp reason the catch some exception and  same exception happened . 

    i also wondering service manager log ( 
    No associated window ) comment , is that means something ?
    No associated window can be found for process 'UC4 JWP'  Process 'UC4 JWP' (ID '10796') ended.



  • 11.  JWP's Not Starting ( Error: A JNI error has occurred, please check your installation and try again )

    Posted 06-21-2017 10:14 AM
    This message is rather generic, it usually displays when the Service Manager is facing issues while attempting to start a process.

    I'd suggest opening an incident to continue working on this issue.

    Best regards,
    Antoine