...
Code Block |
---|
patch bin/generateStats.pl generateStats.pl.patch patch bin/generateQTstats.pl generateQTstats.pl.patch |
Variations Web Services fail to connect to the Variations server
Sometimes the Variations Web Services fail to connect to the Variations server when started. The log file (log/variations-ws-server.log) should report an error like the following:
Code Block |
---|
03 Oct 2010 07:07:43,313 ERROR [Timer-5] authentication.VariationsLoginProxy Could not log into Variations.
edu.indiana.dml.library.auth.AuthenticationException: Couldn't decrypt the password
at edu.indiana.dml.library.auth.PasswordAuth.decrypt(PasswordAuth.java:85)
at edu.indiana.dml.library.auth.PasswordAuth.authenticateByIUGuest(PasswordAuth.java:110)
at edu.indiana.dml.library.LibraryConnectionManager.getConnection(LibraryConnectionManager.java:182)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at edu.indiana.dml.library.LibraryConnectionManager_Stub.getConnection(Unknown Source)
at edu.indiana.variations.ws.server.authentication.VariationsLoginProxy.connect(VariationsLoginProxy.java:215)
at edu.indiana.variations.ws.server.authentication.VariationsLoginProxy.getConnection(VariationsLoginProxy.java:121)
at edu.indiana.variations.ws.server.repo.VariationsRepository.createConnection(VariationsRepository.java:109)
at edu.indiana.variations.ws.server.repo.VariationsRepository.access$400(VariationsRepository.java:47)
at edu.indiana.variations.ws.server.repo.VariationsRepository$KeepAliveTimerTask.keepAlive(VariationsRepository.java:154)
at edu.indiana.variations.ws.server.repo.VariationsRepository$KeepAliveTimerTask.run(VariationsRepository.java:145)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by...
javax.crypto.BadPaddingException: Given final block not properly padded
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA13*..)
at javax.crypto.Cipher.doFinal(DashoA13*..)
at edu.indiana.dml.library.auth.PasswordAuth.decrypt(PasswordAuth.java:83)
at edu.indiana.dml.library.auth.PasswordAuth.authenticateByIUGuest(PasswordAuth.java:110)
at edu.indiana.dml.library.LibraryConnectionManager.getConnection(LibraryConnectionManager.java:182)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
|
One workaround for this is to delete the encryption keys stored while connecting to the Variations server as a client and restarting the web services webapp.
Code Block |
---|
rm /usr/local/tomcat/.variations2/* |
Variations data files (e.g., v2t, v2p) won't open from Outlook Web Access
...