Sunday, May 21, 2017

Requirements for Mysql Workbench installation

Some dependencies must need to be installed if Mysql Workbench is used:

sudo yum install epel-release
sudo yum install proj
sudo yum install tinyxml
sudo yum install libzip

There is another important file where the password installation is located:

/var/log/mysqld.log

Important links:

Thursday, May 18, 2017

Possible solution to preflight problem with Options request in a Rest Service under Chrome.


There is a common error under rest service development with AngularJS framework after that understood that internally the framework do OPTIONS requests to know who is invoking an error like follows can occur:

Response for preflight has invalid HTTP status code 400

The possible solution to this problem is to check CORSFilter and when the request contains a OPTIONS just respond an OK status:

...
    if ("OPTIONS".equalsIgnoreCase(request.getMethod())) {
        response.setStatus(HttpServletResponse.SC_OK);
    } else {
        chain.doFilter(req, res);
    }

Important links:


Wednesday, May 3, 2017

How to solve IBM MQ NoClassDefFoundError over jms configuration?

I f you are using IBM MQ jars to development, you must carry about jms specification you are using, sometimes not all distributions is not used over application instend of that the following error can occurs:

java.lang.NoClassDefFoundError: com.ibm.mq.internal.MQCommonServices
...

The solution is to use jms.jar and part of the jars inside IBM MQ distribution as example like:
  • com.ibm.mq.jar
  • com.ibm.mq.jmqi.jar
  • com.ibm.mq.headers.jar
  • com.ibm.mq.commonservices.jar

Best Regards,