Sunday, October 13, 2019
Adding multiple folders to Git
$ git add -A
Then can commit changes and push it to the repository.
Wednesday, October 31, 2018
Find the process running on specific port
Syntax : netstat<space>-ano<space>|<space>find<space>":<port>"
When run the command related to the port 8006 the output will give as below,
Ex:
C:\Users\hal>netstat -ano | find ":8006"
TCP 127.0.0.1:8006 0.0.0.0:0 LISTENING 5380
Related to the example, "5380" is the process id(PID), then can check the PID through the Task Manager.
Sunday, December 10, 2017
Maven build failed with "Fatal error compiling: invalid target release: 1.8 -> [Help 1]"
Error log:
INFO] ------------------------------------------------------------------------
INFO] BUILD FAILURE
INFO] ------------------------------------------------------------------------
INFO] Total time: 3.390 s
INFO] Finished at: 2017-12-09T16:33:24+05:30
INFO] Final Memory: 9M/150M
INFO] ------------------------------------------------------------------------
ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2
:compile (default-compile) on project dpc-portal: Fatal error compiling: invalid
target release: 1.8 -> [Help 1]
ERROR]
The reason was, I set JAVA_HOME to the JDK 1.7 (as in below image) but try to build using JDK 1.8. So after change the JAVA_HOME to JDK 1.8 version, project was built successfully.
Reference:
https://stackoverflow.com/questions/28291691/fatal-error-compiling-invalid-target-release-1-8-help-1
Wednesday, November 8, 2017
Enable Wire Logs in WSO2 ESB
WSO2 ESB 4.7.0 or higher versions.
In the older versions, it is bit different than the new versions.
To see HTTP headers and messages of Callout mediator/MessageProcessor.
3. Save the file and restart the server to affect the changes.
Monday, August 22, 2016
Changing User Passwords In WSO2 ESB.
What you need to do is run the chpasswd script inside the <PRODUCT_HOME>/bin/ directory.
For an example, I need to change the admin password. So I pass the "username" command line argument also. If we do not provide these as command line arguments, it will be prompted for it during the execution time.
These are the steps you need to follow.
1. Extract the fresh ESB 4.9.0 instance.
2. Start the server.
3. Shutdown the server.
4. Run the below command and set the new password.
- For Linux: ./chpasswd.sh --username "admin" --db-url "jdbc:h2:repository/database/WSO2CARBON_DB"
- For Windows: chpasswd.bat --username "admin" --db-url "jdbc:h2:repository/database/WSO2CARBON_DB"
6. Login from the new password and it will log you into the Management Console.
Reference:
Monday, October 5, 2015
Install SoapUI using .sh file in Ubuntu.
* Download SoapUI<version>.sh file (linux installer) and try out following commands in the Terminal.
$ sudo chmod +x SoapUI<version>.sh $ ./SoapUI<version>.sh
* Note : Replace the name of the file according the downloaded version of the SOAP UI.
* It will run as following screen shot and prompt you to the installation window.
Sunday, October 4, 2015
'OPTION SQL_SELECT_LIMIT=DEFAULT' MySQL Error
I got this 'OPTION SQL_SELECT_LIMIT=DEFAULT' error when I try to mount the WSO2 ESB registry partitions into MySQL.
In here I used the mysql-connector-java-5.0.8-bin.jar version as a jdbc connector for MySQL. It seems like a bug in MySQL.
As it said in this stackoverflow link [1] mysql-connector-java 5.1.22 and newer versions are fine. So I download mysql-connector-java-5.1.34-bin.jar version and used.
Note: Before restarting the ESB server, have to clear 'dropins' folder in <ESB_HOME>/repository/components/dropins
Cool... Then it's working fine.
Reference links :[1] http://stackoverflow.com/questions/15669270/option-sql-select-limit-default

