Thursday, December 24, 2015

com.izforge.izpack.api.exception.CompilerException: the file version is different from the compiler version

This exception occurs when the installation version in the installation xml file is different from the IzPack version you have installed.

<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
          <installation version="5.0">

To fix it, make the version the same as the IaPack version you are using.



                        
If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book free here.

Friday, December 18, 2015

java.sql.SQLException: Could not commit with auto-commit set on - Resolved

The "Could not commit with auto-commit set on" exception happens when the connection is automatically set auto commit to true.

To fix this, do one of the followings.

A. Set connection to auto commit false.


           Class.forName(<dbDriver>);

           Connection connection = DriverManager.getConnection(<dbURL>, <dbUser>, <dbPassword>);

             connection.setAutoCommit(false);     


B. Set the -Doracle.jdbc.autoCommitSpecCompliant=false JVM option.


             In NetBeans, right click the project, select Properties. In the pop up window, select Run on the left and enter -Doracle.jdbc.autoCommitSpecCompliant=false in the VM Options on the right.

--------------------------------------------------------------------------------
                        

If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book free here.

Wednesday, December 16, 2015

java.sql.SQLException: ORA-28000: the account is locked

The account is locked when an user has tried to log into the database with wrong userID/password for times more than the number defined by the FAILED_LOGIN_ATTEMPTS parameter in the profile.

To fix this problem, log into the oracle database as dba and execute the following commands.

SQL> ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED;

SQL> ALTER USER <username> ACCOUNT UNLOCK;



                        

If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book free here.