Discussion:
Error when trying to launch swingbench on MAC
kunwar singh
2018-11-20 16:56:27 UTC
Permalink
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
Tanel Poder
2018-11-20 19:43:27 UTC
Permalink
I just do this on OSX:

1) make sure you have java 8 (and *not* 9 or 10) installed
2) download swingbench & unzip
3) cd swinghbench_dir/bin
4) run ./oewizard or ./swigbench while being in the bin directory

Nothing else should be needed. I haven't needed to muck around with .env
files at all with latest swingbench versions ... and I don't think it has
anything to do with instant client either as swingbench should have its own
JDBC libraries shipped with it.

--
Tanel Poder
https://blog.tanelpoder.com/seminar/
Post by kunwar singh
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\
Jeremiah Cetlin Wilton
2018-11-20 23:28:17 UTC
Permalink
Latest Swingbench seems to want a path to the config file sometimes. I'm not sure if always. Maybe only with charbench. Something like this should work (make sure you put the correct settings in the config file).

./charbench -c ../configs/SOE_Server_Side_V2.xml

Jeremiah


From: "Tanel Poder" <***@tanelpoder.com>
To: "Krish Singh" <***@gmail.com>
Cc: "Oracle Mailing List" <oracle-***@freelists.org>
Sent: Tuesday, November 20, 2018 11:43:27 AM
Subject: Re: Error when trying to launch swingbench on MAC

I just do this on OSX:
1) make sure you have java 8 (and not 9 or 10) installed
2) download swingbench & unzip
3) cd swinghbench_dir/bin
4) run ./oewizard or ./swigbench while being in the bin directory

Nothing else should be needed. I haven't needed to muck around with .env files at all with latest swingbench versions ... and I don't think it has anything to do with instant client either as swingbench should have its own JDBC libraries shipped with it.
--
Tanel Poder
[ https://blog.tanelpoder.com/seminar/ | https://blog.tanelpoder.com/seminar/ ]


On Tue, Nov 20, 2018 at 11:58 AM kunwar singh < [ mailto:***@gmail.com | ***@gmail.com ] > wrote:



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\



BQ_BEGIN



BQ_END
kunwar singh
2018-11-21 11:32:06 UTC
Permalink
Thanks Tanel! uninstalling jdk 11 and installing idk 8 resolved the issue :)
should have thought of that ..
Post by Tanel Poder
1) make sure you have java 8 (and *not* 9 or 10) installed
2) download swingbench & unzip
3) cd swinghbench_dir/bin
4) run ./oewizard or ./swigbench while being in the bin directory
Nothing else should be needed. I haven't needed to muck around with .env
files at all with latest swingbench versions ... and I don't think it has
anything to do with instant client either as swingbench should have its own
JDBC libraries shipped with it.
--
Tanel Poder
https://blog.tanelpoder.com/seminar/
Post by kunwar singh
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\
--
Cheers,
Kunwar
Loading...