Advertisement
Guest User

Untitled

a guest
Jul 31st, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.51 KB | None | 0 0
  1. [EL Severe]: ejb: 2017-06-04 19:29:55.066--ServerSession(1644987969)--Exception [EclipseLink-7107] (Eclipse Persistence Services - 2.6.4.v20160829-44060b6): org.eclipse.persistence.exceptions.ValidationException
  2. Exception Description: Error encountered during string decryption.
  3. Internal Exception: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
  4. Exception in thread "main" javax.persistence.PersistenceException: Exception [EclipseLink-7107] (Eclipse Persistence Services - 2.6.4.v20160829-44060b6): org.eclipse.persistence.exceptions.ValidationException
  5. Exception Description: Error encountered during string decryption.
  6. Internal Exception: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
  7.  
  8. private EntityManagerFactory factory;
  9. private EntityManager em;
  10.  
  11. public JpaDatabaseConnection() {
  12.  
  13. factory = Persistence.createEntityManagerFactory("blogspace");
  14. em = factory.createEntityManager();
  15. }
  16.  
  17. <?xml version="1.0" encoding="UTF-8" ?>
  18. <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
  20. version="2.0" xmlns="http://java.sun.com/xml/ns/persistence">
  21.  
  22. <persistence-unit name="blogspace" transaction-type="RESOURCE_LOCAL">
  23. <class>pl.furman.server.database.entities.User</class>
  24. <properties>
  25. <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
  26. <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost/blogspace" />
  27. <property name="javax.persistence.jdbc.user" value="blogserver" />
  28. <property name="javax.persistence.jdbc.password" value="123456" />
  29. <!-- EclipseLink should create the database schema automatically -->
  30. <property name="eclipselink.ddl-generation" value="create-tables" />
  31. <property name="eclipselink.ddl-generation.output-mode" value="database" />
  32. </properties>
  33. </persistence-unit>
  34. </persistence>
  35.  
  36. Internal Exception: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
  37. at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:815)
  38. at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getAbstractSession(EntityManagerFactoryDelegate.java:205)
  39. at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:305)
  40. at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:337)
  41. at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:303)
  42. at demo.service.UserService.<init>(UserService.java:14)
  43. at demo.Runner.main(Runner.java:8)
  44. Caused by: Exception [EclipseLink-7107] (Eclipse Persistence Services - 2.6.4.v20160829-44060b6): org.eclipse.persistence.exceptions.ValidationException
  45. Exception Description: Error encountered during string decryption.
  46. Internal Exception: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
  47. at org.eclipse.persistence.exceptions.ValidationException.errorDecryptingPassword(ValidationException.java:894)
  48. at org.eclipse.persistence.internal.security.JCEEncryptor.decryptPassword(JCEEncryptor.java:114)
  49. at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.updateLogins(EntityManagerSetupImpl.java:2404)
  50. at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.updateSession(EntityManagerSetupImpl.java:2716)
  51. at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:710)
  52. ... 6 more
  53. Caused by: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
  54. at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:934)
  55. at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:845)
  56. at com.sun.crypto.provider.DESCipher.engineDoFinal(DESCipher.java:314)
  57. at javax.crypto.Cipher.doFinal(Cipher.java:2165)
  58. at org.eclipse.persistence.internal.security.JCEEncryptor.decryptPassword(JCEEncryptor.java:109)
  59. ... 9 more
  60.  
  61. <dependency>
  62. <groupId>org.eclipse.persistence</groupId>
  63. <artifactId>eclipselink</artifactId>
  64. <version>2.6.5-RC2</version>
  65. </dependency>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement