<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<!-- MHonArc v2.6.10 -->
	<channel>
		<title>eclipselink-dev</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/maillist.html</link>
		<description>eclipselink-dev</description>
		<language>en-us</language>
		<pubDate>Thu, 26 Nov 2009 19:43:11 GMT</pubDate>
		<lastBuildDate>Thu, 26 Nov 2009 19:43:11 GMT</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MHonArc RSS 2.0 RCFile</generator>
		<managingEditor>webmaster@eclipse.org (Webmaster)</managingEditor>
		<webMaster>webmaster@eclipse.org (Webmaster)</webMaster>
		<image>
			<title>eclipselink-dev</title>
			<url>http://www.eclipse.org/eclipse.org-common/themes/Phoenix/images/eclipse_home_header.jpg</url>
			<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/maillist.html</link>
		</image>
 

	<item>
		<title>[eclipselink-dev] Check in for Bug 296010 Getting nullpointer during	starting of javax.persistence</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03425.html</link>
		<description> https://bugs.eclipse.org/bugs/show_bug.cgi?id=296010 When the javax.persistence bundle was started after o.e.p.jpa, an NPE occurred when the EclipseLink Persistence Provider service was found and attempted to be registered.  The map of registered provider...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td bgcolor="#ffffff" style="background-color: #ffffff; color: #000000; "><font color="#000000">



<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=296010">https://bugs.eclipse.org/bugs/show_bug.cgi?id=296010</a><br>
<br>
When the javax.persistence bundle was started after o.e.p.jpa, an NPE
occurred when the EclipseLink Persistence Provider service was found
and attempted to be registered.&nbsp; The map of registered providers was
uninitialized which resulted in an NPE. <br>
<br>
Tested both&nbsp; manually and with OSGi SRG.<br>
<br>
Reviewed by Tom Ware<br>
<div class="moz-signature">-- <br>
<a href="http://www.oracle.com" target="_blank"><img
 src="" alt="Oracle" border="0"
 height="26" width="114"></a><br>
<font color="#666666" face="Verdana, Arial, Helvetica, sans-serif"
 size="2">Shaun Smith | Principal Product Manager<br>
Phone: +19055023094 <br>
<font color="#ff0000">Oracle</font> Server Technologies, Oracle TopLink<br>
ORACLE Canada | 110 Matheson Boulevard West, Suite 100, Mississauga,
Ontario | L5R 3P4</font>
<br>
<a href="http://www.oracle.com/commitment" target="_blank"><img
 src="" alt="Green Oracle"
 align="absmiddle" border="0" height="28" width="44"></a>
<font color="#4b7d42" face="Verdana, Arial, Helvetica, sans-serif"
 size="1">Oracle is committed to developing practices and products that
help protect the environment</font>
</div>


</font></td></tr></table><p><a href="gifLUkNKkR2mn.gif" ><img src="gifLUkNKkR2mn.gif" alt="GIF image"></a></p>
<p><a href="gifbSfy5dthuZ.gif" ><img src="gifbSfy5dthuZ.gif" alt="GIF image"></a></p>
]]></content:encoded>
		<pubDate>Thu, 26 Nov 2009 19:37:04 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03425.html</guid>
		<author>shaun.smith@xxxxxxx (Shaun Smith)</author>
	</item>
	<item>
		<title>[eclipselink-dev] EclipseLink 2.1.0 Feature Planning</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03424.html</link>
		<description>Hi All, The EclipseLink project is starting to plan feature work for its 2.1.0 release, and we are asking for your help. Please let us know what features you would like to see added to EclipseLink. The best way to do this is through bugzilla. If you want t...</description>
		<content:encoded><![CDATA[<pre>Hi All,

The EclipseLink project is starting to plan feature work for its 2.1.0 release, and we are asking for your help.  Please let us know what features you would like to see added to EclipseLink.  The best way to do this is through bugzilla.

If you want to see a particular new feature added to EclipseLink, please search for it in bugzilla.
	If there is not a current enhancement request tracking your issue, add it and vote for it.
	If you see an existing enhancement request that you would like to see in 2.1.0 please vote for it.

Thank you in advance for your participation in 2.1.0.

Peter Krogh

</pre>]]></content:encoded>
		<pubDate>Thu, 26 Nov 2009 18:30:38 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03424.html</guid>
		<author>PETER.KROGH@xxxxxxx (Peter Krogh)</author>
	</item>
	<item>
		<title>[eclipselink-dev] BUILD STATUS:: trunk cb build has test failures!</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03423.html</link>
		<description>Build summary for 2.0.0.v20091126-r5904 ----------------------------------- TEST-CORE-SRG Tests run:683 Failures:0 Errors:0 TEST-JPA-SRG Tests run:192 Failures:0 Errors:0 TEST-MOXY-SRG Tests run:458 Failures:0 Errors:5 TEST-SDO-SRG Tests run:120 Failures:0...</description>
		<content:encoded><![CDATA[<pre>Build summary for 2.0.0.v20091126-r5904
-----------------------------------
TEST-CORE-SRG
  Tests run:683 Failures:0 Errors:0
TEST-JPA-SRG
  Tests run:192 Failures:0 Errors:0
TEST-MOXY-SRG
  Tests run:458 Failures:0 Errors:5
TEST-SDO-SRG
  Tests run:120 Failures:0 Errors:0
TEST-DBWS-SRG
  Tests run:14 Failures:0 Errors:0
TEST-DBWS-UTILS-SRG
  Tests run:22 Failures:0 Errors:0
-----------------------------------

Build log: (/shared/rt/eclipselink/logs/bsb-trunk_cb_091126-1200.log)
    
Build logs can be found on the download server at:
    <a  href="http://www.eclipse.org/eclipselink/downloads/build-failures.php">http://www.eclipse.org/eclipselink/downloads/build-failures.php</a>
-----------------------------------

SVN Changes since Last Build:
------------------------------------------------------------------------
r5904 | bdoughan | 2009-11-26 11:10:40 -0500 (Thu, 26 Nov 2009)
Changed paths:
   M /trunk/moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/oxm/mappings/XMLMappingTestCases.java
   M /trunk/moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/oxm/mappings/namespaces/ExtraNamespacesBug6004272TestCases.java
   M /trunk/moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/oxm/mappings/simpletypes/documentpreservation/DocumentPreservationTestCases.java
------------------------------------------------------------------------

</pre>]]></content:encoded>
		<pubDate>Thu, 26 Nov 2009 17:20:04 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03423.html</guid>
		<author>eric.gwin@xxxxxxx (eric . gwin)</author>
	</item>
	<item>
		<title>Re: [eclipselink-dev] Error in	EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL	on SAP NetWeaver</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03422.html</link>
		<description>_______________________________________________ eclipselink-dev mailing list eclipselink-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-dev _______________________________________________ eclipselink-dev mailing list eclipselink-dev@x...</description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Hi Tom,</pre><br>
<tt>We did find the test error on other servers, but we haven't had time to 
fix it yet. so the testcase needs to be fixed like:</tt><br>
<br>
<pre style="margin: 0em;">// this may fail with some drivers
           int result = 0;
           try {
               result = query1.executeUpdate();
           } catch (RuntimeException ex) {
               rollbackTransaction(em);
               closeEntityManager(em);
               em = createEntityManager();
               beginTransaction(em);
           }</pre><br>
<pre style="margin: 0em;">Yiping</pre><br>
<tt>On 11/26/2009 10:10 AM, Tom Ware wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>If the entity manager is transaction scoped, I think Sabine is right.  
The entity manager should be closed when the transaction either 
commits or rolls back.  I wonder why that is not happening on other 
servers.  (you'll notice query1.executeUpdate() is designed to fail)</tt><br>
<br>
<pre style="margin: 0em;">-Tom</pre><br>
<tt>yiping zhao wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hi Sabine,</pre><br>
<tt>In the test framework, by default the entity manager is injected in 
sessionbean, it's transaction-scoped.</tt><br>
<br>
<tt> &gt;From the stacktrace, it looks like that there is issue when 
executing &quot;result = query1.executeUpdate();&quot;, then somehow your SAP 
NetWeaver application server closes the entity manager, after that 
you get the exception &quot;java.lang.IllegalStateException: Attempting to 
execute an operation on a closed EntityManager&quot; when executing 
&quot;query2.executeUpdate();&quot;, so this sounds like a server issue.</tt><br>
<br>
<pre style="margin: 0em;">Yiping</pre><br>
<tt>On 11/26/2009 4:34 AM, Heider, Sabine wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hi Tom,</pre><br>
<tt>I'm not really familiar with the details of test framework either, 
but I guess the entity manager is taken from the TestRunnerBean:</tt><br>
<br>
<tt>@Stateless(name=&quot;TestRunner&quot;, mappedName=&quot;TestRunner&quot;)<br>
@Remote(TestRunner.class)<br>
@TransactionManagement(TransactionManagementType.BEAN)<br>
public class TestRunnerBean implements TestRunner {<br>
        /** The entity manager for the test is injected and passed 
to the test server platform. */<br>
    @PersistenceContext<br>
    private EntityManager entityManager;</tt><br>
<br>
<tt>    /** The entity manager factory for the test is injected and 
passed to the test server platform. */<br>
    @PersistenceUnit<br>
    private EntityManagerFactory entityManagerFactory;</tt><br>
<br>
<pre style="margin: 0em;">So yes, it is transaction-scoped.
Best regards,
Sabine</pre><br>
<tt>-----Original Message-----<br>
From: eclipselink-dev-bounces@xxxxxxxxxxx 
[<a  href="mailto:eclipselink-dev-bounces@xxxxxxxxxxx">mailto:eclipselink-dev-bounces@xxxxxxxxxxx</a>] On Behalf Of Tom Ware<br>
Sent: Mittwoch, 25. November 2009 14:07<br>
To: Dev mailing list for Eclipse Persistence Services<br>
Subject: Re: [eclipselink-dev] Error in 
EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL on SAP 
NetWeaver</tt><br>
<br>
<pre style="margin: 0em;">Hi Sabine,</pre><br>
<tt>   I am not familiar with how the entity manager for the tests are 
created.  The part of the spec you are referring to is for 
Transaction-scoped entity managers.   Is the entity manager used in 
this test created in such a way that it will be transaction-scoped 
on all servers?</tt><br>
<br>
<pre style="margin: 0em;">-Tom</pre><br>
<tt>Heider, Sabine wrote:<br>
 
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>Hi,<br>
 
I'd like to get your opinion on an error I get when running the JPA 
server tests inside an SAP NetWeaver application server (stack 
shortened, executed on current trunk):<br>
 
java.lang.IllegalStateException: Attempting to execute an operation 
on a closed EntityManager.<br>
at 
org.eclipse.persistence.internal.jpa.EntityManagerImpl.verifyOpen(EntityManagerImpl.java:1516) </tt><br>
<br>
<tt>at 
org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeUpdate(EJBQueryImpl.java:492) </tt><br>
<br>
<tt>at 
org.eclipse.persistence.testing.tests.jpa.relationships.EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL(EMQueryJUnitTestSuite.java:121) </tt><br>
<br>
<tt>at 
org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:463) </tt><br>
<br>
<tt>at 
org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87) </tt><br>
<br>
<tt> 
I run the test against a MySQL database. The MySQL driver throws an 
SQLException in EMQueryJUnitTestSuite line 114: Can not issue 
executeUpdate() for SELECTs.<br>
Consequently, I end up in the catch block where the current 
transaction is rolled back.<br>
 
Chapter 7.9.1 of the JPA specification says:<br>
&quot;After the JTA transaction has completed (either by transaction 
commit or rollback), The container<br>
closes the entity manager by calling EntityManager.close.&quot;<br>
 
Apparently, this is what the JPA container in NetWeaver does. With 
the closed entity manager, however, query2 becomes unusable.<br>
 
In my opinion, it's an error of the test rather than of the JPA 
container, but I might be wrong. What do you think?<br>
 
Thanks and best regards,<br>
Sabine<br>
 
*Sabine Heider<br>
**SAP AG</tt><br>
<br>
<tt>*Pflichtangaben/Mandatory Disclosure Statements:<br>
_<a  href="http://www.sap.com/company/legal/impressum.epx_">http://www.sap.com/company/legal/impressum.epx_</a><br>
 
 
 </tt><br>
<br>
<tt><br>------------------------------------------------------------------------ </tt><br>
<br>
<tt><br>_______________________________________________<br>
eclipselink-dev mailing list<br>
eclipselink-dev@xxxxxxxxxxx<br>
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a><br>
    
</tt></blockquote><tt>_______________________________________________<br>
eclipselink-dev mailing list<br>
eclipselink-dev@xxxxxxxxxxx<br>
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a><br>
_______________________________________________<br>
eclipselink-dev mailing list<br>
eclipselink-dev@xxxxxxxxxxx<br>
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a><br>
  
</tt></blockquote><pre style="margin: 0em;"><br>------------------------------------------------------------------------</pre><br>
<pre style="margin: 0em;">_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a>
</pre></blockquote><pre style="margin: 0em;">_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a>
</pre></blockquote><br>
]]></content:encoded>
		<pubDate>Thu, 26 Nov 2009 15:48:35 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03422.html</guid>
		<author>yiping.zhao@xxxxxxx (yiping zhao)</author>
	</item>
	<item>
		<title>Re: [eclipselink-dev] Error in	EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL	on SAP NetWeaver</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03421.html</link>
		<description>_______________________________________________ eclipselink-dev mailing list eclipselink-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-dev _______________________________________________ eclipselink-dev mailing list eclipselink-dev@x...</description>
		<content:encoded><![CDATA[<tt>If the entity manager is transaction scoped, I think Sabine is right.  The 
entity manager should be closed when the transaction either commits or rolls 
back.  I wonder why that is not happening on other servers.  (you'll notice 
query1.executeUpdate() is designed to fail)</tt><br>
<br>
<pre style="margin: 0em;">-Tom</pre><br>
<tt>yiping zhao wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hi Sabine,</pre><br>
<tt>In the test framework, by default the entity manager is injected in 
sessionbean, it's transaction-scoped.</tt><br>
<br>
<tt> &gt;From the stacktrace, it looks like that there is issue when executing 
&quot;result = query1.executeUpdate();&quot;, then somehow your SAP NetWeaver 
application server closes the entity manager, after that you get the 
exception &quot;java.lang.IllegalStateException: Attempting to execute an 
operation on a closed EntityManager&quot; when executing 
&quot;query2.executeUpdate();&quot;, so this sounds like a server issue.</tt><br>
<br>
<pre style="margin: 0em;">Yiping</pre><br>
<tt>On 11/26/2009 4:34 AM, Heider, Sabine wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hi Tom,</pre><br>
<pre style="margin: 0em;">I'm not really familiar with the details of test framework either, but I guess the entity manager is taken from the TestRunnerBean:</pre><br>
<tt>@Stateless(name=&quot;TestRunner&quot;, mappedName=&quot;TestRunner&quot;)<br>
@Remote(TestRunner.class)<br>
@TransactionManagement(TransactionManagementType.BEAN)<br>
public class TestRunnerBean implements TestRunner {<br>
    
    /** The entity manager for the test is injected and passed to the test server platform. */<br>
    @PersistenceContext<br>
    private EntityManager entityManager;</tt><br>
<br>
<pre style="margin: 0em;">    /** The entity manager factory for the test is injected and passed to the test server platform. */
    @PersistenceUnit
    private EntityManagerFactory entityManagerFactory;</pre><br>
<tt>So yes, it is transaction-scoped. </tt><br>
<br>
<pre style="margin: 0em;">Best regards,
Sabine</pre><br>
<pre style="margin: 0em;">-----Original Message-----
From: eclipselink-dev-bounces@xxxxxxxxxxx [<a  href="mailto:eclipselink-dev-bounces@xxxxxxxxxxx">mailto:eclipselink-dev-bounces@xxxxxxxxxxx</a>] On Behalf Of Tom Ware
Sent: Mittwoch, 25. November 2009 14:07
To: Dev mailing list for Eclipse Persistence Services
Subject: Re: [eclipselink-dev] Error in EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL on SAP NetWeaver</pre><br>
<pre style="margin: 0em;">Hi Sabine,</pre><br>
<tt>   I am not familiar with how the entity manager for the tests are created.  The 
part of the spec you are referring to is for Transaction-scoped entity managers. 
  Is the entity manager used in this test created in such a way that it will be 
transaction-scoped on all servers?</tt><br>
<br>
<pre style="margin: 0em;">-Tom</pre><br>
<tt>Heider, Sabine wrote:<br>
  
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>Hi,<br>
 
I'd like to get your opinion on an error I get when running the JPA 
server tests inside an SAP NetWeaver application server (stack 
shortened, executed on current trunk):<br>
 
java.lang.IllegalStateException: Attempting to execute an operation on a 
closed EntityManager.<br>
at 
org.eclipse.persistence.internal.jpa.EntityManagerImpl.verifyOpen(EntityManagerImpl.java:1516)<br>
at 
org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeUpdate(EJBQueryImpl.java:492)<br>
at 
org.eclipse.persistence.testing.tests.jpa.relationships.EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL(EMQueryJUnitTestSuite.java:121)<br>
at 
org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:463)<br>
at 
org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87)<br>
 
I run the test against a MySQL database. The MySQL driver throws an 
SQLException in EMQueryJUnitTestSuite line 114: Can not issue 
executeUpdate() for SELECTs.<br>
Consequently, I end up in the catch block where the current transaction 
is rolled back.<br>
 
Chapter 7.9.1 of the JPA specification says:<br>
&quot;After the JTA transaction has completed (either by transaction commit 
or rollback), The container<br>
closes the entity manager by calling EntityManager.close.&quot;<br>
 
Apparently, this is what the JPA container in NetWeaver does. With the 
closed entity manager, however, query2 becomes unusable.<br>
 
In my opinion, it's an error of the test rather than of the JPA 
container, but I might be wrong. What do you think?<br>
 
Thanks and best regards,<br>
Sabine<br>
 
*Sabine Heider<br>
**SAP AG</tt><br>
<br>
<tt>*Pflichtangaben/Mandatory Disclosure Statements:<br>
_<a  href="http://www.sap.com/company/legal/impressum.epx_">http://www.sap.com/company/legal/impressum.epx_</a><br>
 
 
 </tt><br>
<br>
<pre style="margin: 0em;"><br>------------------------------------------------------------------------</pre><br>
<tt>_______________________________________________<br>
eclipselink-dev mailing list<br>
eclipselink-dev@xxxxxxxxxxx<br>
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a><br>
    
</tt></blockquote><tt>_______________________________________________<br>
eclipselink-dev mailing list<br>
eclipselink-dev@xxxxxxxxxxx<br>
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a><br>
_______________________________________________<br>
eclipselink-dev mailing list<br>
eclipselink-dev@xxxxxxxxxxx<br>
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a><br>
  
</tt></blockquote><pre style="margin: 0em;"><br>------------------------------------------------------------------------</pre><br>
<pre style="margin: 0em;">_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a>
</pre></blockquote><br>
]]></content:encoded>
		<pubDate>Thu, 26 Nov 2009 15:11:10 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03421.html</guid>
		<author>tom.ware@xxxxxxx (Tom Ware)</author>
	</item>
	<item>
		<title>Re: [eclipselink-dev] Error in	EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL	on SAP NetWeaver</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03420.html</link>
		<description> _______________________________________________ eclipselink-dev mailing list eclipselink-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-dev _______________________________________________ eclipselink-dev mailing list eclipselink-dev@...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td bgcolor="#ffffff" style="background-color: #ffffff; color: #000000; "><font color="#000000">



Hi Sabine,<br>
<br>
In the test framework, by default the entity manager is injected in
sessionbean, it's transaction-scoped. <br>
<br>
>From the stacktrace, it looks like that there is issue when executing
"result = query1.executeUpdate();", then somehow your SAP NetWeaver
application server closes the entity manager, after that you get the
exception "java.lang.IllegalStateException: Attempting to execute an
operation on a closed EntityManager" when executing
"query2.executeUpdate();", so this sounds like a server issue.<br>
<br>
Yiping<br>
<br>
On 11/26/2009 4:34 AM, Heider, Sabine wrote:
<blockquote
 cite=""
 type="cite">
  <pre wrap="">Hi Tom,

I'm not really familiar with the details of test framework either, but I guess the entity manager is taken from the TestRunnerBean:

@Stateless(name="TestRunner", mappedName="TestRunner")
@Remote(TestRunner.class)
@TransactionManagement(TransactionManagementType.BEAN)
public class TestRunnerBean implements TestRunner {
    
    /** The entity manager for the test is injected and passed to the test server platform. */
    @PersistenceContext
    private EntityManager entityManager;

    /** The entity manager factory for the test is injected and passed to the test server platform. */
    @PersistenceUnit
    private EntityManagerFactory entityManagerFactory;

So yes, it is transaction-scoped. 

Best regards,
Sabine

-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:eclipselink-dev-bounces@xxxxxxxxxxx">eclipselink-dev-bounces@xxxxxxxxxxx</a> [<a class="moz-txt-link-freetext" href="mailto:eclipselink-dev-bounces@xxxxxxxxxxx">mailto:eclipselink-dev-bounces@xxxxxxxxxxx</a>] On Behalf Of Tom Ware
Sent: Mittwoch, 25. November 2009 14:07
To: Dev mailing list for Eclipse Persistence Services
Subject: Re: [eclipselink-dev] Error in EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL on SAP NetWeaver

Hi Sabine,

   I am not familiar with how the entity manager for the tests are created.  The 
part of the spec you are referring to is for Transaction-scoped entity managers. 
  Is the entity manager used in this test created in such a way that it will be 
transaction-scoped on all servers?

-Tom

Heider, Sabine wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi,
 
I'd like to get your opinion on an error I get when running the JPA 
server tests inside an SAP NetWeaver application server (stack 
shortened, executed on current trunk):
 
java.lang.IllegalStateException: Attempting to execute an operation on a 
closed EntityManager.
at 
org.eclipse.persistence.internal.jpa.EntityManagerImpl.verifyOpen(EntityManagerImpl.java:1516)
at 
org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeUpdate(EJBQueryImpl.java:492)
at 
org.eclipse.persistence.testing.tests.jpa.relationships.EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL(EMQueryJUnitTestSuite.java:121)
at 
org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:463)
at 
org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87)
 
I run the test against a MySQL database. The MySQL driver throws an 
SQLException in EMQueryJUnitTestSuite line 114: Can not issue 
executeUpdate() for SELECTs.
Consequently, I end up in the catch block where the current transaction 
is rolled back.
 
Chapter 7.9.1 of the JPA specification says:
"After the JTA transaction has completed (either by transaction commit 
or rollback), The container
closes the entity manager by calling EntityManager.close."
 
Apparently, this is what the JPA container in NetWeaver does. With the 
closed entity manager, however, query2 becomes unusable.
 
In my opinion, it's an error of the test rather than of the JPA 
container, but I might be wrong. What do you think?
 
Thanks and best regards,
Sabine
 
*Sabine Heider
**SAP AG

*Pflichtangaben/Mandatory Disclosure Statements:
_<a class="moz-txt-link-freetext" href="http://www.sap.com/company/legal/impressum.epx_">http://www.sap.com/company/legal/impressum.epx_</a>
 
 
 


------------------------------------------------------------------------

_______________________________________________
eclipselink-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:eclipselink-dev@xxxxxxxxxxx">eclipselink-dev@xxxxxxxxxxx</a>
<a class="moz-txt-link-freetext" href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->_______________________________________________
eclipselink-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:eclipselink-dev@xxxxxxxxxxx">eclipselink-dev@xxxxxxxxxxx</a>
<a class="moz-txt-link-freetext" href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a>
_______________________________________________
eclipselink-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:eclipselink-dev@xxxxxxxxxxx">eclipselink-dev@xxxxxxxxxxx</a>
<a class="moz-txt-link-freetext" href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a>
  </pre>
</blockquote>


</font></td></tr></table>]]></content:encoded>
		<pubDate>Thu, 26 Nov 2009 15:01:24 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03420.html</guid>
		<author>yiping.zhao@xxxxxxx (yiping zhao)</author>
	</item>
	<item>
		<title>[eclipselink-dev] Expanding  'standards' for build files.</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03419.html</link>
		<description>Hi, I'm sending this out as a notification/proposal of some additional standard conventions I plan on adding to our build files after the branch. - properties ending in .jar define jarfile names only (no path) - properties ending in .lib are fully qualifie...</description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Hi,</pre><br>
<tt>I'm sending this out as a notification/proposal of some additional 
standard conventions I plan on adding to our build files after the branch.<br>
    - properties ending in .jar define jarfile names only (no path)<br>
    - properties ending in .lib are fully qualified jars (path and 
filename)<br>
    - properties ending in .dir are directory paths<br>
    - properties ending in .path are path refid names (classpath fragments)<br>
    - targets beginning with test- are reserved for high level test 
targets,<br>
      and are used in test results parsing<br>
    - targets typically use the form &lt;action&gt;-&lt;object&gt;-&lt;type&gt; (ie. 
package-bundle-zip)</tt><br>
<br>
<tt>Some are clarifications of standards already in place, but not well 
publicized. However, with regard to .jar/.lib and .dir/.path there is no 
current standard, and properties are named and used in a fairly random 
mostly interchangeable way. There are many reasons this is becoming an 
issue now, but here are the biggest:<br>
    - bugs requesting the use of minimal classpaths necessitate the 
need to individually<br>
      define libraries. However, the build has multiple entry points so 
paths to those<br>
      libraries are relative to the entry point. So the need to 
separate path from jar name.<br>
    - adding individual libraries (rather than eclipselink.core.depend 
or eclipslink.oracle.depend<br>
       which list them all) also creates a need to separately define 
directories and classpath subsets.</tt><br>
<br>
<tt>For the most part I've tried to keep the usage most prevalent for each 
postfix<br>
-.lib was mostly used to define full paths to jars, while .jar mostly 
defined jar names. However,<br>
  there are also a few non-conformant properties (eclipselink.jar.name 
and .jarfile)<br>
-.dir really hasn't changed at all, but there were a few uses where it 
was a defining a pathref<br>
-.path is pretty much new old pathrefs were either .dir or .classpath</tt><br>
<br>
<tt>While I needed to implement these changes for the oracle modules for 
critical fixes in 2.0.0, I plan on implementing these changes across the 
board  after the branch and discussion has occurred.</tt><br>
<br>
<tt>Does anyone object to these standards, or have preferences other than 
what I plan to implement? I can see .jarfile being used as the standard 
postfix because the property can't easily be confused with a static 
usage of a jar, but it wasn't routinely used.</tt><br>
<br>
<tt>Comments? (If I hear nothing from you I will assume it is assent, and 
continue as outlined after the branch is complete.)</tt><br>
<br>
<pre style="margin: 0em;">-Eric</pre><br>
]]></content:encoded>
		<pubDate>Thu, 26 Nov 2009 13:06:49 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03419.html</guid>
		<author>eric.gwin@xxxxxxx (Eric Gwin)</author>
	</item>
	<item>
		<title>RE: [eclipselink-dev] Error in	EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL	on SAP	NetWeaver</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03418.html</link>
		<description> _______________________________________________ eclipselink-dev mailing list eclipselink-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-dev </description>
		<content:encoded><![CDATA[<pre>Hi Tom,

I'm not really familiar with the details of test framework either, but I guess the entity manager is taken from the TestRunnerBean:

@Stateless(name=&quot;TestRunner&quot;, mappedName=&quot;TestRunner&quot;)
@Remote(TestRunner.class)
@TransactionManagement(TransactionManagementType.BEAN)
public class TestRunnerBean implements TestRunner {
    
    /** The entity manager for the test is injected and passed to the test server platform. */
    @PersistenceContext
    private EntityManager entityManager;

    /** The entity manager factory for the test is injected and passed to the test server platform. */
    @PersistenceUnit
    private EntityManagerFactory entityManagerFactory;

So yes, it is transaction-scoped. 

Best regards,
Sabine

-----Original Message-----
From: eclipselink-dev-bounces@xxxxxxxxxxx [<a  href="mailto:eclipselink-dev-bounces@xxxxxxxxxxx">mailto:eclipselink-dev-bounces@xxxxxxxxxxx</a>] On Behalf Of Tom Ware
Sent: Mittwoch, 25. November 2009 14:07
To: Dev mailing list for Eclipse Persistence Services
Subject: Re: [eclipselink-dev] Error in EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL on SAP NetWeaver

Hi Sabine,

   I am not familiar with how the entity manager for the tests are created.  The 
part of the spec you are referring to is for Transaction-scoped entity managers. 
  Is the entity manager used in this test created in such a way that it will be 
transaction-scoped on all servers?

-Tom

Heider, Sabine wrote:
&gt; Hi,
&gt;  
&gt; I'd like to get your opinion on an error I get when running the JPA 
&gt; server tests inside an SAP NetWeaver application server (stack 
&gt; shortened, executed on current trunk):
&gt;  
&gt; java.lang.IllegalStateException: Attempting to execute an operation on a 
&gt; closed EntityManager.
&gt; at 
&gt; org.eclipse.persistence.internal.jpa.EntityManagerImpl.verifyOpen(EntityManagerImpl.java:1516)
&gt; at 
&gt; org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeUpdate(EJBQueryImpl.java:492)
&gt; at 
&gt; org.eclipse.persistence.testing.tests.jpa.relationships.EMQueryJUnitTestSuite.testcreateNativeQueryWithSelectSQL(EMQueryJUnitTestSuite.java:121)
&gt; at 
&gt; org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:463)
&gt; at 
&gt; org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87)
&gt;  
&gt; I run the test against a MySQL database. The MySQL driver throws an 
&gt; SQLException in EMQueryJUnitTestSuite line 114: Can not issue 
&gt; executeUpdate() for SELECTs.
&gt; Consequently, I end up in the catch block where the current transaction 
&gt; is rolled back.
&gt;  
&gt; Chapter 7.9.1 of the JPA specification says:
&gt; &quot;After the JTA transaction has completed (either by transaction commit 
&gt; or rollback), The container
&gt; closes the entity manager by calling EntityManager.close.&quot;
&gt;  
&gt; Apparently, this is what the JPA container in NetWeaver does. With the 
&gt; closed entity manager, however, query2 becomes unusable.
&gt;  
&gt; In my opinion, it's an error of the test rather than of the JPA 
&gt; container, but I might be wrong. What do you think?
&gt;  
&gt; Thanks and best regards,
&gt; Sabine
&gt;  
&gt; *Sabine Heider
&gt; **SAP AG
&gt; 
&gt; *Pflichtangaben/Mandatory Disclosure Statements:
&gt; _<a  href="http://www.sap.com/company/legal/impressum.epx_">http://www.sap.com/company/legal/impressum.epx_</a>
&gt;  
&gt;  
&gt;  
&gt; 
&gt; 
&gt; ------------------------------------------------------------------------
&gt; 
&gt; _______________________________________________
&gt; eclipselink-dev mailing list
&gt; eclipselink-dev@xxxxxxxxxxx
&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a>
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a>

</pre>]]></content:encoded>
		<pubDate>Thu, 26 Nov 2009 09:34:30 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03418.html</guid>
		<author>sabine.heider@xxxxxxx (Heider, Sabine)</author>
	</item>


	<item>
		<title>Re: [eclipselink-dev]	267862-EclipseLink-does-not-update-Version-of-parent-when-owned-relationship-changes</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03417.html</link>
		<description>_______________________________________________ eclipselink-dev mailing list eclipselink-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-dev </description>
		<content:encoded><![CDATA[<tt>Updated test case to support running on server.  Server apparently is 
configured to use a Transactional Entity Manager instead of an Extended 
Entity Manager.<br>
--Gordon</tt><br>
<br>
<tt>Gordon Yorke wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Checked in
Reviewed by Andrei Ilitchev and James Sutherland</pre><br>
<tt>Gordon Yorke wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Proposed Patch for <a  href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=267862">https://bugs.eclipse.org/bugs/show_bug.cgi?id=267862</a>
Any feedback welcome.
--Gordon
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a>
</pre></blockquote><pre style="margin: 0em;">_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a>
</pre></blockquote><br>
]]></content:encoded>
		<pubDate>Wed, 25 Nov 2009 21:11:40 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03417.html</guid>
		<author>gordon.yorke@xxxxxxx (Gordon Yorke)</author>
	</item>
	<item>
		<title>Re: [eclipselink-dev] Bug 296184 - JPA 2.0: Derby rounds floats when	binding multiplication argument</title>
		<link>http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03416.html</link>
		<description> </description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Patch checked in
Reviewed by Tom Ware</pre><br>
<tt>Gordon Yorke wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Proposed patch available
<a  href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=296184">https://bugs.eclipse.org/bugs/show_bug.cgi?id=296184</a>
--Gordon
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
<a  href="https://dev.eclipse.org/mailman/listinfo/eclipselink-dev">https://dev.eclipse.org/mailman/listinfo/eclipselink-dev</a>
</pre></blockquote><br>
]]></content:encoded>
		<pubDate>Wed, 25 Nov 2009 20:53:58 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg03416.html</guid>
		<author>gordon.yorke@xxxxxxx (Gordon Yorke)</author>
	</item>

 
	</channel>
	</rss>
<!-- MHonArc v2.6.10 -->
