Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315097 - jpa.advanced.EntityManagerJUnitTestSuite.testCreateEntityManagerFactory2 on WLS only failed on Windows
Summary: jpa.advanced.EntityManagerJUnitTestSuite.testCreateEntityManagerFactory2 on W...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 307105
  Show dependency tree
 
Reported: 2010-05-31 11:24 EDT by Kevin Yuan CLA
Modified: 2022-06-09 10:19 EDT (History)
2 users (show)

See Also:
tom.ware: review+


Attachments
Patch (1.43 KB, patch)
2010-06-04 13:56 EDT, Gordon Yorke CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Yuan CLA 2010-05-31 11:24:32 EDT
This failure is new regression, and it (jpa.advanced.EntityManagerJUnitTestSuite.testCreateEntityManagerFactory2) passed on Linux, but failed on Windows (same test passed in EclipseLink 2.0.3 and 1.2.1).

Stack Trace:
============
  <testcase classname="org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite" name="testCreateEntityManagerFactory2" time="0.078">
    <failure message="Exception is not expected, but thrown:Exception [EclipseLink-30005] (Eclipse Persistence Services - 2.1.0.qualifier): org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: weblogic.utils.classloaders.GenericClassLoader@5456f55 finder: weblogic.utils.classloaders.CodeGenClassFinder@5456fc8 annotation: eclipselink-advanced-model@
Internal Exception: Exception [EclipseLink-30009] (Eclipse Persistence Services - 2.1.0.qualifier): org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while trying to load persistence unit at url: zip:C:/EclipseLink/wls10.3.3/wlserver_10.3/samples/domains/eclipselink/servers/myserver/tmp/_WL_user/eclipselink-advanced-model/19bucm/eclipselink-advanced-model_ejb.jar!/META-INF/..\
Internal Exception: Exception [EclipseLink-30004] (Eclipse Persistence Services - 2.1.0.qualifier): org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while processing persistence.xml from URL: zip:C:/EclipseLink/wls10.3.3/wlserver_10.3/samples/domains/eclipselink/servers/myserver/tmp/_WL_user/eclipselink-advanced-model/19bucm/eclipselink-advanced-model_ejb.jar!/META-INF/..\
Internal Exception: java.net.MalformedURLException" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: Exception is not expected, but thrown:Exception [EclipseLink-30005] (Eclipse Persistence Services - 2.1.0.qualifier): org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: weblogic.utils.classloaders.GenericClassLoader@5456f55 finder: weblogic.utils.classloaders.CodeGenClassFinder@5456fc8 annotation: eclipselink-advanced-model@
Internal Exception: Exception [EclipseLink-30009] (Eclipse Persistence Services - 2.1.0.qualifier): org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while trying to load persistence unit at url: zip:C:/EclipseLink/wls10.3.3/wlserver_10.3/samples/domains/eclipselink/servers/myserver/tmp/_WL_user/eclipselink-advanced-model/19bucm/eclipselink-advanced-model_ejb.jar!/META-INF/..\
Internal Exception: Exception [EclipseLink-30004] (Eclipse Persistence Services - 2.1.0.qualifier): org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while processing persistence.xml from URL: zip:C:/EclipseLink/wls10.3.3/wlserver_10.3/samples/domains/eclipselink/servers/myserver/tmp/_WL_user/eclipselink-advanced-model/19bucm/eclipselink-advanced-model_ejb.jar!/META-INF/..\
Internal Exception: java.net.MalformedURLException
	at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testCreateEntityManagerFactory2(EntityManagerJUnitTestSuite.java:6047)
	at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:487)
	at org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87)
	at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
	at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
	at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
	at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
	at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
	at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
	at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
	at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
	at $Proxy70.runTest(Unknown Source)
	at org.eclipse.persistence.testing.framework.server.TestRunner_q0mh0s_TestRunnerImpl.runTest(TestRunner_q0mh0s_TestRunnerImpl.java:56)
	at org.eclipse.persistence.testing.framework.server.TestRunner_q0mh0s_TestRunnerImpl_WLSkel.invoke(Unknown Source)
	at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:590)
	at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
	at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:478)
	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
	at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
	at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:119)
	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
	at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
</failure>
  </testcase>
Comment 1 Gordon Yorke CLA 2010-06-04 13:56:44 EDT
Created attachment 171139 [details]
Patch

This issue is related to the changes made through bug 311234.
File.separator was used instead of '/'
Comment 2 Gordon Yorke CLA 2010-06-04 13:59:37 EDT
Patch checked in.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:16:28 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:19:26 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink