Getting an Error while launching jmeter 3.2 - jmeter

I'm trying to execute jmeter 3.2 batch file but application is not working
My log with error:
C:\apache-jmeter-3.2\bin>jmeter.bat
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/apache-jmeter-3.2/lib/log4j-slf4j-impl-2.8.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/apache-jmeter-3.2/lib/slf4j-nop-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
> Don't use GUI mode for load testing, only for Test creation and Test debugging !
For load testing, use NON GUI Mode:
jmeter -n -t [jmx file] -l [results file] -e -o [Path to output folder]
& adapt Java Heap to your test requirements:
Modify HEAP="-Xms512m -Xmx512m" in the JMeter batch file
> An error occurred: org.fife.ui.rtextarea.RTextScrollPane.<init>(Lorg/fife/ui/rtextarea/RTextArea;)V
errorlevel=1
Press any key to continue . . .

As message tell you, yoy have 2 bindings for slf4j, so remove one, for example:
C:/apache-jmeter-3.2/lib/slf4j-nop-1.7.10.jar

Related

Parsing failed when initialize Derby on hive

I have already configured the hive-site.xml file,and use
$HIVE_HOME/bin/schematool –initSchema –dbType derby
to initialize Derby,and the error is as below:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hive/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
HiveSchemaTool:Parsing failed. Reason: Missing required option: [-help print this message, -alterCatalog Alter a catalog, requires --catalogLocation and/or --catalogDescription parameter as well, -initSchemaTo Schema initialization to a version, -upgradeSchemaFrom Schema upgrade from a version, -moveDatabase Move a database between catalogs. Argument is the database name. Requires --fromCatalog and --toCatalog parameters as well, -moveTable Move a table to a different database. Argument is the table name. Requires --fromCatalog, --toCatalog, --fromDatabase, and --toDatabase parameters as well., -initSchema Schema initialization, -createCatalog Create a catalog, requires --catalogLocation parameter as well, -upgradeSchema Schema upgrade, -info Show config and schema details, -validate Validate the database]
Try typing each command instead of copy-paste. Strange but issue resolved by doing this.

I have added a parcel for spark 2.4 and created a service for spark 2. But its invoking spark 1.6 shell

In CDH 5.13, I have added a spark 2.4 parcel and created a spark 2 service in cloud manager. but when i am running spark2-shell, its invoking spark 1.6
CDH version: 5.13
spark 2 csd : /usr/lib/SPARK2-2.4.0.cloudera2-1.cdh5.13.3.p0.1041012
Conf : Java 1.8 (already present)
[cloudera#quickstart lib]$ spark2-shell Setting default log level to
"WARN". To adjust logging level use sc.setLogLevel(newLevel). SLF4J:
Class path contains multiple SLF4J bindings. SLF4J: Found binding in
[jar:file:/usr/lib/zookeeper/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/usr/lib/flume-ng/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/usr/lib/parquet/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/usr/lib/avro/avro-tools-1.7.6-cdh5.13.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation. SLF4J: Actual binding is of type
[org.slf4j.impl.Log4jLoggerFactory] Welcome to
/ / _ _____/ /
_\ / _ / _ `/ / '/
// .__/_,// //_\ version 1.6.0
//
Using Scala version 2.10.5 (Java HotSpot(TM) 64-Bit Server VM, Java
1.8.0_202) Type in expressions to have them evaluated. Type :help for more information. Spark context available as sc (master = local[*],
app id = local-1565015557669). SQL context available as sqlContext.
I expect it will invoke spark 2.4 shell, but its calling spark 1.6 shell.

Getting error file not found for ProcessCenter_CaseManagerConfig.properties while running BPMGenerateUpgradeSchemaScripts.bat command

I am updating IBM BPM 8.6.0 to IBM Business Automation Workflow Version 18.0.0.2, after updating fix pack for IBAW when I am running below command I get an error.
BPMGenerateUpgradeSchemaScripts.bat -profileName Node1Profile -de ProcessCenter
Below is the error which is coming on running above command.
Unable to find the response file
C:\IBM\BPM\v8.6\profiles\Node1Profile\config\cells\PCCell1\ProcessCenter_CaseManagerConfig.properties
Unable to find the file C:\IBM\BPM\v8.6\profiles\Node1Profile\config\cells\PCCell1\ProcessCenter_CaseManagerConfig.properties, please run the command 'BPMConfig -update -profile deployment_manager_profile -de deployment_environment_name -caseConfigure' to collect the configuration information for the content data sources, please read the knowledge center for details.
java.io.FileNotFoundException: C:\IBM\BPM\v8.6\profiles\Node1Profile\config\cells\PCCell1\ProcessCenter_CaseManagerConfig.properties (The system cannot find the file specified.)
CWMCO6007E: The BPMGenerateUpgradeSchemaScripts command could not complete successfully. The following exception occurred :
Faild to initialize the CommonInfo. java.io.FileNotFoundException: C:\IBM\BPM\v8.6\profiles\Node1Profile\config\cells\PCCell1\ProcessCenter_CaseManagerConfig.properties (The system cannot find the file specified.)
The file command asked to run first in the above error is on 11 point in the upgrade guide, can some one please suggest whats wrong with this?

smslib configuration issue

It's being 2 days I am trying to configure smslib on my computer and I always got the exception below while trying to execute the sample code (SendMessage) contained in the zip file :
log4j:WARN No appenders could be found for logger (smslib).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "Thread-3" java.lang.ExceptionInInitializerError
at org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:69)
at org.smslib.modem.AModemDriver.connect(AModemDriver.java:114)
at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:189)
at org.smslib.Service$1Starter.run(Service.java:276)
Caused by: java.lang.RuntimeException: CommPortIdentifier class not found
at org.smslib.helper.CommPortIdentifier.<clinit>(CommPortIdentifier.java:76)
... 4 more
I have done everything asked on the smslib web site, I have read all the post related to the same error, I have also configured the JAVA_HOME path, but I steel get the same error.
I am working on Windows 7, with Eclipse Juno and the JDK 7.
Please can someone help try to fix this issue.
And one more thing; is there another lib we can use instead of smslib?
Thanks
It fine now, I guess it was due to the fact that my eclipse was configured with the jre path instead of the JDK path.
I put the required files in the jre's folders and it work fine.
Thank you very much !

log4j config file not getting loaded

I am running a shell script to execute a java program. when invoking the java program i am passing
-Dlog4j.configuration=${SRD_BATCH_HOME}/propertyfile/log4j.properties
When i run the program i see this on top of the log
log4j: Trying to find [/some path/log4j.properties] using context classloader
sun.misc.Launcher$AppClassLoader#4aad3ba4.
log4j: Trying to find [/some path/log4j.properties] using sun.misc.Launcher$AppClassLoader#4aad3ba4 class loader.
log4j: Trying to find [/some path/log4j.properties] using ClassLoader.getSystemResource().
log4j: Could not find resource: [/some path/log4j.properties].
But my log4j is lying right at this place //log4j.properties
I added BasicConfigurator.configure() in my java program and the logs started printing but now its printing everything as its not looking at my properties file. can someone help out on what could be wrong here.
Try adding "file:/" to the start of the file path
-Dlog4j.configuration=file:/${SRD_BATCH_HOME}/propertyfile/log4j.properties
as specified here

Resources