lolchtoo
@lolchtoo
java разработчик

Jpa console Intellig idea не работает. Почему?

<persistence xmlns="http://java.sun.com/xml/ns/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_1_0.xsd"	version="1.0">
    <persistence-unit name="PKU">
        <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
        <properties>
            <property name="openjpa.ConnectionURL" value="jdbc:db2://localhost:50000/PKU"/>
            <property name="openjpa.ConnectionDriverName" value="com.ibm.db2.jcc.DB2Driver"/>
            <property name="openjpa.ConnectionUserName" value="db2admin"/>
            <property name="openjpa.ConnectionPassword" value="db2admin"/>
        </properties>
    </persistence-unit>
</persistence>


jpa-ql> select o from PkuCModuleCs o
[2017-03-03 11:28:00] completed in 1s 185ms
[2017-03-03 11:28:00] java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/persistence/Persistence
[2017-03-03 11:28:00] 	at java.lang.ClassLoader.defineClass1(Native Method)
[2017-03-03 11:28:00] 	at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
[2017-03-03 11:28:00] 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[2017-03-03 11:28:00] 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
[2017-03-03 11:28:00] 	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
[2017-03-03 11:28:00] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
[2017-03-03 11:28:00] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
[2017-03-03 11:28:00] 	at java.security.AccessController.doPrivileged(Native Method)
[2017-03-03 11:28:00] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
[2017-03-03 11:28:00] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[2017-03-03 11:28:00] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
[2017-03-03 11:28:00] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[2017-03-03 11:28:00] 	at com.intellij.jpa.remote.impl.JpaFacadeImpl.createEntityManagerFactory(JpaFacadeImpl.java:16)
[2017-03-03 11:28:00] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2017-03-03 11:28:00] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2017-03-03 11:28:00] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2017-03-03 11:28:00] 	at java.lang.reflect.Method.invoke(Method.java:497)
[2017-03-03 11:28:00] 	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
[2017-03-03 11:28:00] 	at sun.rmi.transport.Transport$1.run(Transport.java:200)
[2017-03-03 11:28:00] 	at sun.rmi.transport.Transport$1.run(Transport.java:197)
[2017-03-03 11:28:00] 	at java.security.AccessController.doPrivileged(Native Method)
[2017-03-03 11:28:00] 	at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
[2017-03-03 11:28:00] 	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
[2017-03-03 11:28:00] 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
[2017-03-03 11:28:00] 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$256(TCPTransport.java:683)
[2017-03-03 11:28:00] 	at java.security.AccessController.doPrivileged(Native Method)
[2017-03-03 11:28:00] 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
[2017-03-03 11:28:00] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[2017-03-03 11:28:00] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[2017-03-03 11:28:00] 	at java.lang.Thread.run(Thread.java:745)


//ROOT PKU build file

buildscript {
	repositories {
		maven {
			url CSRepoURL
			credentials {
				username
				password CSRepoPassword
			}
		}
	}
	dependencies {
		classpath 'org.zeroturnaround:gradle-jrebel-plugin:1.1.2'
	}
}

subprojects {
	

	apply plugin: 'eclipse'
	apply plugin: 'rebel'

	version = '8.1.0'
	
	
	ext.nsiVersion = '7.2.18'
	ext.nsiIntegrationVersion = '1.0.1.75'

	dependencies {
		compile 'javax:javaee-api:6.0'
		compile 'javax.ejb:ejb-api:3.0'
		compile 'org.uit.integration.nci:integration-nci-runner:1.0.1.61'
		compile 'org.projectlombok:lombok:1.16.12'
	}
	project.ext.repodir = '..'
}


23fbcf0b0d8e4e1793f8d68787470526.png8c9a24c352544488bd4e6176661e0dc5.png
  • Вопрос задан
  • 329 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы