View Issue Details

IDProjectCategoryView StatusLast Update
0004857SymmetricDSBugpublic2021-04-28 19:10
Reporterkraynopp Assigned Toelong  
Prioritynormal 
Status closedResolutionfixed 
Product Version3.12.7 
Target Version3.12.9Fixed in Version3.12.9 
Summary0004857: ClassNotFound exception in symadmin
DescriptionAny execution of symadmin leads to ClassNotFound exception

$ ./symadmin --help
Could not load Logmanager "org.apache.logging.log4j.jul.LogManager"
java.lang.ClassNotFoundException: org.apache.logging.log4j.jul.LogManager
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at java.util.logging.LogManager$1.run(LogManager.java:195)
        at java.util.logging.LogManager$1.run(LogManager.java:181)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.<clinit>(LogManager.java:181)
        at java.util.logging.Logger.demandLogger(Logger.java:448)
        at java.util.logging.Logger.getLogger(Logger.java:502)
        at com.sun.jmx.remote.util.ClassLogger.<init>(ClassLogger.java:55)
        at javax.management.NotificationBroadcasterSupport.<clinit>(NotificationBroadcasterSupport.java:365)
        at javax.management.MBeanServerDelegate.<init>(MBeanServerDelegate.java:72)
        at com.sun.jmx.mbeanserver.MBeanServerDelegateImpl.<init>(MBeanServerDelegateImpl.java:100)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.newMBeanServerDelegate(JmxMBeanServer.java:1374)
        at javax.management.MBeanServerBuilder.newMBeanServerDelegate(MBeanServerBuilder.java:66)
        at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:321)
        at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:231)
        at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:192)
        at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:469)
        at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:140)
        at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:629)
        at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:691)
        at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:708)
        at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:263)
        at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:153)
        at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
        at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
        at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:138)
        at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:45)
        at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:48)
        at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:30)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
        at org.jumpmind.util.AppUtils.<clinit>(AppUtils.java:62)
        at org.jumpmind.symmetric.AbstractCommandLauncher.<clinit>(AbstractCommandLauncher.java:102)
symadmin version 3.12.7
Perform administration tasks with SymmetricDS.

Usage: symadmin <subcommand> --engine [engine.name] [options] [args]
       symadmin <subcommand> --properties [properties file] [options] [args]

Type 'symadmin help <subcommand>' for help on a specific subcommand.

Available subcommands:
   list-engines List engines configured on this instance
   open-registration Open registration for a node
   remove-node Remove specified node (unregister and clean up) for the
                         provided engine
   reload-node Reload data at a node (or initial load)
   reload-table Reload data at a node for tables
   export-batch Export batch CSV data from database
   import-batch Import batch CSV data into database
   run-job Run a job immediately
   run-purge Run the purge job
   encrypt-text Encrypt text string
   obfuscate-text Obfuscate text string
   create-war Create web archive for deployment
   create-sym-tables Create tables required by SymmetricDS
   export-sym-tables Export tables required by SymmetricDS
   sync-triggers Create database triggers
   drop-triggers Drop database triggers
   export-properties Export default properties
   send-sql Send SQL statement to node
   send-schema Send schema change to node
   send-script Send script to node
   backup-config Backup configuration files
   restore-config Restore configuration files
   uninstall Uninstall all SymmetricDS objects from the database
   module Manage modules to add or remove features
Additional InformationPrevious version 3.12.6 has been free from this error.

Despite ClassNotFound exception commands are executed successfully.
TagsNo tags attached.

Activities

jblakely

2021-03-20 14:22

reporter   ~0001899

It looks like the jar file log4j-jul-2.13.3.jar was missed from inclusion in the /lib folder. Adding the file manually resolves this problem.

elong

2021-04-21 23:21

developer   ~0001923

Thanks for reporting this. The log4j-jul-2.13.3.jar was removed on purpose, but it's still referenced in setenv, which is what causes the error. We'll fix setenv for the next release.

Related Changesets

SymmetricDS: 3.12 37b78ac9

2021-04-21 23:22:44

admin

Details Diff
0004857: ClassNotFound exception in symadmin Affected Issues
0004857
mod - symmetric-server/src/main/deploy/bin/setenv Diff File
mod - symmetric-server/src/main/deploy/bin/setenv.bat Diff File

SymmetricDS: 3.12 3271dcaa

2021-04-21 23:25:38

admin

Details Diff
0004857: commons-logging is implemented by jcl-over-slf4j Affected Issues
0004857
mod - symmetric-client/build.gradle Diff File
mod - symmetric-db/build.gradle Diff File
mod - symmetric-jdbc/build.gradle Diff File
mod - symmetric-sqlexplorer/build.gradle Diff File

Issue History

Date Modified Username Field Change
2021-03-01 08:49 kraynopp New Issue
2021-03-20 14:22 jblakely Note Added: 0001899
2021-04-21 23:21 elong Note Added: 0001923
2021-04-21 23:23 elong Assigned To => elong
2021-04-21 23:23 elong Status new => resolved
2021-04-21 23:23 elong Resolution open => fixed
2021-04-21 23:23 elong Fixed in Version => 3.12.9
2021-04-21 23:23 elong Target Version => 3.12.9
2021-04-22 00:00 admin Changeset attached => SymmetricDS 3.12 3271dcaa
2021-04-22 00:00 admin Changeset attached => SymmetricDS 3.12 37b78ac9
2021-04-28 19:10 admin Status resolved => closed