Posts

java.net.BindException: Cannot assign requested address (Bind failed)

java.net.BindException: Cannot assign requested address (Bind failed)         at java.net.PlainSocketImpl.socketBind(Native Method)         at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)         at java.net.ServerSocket.bind(ServerSocket.java:375)         at com.samsung.nms.simulator.tl1.server.ssh.TL1SshServer$ConnectionListener.run(TL1SshServer.java:577)         at java.lang.Thread.run(Thread.java:748) netstat  didnt list any open port,  lsof -i TCP:<myport> no other process had opened myport. Solution : the process which binds the port, was started by non root user, starting the process as root user solved the problem

Run Junit from jar

$JAVA_HOME/bin/java -cp ./jsch-0.1.44-1.jar:./log4j-1.2.17.jar:./automation.jar:./automation-tests.jar:./junit-4.12.jar:./junit4_4.3.1.jar.zip:./hamcrest-core-1.3.jar  org.junit.runner.JUnitCore  com.hp.cms.nfvd.assurance.ft.automation.PreVNFDeploymentTest

maven deploy failes with --> Error code 401, Unauthorized -> [Help 1]

reason: You need to have the POM uploaded for the first time. 1. find that .pom from .m2 folder

JAVA_HOME change doesn't take in to effect

Change add the JDK path at start of path variable in windows 

Jboss start fails : transport library not found

Issue : ERROR: transport library not found: dt_shmem ERROR: JDWP Transport dt_shmem failed to initialize, TRANSPORT_LOAD(509) JDWP exit error AGENT_ERROR_TRANSPORT_LOAD(196): No transports initialized [../../../src/share/back/debugInit.c:750] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_LOAD(196) ./standalone.sh: line 173:  9965 Aborted                 (core dumped) "/usr/jdk1.7.0_71/bin/java" -D"[Standalone]" Solutions : I checked my standalone.conf there was entry # Sample JPDA settings for remote socket debugging #JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket, address=8787 ,server=y,suspend=n" # Sample JPDA settings for shared memory debugging JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=jboss" I had to comment " Sample JPDA settings for shared memory debugging" and un-comment " ettings for remote socket debugging&q