Error reading properties file ! Please Help
Dear all,
I have two different application reading the same properties file from the same directory to initialize the database settings by reading the information from the properties file.
Now the problem is that whenever I start either of the two different application the first application is able to read the Properties file and initializes database by reasding the information but when the second application is started is gives an exception.
Any idea how to reaolve it!
I gues may b since the object of Property is already loaded that might b the problem.....
any work around !
Prompt replay will b highly appreciated
Thankz in advance
Arun
Well lemme tell u that I am reading an encrypted properties file.
Its basically while decrypting in the second application I am getting the below mentioned exception:
Below the DBConnectionManager is reading the encrypted properties file and after decryting the file it gets the property.It is in the second application the exception occurs:
java.security.spec.InvalidParameterSpecException: Not an IV param spec
at com.dstc.security.provider.DESedeParameters.engineInit(Unknown Source)
at java.security.AlgorithmParameters.init(AlgorithmParameters.java:202)
at database.common.gui.GetPropsRead.setPropertiesByteArray(GetPropsRead.java:88)
at common.gui.GetPropsRead.<init>(GetPropsRead.java:55)
at database.conPool.DBConnectionManager.init(DBConnectionManager.java:476)
at database.conPool.DBConnectionManager.<init>(DBConnectionManager.java:308)
at database.conPool.DBConnectionManager.getInstance(DBConnectionManager.java:470)
at bu.ImageBean.<init>(ImageBean.java:20)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java(Compiled Code))
at java.beans.Beans.instantiate(Beans.java:213)
at java.beans.Beans.instantiate(Beans.java:57)
at wtpages.LoginFail_jsp_0._jspService(LoginFail_jsp_0.java:96)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:159)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:286)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:106)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:499)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:278)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:105)
at bu.LoginServlet.doPost(LoginServlet.java:74)
at bu.LoginServlet.doGet(LoginServlet.java:33)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:159)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:286)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:106)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:499)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:278)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:105)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:123)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation
Any suggestion!
Thankz in advance
Arun