[ 
https://issues.apache.org/jira/browse/OPENJPA-2673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15568687#comment-15568687
 ] 

Christian Schneider commented on OPENJPA-2673:
----------------------------------------------

You can run the test from openjpa-integration/karaf.

This is the output from the test:
Running org.apache.openjpa.itest.karaf.KarafTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.13 sec <<< 
FAILURE! - in org.apache.openjpa.itest.karaf.KarafTest
test1(org.apache.openjpa.itest.karaf.KarafTest)  Time elapsed: 5.004 sec  <<< 
ERROR!
java.lang.Exception: 
org.apache.openjpa.lib.jdbc.ReportingSQLException: Table "TASK" not found; SQL 
statement:
SELECT t0.id, t0.description, t0.dueDate, t0.finished, t0.title FROM Task t0 
[42102-172] {SELECT t0.id, t0.description, t0.dueDate, t0.finished, t0.title 
FROM Task t0} [code=42102, state=42S02]
        at 
org.apache.openjpa.util.Exceptions.replaceNestedThrowables(Exceptions.java:254)
        at 
org.apache.openjpa.persistence.PersistenceException.writeObject(PersistenceException.java:99)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1028)
        at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
        at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
        at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
        at 
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:441)
        at java.lang.Throwable.writeObject(Throwable.java:985)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1028)
        at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496)
        at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
        at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
        at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
        at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:362)
        at sun.rmi.transport.Transport$1.run(Transport.java:200)
        at sun.rmi.transport.Transport$1.run(Transport.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
        at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
        at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
        at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)



> Table is not created in openjpa 3.0.0-SNAPSHOT and OSGi
> -------------------------------------------------------
>
>                 Key: OPENJPA-2673
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2673
>             Project: OpenJPA
>          Issue Type: Bug
>            Reporter: Christian Schneider
>             Fix For: 3.0.0
>
>
> When testing the openjpa 3 feature in karaf I had the problem that my table 
> was not there when openjpa tried to access it even though I have specified 
> the options to create tables. 
> This first case where I found the issue was using Aries JPA. So I was not 
> sure if the problem might be in Aries JPA.
> I have now created a pax exam test that reproduces the issue without Aries 
> JPA. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to