Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux installation exception #69

Open
abdelazizelesh opened this issue Jun 28, 2018 · 15 comments
Open

linux installation exception #69

abdelazizelesh opened this issue Jun 28, 2018 · 15 comments

Comments

@abdelazizelesh
Copy link

We installed product in linux ubuntu
java version "1.8.0_171"
apache-tomcat-8.5.32
Ubuntu 16.04.2 LTS
mysql: 5.7.22-0ubuntu0.16.04.1

we are getting belwo exception, please advice

2018-06-28 18:07:00 [] ERROR JobRunShell:211 - Job DEFAULT.bsc.job.SysExpressionJob threw an unhandled Exception:
java.lang.NoClassDefFoundError: Could not initialize class com.netsteadfast.greenstep.sys.BackgroundProgramUserUtils
at com.netsteadfast.greenstep.job.BaseJob.logoutForBackgroundProgram(BaseJob.java:45)
at com.netsteadfast.greenstep.job.impl.SysExpressionJobImpl.executeInternal(SysExpressionJobImpl.java:67)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
2018-06-28 18:07:00 [] ERROR ErrorLogger:2425 - Job (DEFAULT.bsc.job.SysExpressionJob threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NoClassDefFoundError: Could not initialize class com.netsteadfast.greenstep.sys.BackgroundProgramUserUtils]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.netsteadfast.greenstep.sys.BackgroundProgramUserUtils
at com.netsteadfast.greenstep.job.BaseJob.logoutForBackgroundProgram(BaseJob.java:45)
at com.netsteadfast.greenstep.job.impl.SysExpressionJobImpl.executeInternal(SysExpressionJobImpl.java:67)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
... 1 more
2018-06-28 18:07:00 [] ERROR JobRunShell:211 - Job DEFAULT.core.job.SysExpressionJob threw an unhandled Exception:
java.lang.NoClassDefFoundError: Could not initialize class com.netsteadfast.greenstep.sys.BackgroundProgramUserUtils
at com.netsteadfast.greenstep.job.BaseJob.logoutForBackgroundProgram(BaseJob.java:45)
at com.netsteadfast.greenstep.job.impl.SysExpressionJobImpl.executeInternal(SysExpressionJobImpl.java:67)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
2018-06-28 18:07:00 [] ERROR ErrorLogger:2425 - Job (DEFAULT.core.job.SysExpressionJob threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NoClassDefFoundError: Could not initialize class com.netsteadfast.greenstep.sys.BackgroundProgramUserUtils]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.netsteadfast.greenstep.sys.BackgroundProgramUserUtils
at com.netsteadfast.greenstep.job.BaseJob.logoutForBackgroundProgram(BaseJob.java:45)
at com.netsteadfast.greenstep.job.impl.SysExpressionJobImpl.executeInternal(SysExpressionJobImpl.java:67)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
... 1 more

@billchen198318
Copy link
Owner

Hi

  1. are you has settings tomcat catalina.sh add item
    JAVA_OPTS="-Xmx1280M -XX:+UseG1GC -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Duser.language=en -Duser.country=US"

  2. and you is use 0.7.4 release package? the release package tomcat8 is ver 8.0.50

@abdelazizelesh
Copy link
Author

Hi,
I did all above steps, and same issue happens

@billchen198318
Copy link
Owner

upload full log file to as ZIP to me.

/tmp/greenstep-core.log
/tmp/greenstep-bsc.log

@billchen198318
Copy link
Owner

Hi, can you to folder gsbsc-web/WEB-INF/lib/ use md5 check command.
# md5 core-base.jar
MD5 (core-base.jar) = d654d4e97b64b2ff97d0db5088781e73

And
# md5 core-lib.jar
MD5 (core-lib.jar) = aaacd2b27a71c34d3dfbbfa8cbf7cb7d

Check whether the same md5 value.

@abdelazizelesh
Copy link
Author

@billchen198318
Copy link
Owner

Hi , help to check the MD5 value of core-base.jar and core-lib.jar

@billchen198318
Copy link
Owner

The issues can drop upload file, you no need use google drive to upload.

@billchen198318
Copy link
Owner

I find log, you has re-pack the web-apps( core-web, gsbsc-web ) as an WAR. i think is the WAR file no success.

01-Jul-2018 12:47:34.915 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /home/tacpi/sw/apache-tomcat-8.0.50/webapps/gsbsc-web.war
01-Jul-2018 12:47:48.306 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
01-Jul-2018 12:48:14.138 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /home/tacpi/sw/apache-tomcat-8.0.50/webapps/gsbsc-web.war has finished in 39,221 ms
01-Jul-2018 12:48:14.158 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /home/tacpi/sw/apache-tomcat-8.0.50/webapps/tacpi.war
01-Jul-2018 12:48:14.167 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /home/tacpi/sw/apache-tomcat-8.0.50/webapps/tacpi.war has finished in 9 ms
01-Jul-2018 12:48:14.195 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /home/tacpi/sw/apache-tomcat-8.0.50/webapps/core-web.war
01-Jul-2018 12:48:25.876 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
01-Jul-2018 12:48:41.998 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /home/tacpi/sw/apache-tomcat-8.0.50/webapps/core-web.war has finished in 27,803 ms

@abdelazizelesh
Copy link
Author

tacpi@tacpi:~$ md5sum /home/tacpi/bamboobsc-0.7.4-RELEASE/bamboobsc-07/apache-tomcat-8.0.50/webapps/gsbsc-web/WEB-INF/lib/core-base.jar
d654d4e97b64b2ff97d0db5088781e73

tacpi@tacpi:~$ md5sum /home/tacpi/bamboobsc-0.7.4-RELEASE/bamboobsc-07/apache-tomcat-8.0.50/webapps/gsbsc-web/WEB-INF/lib/core-lib.jar
aaacd2b27a71c34d3dfbbfa8cbf7cb7d

Logs.zip

@billchen198318
Copy link
Owner

I think maybe can try no re-pack as WAR, use default release package.

20180701

@abdelazizelesh
Copy link
Author

I removed all packages and installed default release packages and same issue.

@billchen198318
Copy link
Owner

Hi, upload you new log file as zip to me.

@abdelazizelesh
Copy link
Author

Hi, please find attached
logs.zip

@billchen198318
Copy link
Owner

Hi can give me tomcat8 all log, thanks.

@billchen198318
Copy link
Owner

billchen198318 commented Jul 2, 2018

Hi first stop the expression job config. do stop the history score calculator job.

SQL:
update tb_sys_expr_job set ACTIVE='N';

root@localhost [bbcore]> update tb_sys_expr_job set ACTIVE='N';
Query OK, 8 rows affected (0.08 sec)
Rows matched: 8 Changed: 8 Warnings: 0

I think if you can try another computer environment, Because this problem is too strange.
The class com.netsteadfast.greenstep.sys.BackgroundProgramUserUtils is found in core-base.jar. but the error message is like cannot load it.

Are you linux has settings CLASSPATH for java , if has please remove it. and try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants