View Issue Details

IDProjectCategoryView StatusLast Update
0004857SymmetricDSBugpublic2021-04-28 19:10
Reporterkraynopp Assigned Toelong  
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.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        at java.util.logging.LogManager$
        at java.util.logging.LogManager$
        at Method)
        at java.util.logging.LogManager.<clinit>(
        at java.util.logging.Logger.demandLogger(
        at java.util.logging.Logger.getLogger(
        at com.sun.jmx.remote.util.ClassLogger.<init>(
        at com.sun.jmx.mbeanserver.MBeanServerDelegateImpl.<init>(
        at com.sun.jmx.mbeanserver.JmxMBeanServer.newMBeanServerDelegate(
        at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(
        at org.apache.logging.log4j.core.LoggerContext.setConfiguration(
        at org.apache.logging.log4j.core.LoggerContext.reconfigure(
        at org.apache.logging.log4j.core.LoggerContext.reconfigure(
        at org.apache.logging.log4j.core.LoggerContext.start(
        at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(
        at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(
        at org.apache.logging.log4j.LogManager.getContext(
        at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(
        at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(
        at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(
        at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(
        at org.slf4j.LoggerFactory.getLogger(
        at org.slf4j.LoggerFactory.getLogger(
        at org.jumpmind.util.AppUtils.<clinit>(
        at org.jumpmind.symmetric.AbstractCommandLauncher.<clinit>(
symadmin version 3.12.7
Perform administration tasks with SymmetricDS.

Usage: symadmin <subcommand> --engine [] [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.



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.


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


Details Diff
0004857: ClassNotFound exception in symadmin Affected Issues
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


Details Diff
0004857: commons-logging is implemented by jcl-over-slf4j Affected Issues
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