kunwar singh
2018-11-20 16:56:27 UTC
Hi everyone,
First time trying to use swingbench and that too on MAC and running into
below error.
*Started Swingbench, Version 2.6.0.1090. No config file
specifiedjava.lang.reflect.InvocationTargetException*
I installed oracle instant client and running into the below error, is
there something very obvious that i am missing in the configuration or
setup?
I followed the instruction guide provided by dominic but still..
note: gui opens for a second and it closes abruptly.
+++++++++
1. this is the instant client directory
kunwars-MacBook-Pro:swingbench kunwarkhomane$ pwd
/Users/kunwarkhomane/Downloads/instantclient_12_2/swingbench
kunwars-MacBook-Pro:swingbench kunwarkhomane$ cd ..
kunwars-MacBook-Pro:instantclient_12_2 kunwarkhomane$ ls -lrt
total 454072\
-r--r--r--@ 1 kunwarkhomane staff 4036257 Dec 13 2016 ojdbc8.jar\
-r--r--r--@ 1 kunwarkhomane staff 74230 Jan 26 2017 xstreams.jar\
-r-xr-xr-x@ 1 kunwarkhomane staff 8179072 Jun 29 2017 libnnz12.dylib\
-r-xr-xr-x@ 1 kunwarkhomane staff 151748 Aug 8 2017
libocijdbc12.dylib\
-r-xr-xr-x@ 1 kunwarkhomane staff 237780 Jan 8 2018 libons.dylib\
-rwxrwxrwx@ 1 kunwarkhomane staff 84988 Jan 10 2018
liboramysql12.dylib\
-rwxrwxrwx@ 1 kunwarkhomane staff 1465312 Jan 10 2018
libocci.dylib.12.1\
-rwxrwxrwx@ 1 kunwarkhomane staff 4685408 Jan 10 2018
libclntshcore.dylib.12.1\
-rwxrwxrwx@ 1 kunwarkhomane staff 85621532 Jan 10 2018
libclntsh.dylib.12.1\
-rwxrwxrwx@ 1 kunwarkhomane staff 124769196 Jan 10 2018 libociei.dylib\
-rw-rw-rw-@ 1 kunwarkhomane staff 400 Jan 10 2018 BASIC_README\
-rwxrwxrwx@ 1 kunwarkhomane staff 146084 Jan 10 2018 uidrvci\
-rwxrwxrwx@ 1 kunwarkhomane staff 40360 Jan 10 2018 genezi\
-rwxrwxrwx@ 1 kunwarkhomane staff 10036 Jan 10 2018 adrci\
lrwxr-xr-x@ 1 kunwarkhomane staff 18 Oct 11 16:15 libocci.dylib
-> libocci.dylib.12.1\
lrwxr-xr-x@ 1 kunwarkhomane staff 20 Oct 11 16:15 libclntsh.dylib
-> libclntsh.dylib.12.1\
-rwxr-xr-x@ 1 kunwarkhomane staff 8480 Oct 11 16:23 sqlplus\
-r-xr-xr-x@ 1 kunwarkhomane staff 1639388 Oct 11 16:23
libsqlplusic.dylib\
-rwxr-xr-x@ 1 kunwarkhomane staff 1267088 Oct 11 16:23
libsqlplus.dylib\
-r-xr-xr-x@ 1 kunwarkhomane staff 342 Oct 11 16:23 glogin.sql\
-rw-r--r--@ 1 kunwarkhomane staff 404 Oct 11 16:23 SQLPLUS_README\
drwx------@ 14 kunwarkhomane staff 476 Nov 20 21:39 swingbench\
2. this is inside the swingbench directory . i have created the
swingbench.env manually as i didn't find it in the zip folder that i
downloaded.
kunwars-MacBook-Pro:swingbench kunwarkhomane$ cat swingbench.env
#!/bin/bash
export ORACLE_HOME=/Users/kunwarkhomane/Downloads/instantclient_12_2
export JAVAHOME=/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk
export
SWINGHOME=/Users/kunwarkhomane/Downloads/instantclient_12_2/swingbench
export ANTHOME=$SWINGHOME/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME
export CLASSPATH=$JAVAHOME/lib/rt.jar:$JAVAHOME/lib/tools.jar:
$ORACLE_HOME/ojdbc8.jar:$SWINGHOME/lib/mytransactions.jar:$
{SWINGHOME}/lib/swingbench.jar:$ANTHOME/ant.jar
kunwars-MacBook-Pro:swingbench kunwarkhomane$ cd bin
kunwars-MacBook-Pro:bin kunwarkhomane$ ./swingbench
Application : Swingbench
Author : Dominic Giles
Version : 2.6.0.1090
Started Swingbench, Version 2.6.0.1090. No config file
specifiedjava.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:228)
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext
at
com.dom.benchmarking.swingbench.jaxb.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:22)
at
com.dom.benchmarking.swingbench.frontend.components.BenchmarkChooser.lambda$init$0(BenchmarkChooser.java:48)
at
java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
... 5 more
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBContext
at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 15 more
+++++++++
I recently thought of trying swingbench as i plan to reproduce some
workload to research some issues.
Cheers,
Kunwar
First time trying to use swingbench and that too on MAC and running into
below error.
*Started Swingbench, Version 2.6.0.1090. No config file
specifiedjava.lang.reflect.InvocationTargetException*
I installed oracle instant client and running into the below error, is
there something very obvious that i am missing in the configuration or
setup?
I followed the instruction guide provided by dominic but still..
note: gui opens for a second and it closes abruptly.
+++++++++
1. this is the instant client directory
kunwars-MacBook-Pro:swingbench kunwarkhomane$ pwd
/Users/kunwarkhomane/Downloads/instantclient_12_2/swingbench
kunwars-MacBook-Pro:swingbench kunwarkhomane$ cd ..
kunwars-MacBook-Pro:instantclient_12_2 kunwarkhomane$ ls -lrt
total 454072\
-r--r--r--@ 1 kunwarkhomane staff 4036257 Dec 13 2016 ojdbc8.jar\
-r--r--r--@ 1 kunwarkhomane staff 74230 Jan 26 2017 xstreams.jar\
-r-xr-xr-x@ 1 kunwarkhomane staff 8179072 Jun 29 2017 libnnz12.dylib\
-r-xr-xr-x@ 1 kunwarkhomane staff 151748 Aug 8 2017
libocijdbc12.dylib\
-r-xr-xr-x@ 1 kunwarkhomane staff 237780 Jan 8 2018 libons.dylib\
-rwxrwxrwx@ 1 kunwarkhomane staff 84988 Jan 10 2018
liboramysql12.dylib\
-rwxrwxrwx@ 1 kunwarkhomane staff 1465312 Jan 10 2018
libocci.dylib.12.1\
-rwxrwxrwx@ 1 kunwarkhomane staff 4685408 Jan 10 2018
libclntshcore.dylib.12.1\
-rwxrwxrwx@ 1 kunwarkhomane staff 85621532 Jan 10 2018
libclntsh.dylib.12.1\
-rwxrwxrwx@ 1 kunwarkhomane staff 124769196 Jan 10 2018 libociei.dylib\
-rw-rw-rw-@ 1 kunwarkhomane staff 400 Jan 10 2018 BASIC_README\
-rwxrwxrwx@ 1 kunwarkhomane staff 146084 Jan 10 2018 uidrvci\
-rwxrwxrwx@ 1 kunwarkhomane staff 40360 Jan 10 2018 genezi\
-rwxrwxrwx@ 1 kunwarkhomane staff 10036 Jan 10 2018 adrci\
lrwxr-xr-x@ 1 kunwarkhomane staff 18 Oct 11 16:15 libocci.dylib
-> libocci.dylib.12.1\
lrwxr-xr-x@ 1 kunwarkhomane staff 20 Oct 11 16:15 libclntsh.dylib
-> libclntsh.dylib.12.1\
-rwxr-xr-x@ 1 kunwarkhomane staff 8480 Oct 11 16:23 sqlplus\
-r-xr-xr-x@ 1 kunwarkhomane staff 1639388 Oct 11 16:23
libsqlplusic.dylib\
-rwxr-xr-x@ 1 kunwarkhomane staff 1267088 Oct 11 16:23
libsqlplus.dylib\
-r-xr-xr-x@ 1 kunwarkhomane staff 342 Oct 11 16:23 glogin.sql\
-rw-r--r--@ 1 kunwarkhomane staff 404 Oct 11 16:23 SQLPLUS_README\
drwx------@ 14 kunwarkhomane staff 476 Nov 20 21:39 swingbench\
2. this is inside the swingbench directory . i have created the
swingbench.env manually as i didn't find it in the zip folder that i
downloaded.
kunwars-MacBook-Pro:swingbench kunwarkhomane$ cat swingbench.env
#!/bin/bash
export ORACLE_HOME=/Users/kunwarkhomane/Downloads/instantclient_12_2
export JAVAHOME=/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk
export
SWINGHOME=/Users/kunwarkhomane/Downloads/instantclient_12_2/swingbench
export ANTHOME=$SWINGHOME/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME
export CLASSPATH=$JAVAHOME/lib/rt.jar:$JAVAHOME/lib/tools.jar:
$ORACLE_HOME/ojdbc8.jar:$SWINGHOME/lib/mytransactions.jar:$
{SWINGHOME}/lib/swingbench.jar:$ANTHOME/ant.jar
kunwars-MacBook-Pro:swingbench kunwarkhomane$ cd bin
kunwars-MacBook-Pro:bin kunwarkhomane$ ./swingbench
Application : Swingbench
Author : Dominic Giles
Version : 2.6.0.1090
Started Swingbench, Version 2.6.0.1090. No config file
specifiedjava.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:228)
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext
at
com.dom.benchmarking.swingbench.jaxb.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:22)
at
com.dom.benchmarking.swingbench.frontend.components.BenchmarkChooser.lambda$init$0(BenchmarkChooser.java:48)
at
java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
... 5 more
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBContext
at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 15 more
+++++++++
I recently thought of trying swingbench as i plan to reproduce some
workload to research some issues.
Cheers,
Kunwar