Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [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
- Exception Description: Error encountered during string decryption.
- Internal Exception: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
- Exception in thread "main" javax.persistence.PersistenceException: Exception [EclipseLink-7107] (Eclipse Persistence Services - 2.6.4.v20160829-44060b6): org.eclipse.persistence.exceptions.ValidationException
- Exception Description: Error encountered during string decryption.
- Internal Exception: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
- private EntityManagerFactory factory;
- private EntityManager em;
- public JpaDatabaseConnection() {
- factory = Persistence.createEntityManagerFactory("blogspace");
- em = factory.createEntityManager();
- }
- <?xml version="1.0" encoding="UTF-8" ?>
- <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
- version="2.0" xmlns="http://java.sun.com/xml/ns/persistence">
- <persistence-unit name="blogspace" transaction-type="RESOURCE_LOCAL">
- <class>pl.furman.server.database.entities.User</class>
- <properties>
- <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
- <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost/blogspace" />
- <property name="javax.persistence.jdbc.user" value="blogserver" />
- <property name="javax.persistence.jdbc.password" value="123456" />
- <!-- EclipseLink should create the database schema automatically -->
- <property name="eclipselink.ddl-generation" value="create-tables" />
- <property name="eclipselink.ddl-generation.output-mode" value="database" />
- </properties>
- </persistence-unit>
- </persistence>
- Internal Exception: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
- at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:815)
- at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getAbstractSession(EntityManagerFactoryDelegate.java:205)
- at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:305)
- at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:337)
- at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:303)
- at demo.service.UserService.<init>(UserService.java:14)
- at demo.Runner.main(Runner.java:8)
- Caused by: Exception [EclipseLink-7107] (Eclipse Persistence Services - 2.6.4.v20160829-44060b6): org.eclipse.persistence.exceptions.ValidationException
- Exception Description: Error encountered during string decryption.
- Internal Exception: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
- at org.eclipse.persistence.exceptions.ValidationException.errorDecryptingPassword(ValidationException.java:894)
- at org.eclipse.persistence.internal.security.JCEEncryptor.decryptPassword(JCEEncryptor.java:114)
- at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.updateLogins(EntityManagerSetupImpl.java:2404)
- at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.updateSession(EntityManagerSetupImpl.java:2716)
- at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:710)
- ... 6 more
- Caused by: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
- at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:934)
- at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:845)
- at com.sun.crypto.provider.DESCipher.engineDoFinal(DESCipher.java:314)
- at javax.crypto.Cipher.doFinal(Cipher.java:2165)
- at org.eclipse.persistence.internal.security.JCEEncryptor.decryptPassword(JCEEncryptor.java:109)
- ... 9 more
- <dependency>
- <groupId>org.eclipse.persistence</groupId>
- <artifactId>eclipselink</artifactId>
- <version>2.6.5-RC2</version>
- </dependency>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement