workspace-admin tests fail with IOException
-------------------------------------------
Key: TUSCANY-2079
URL: https://issues.apache.org/jira/browse/TUSCANY-2079
Project: Tuscany
Issue Type: Test
Affects Versions: Java-SCA-1.2
Environment: Windows XP, Sun Java 1.5
Reporter: Jürgen Schumacher
Priority: Minor
Fix For: Java-SCA-1.2
org.apache.tuscany.sca.workspace.admin.impl.AdminTestCase fails with an
IOException:
org.osoa.sca.ServiceRuntimeException: java.io.FileNotFoundException: D:\Works\Ja
va\Tuscany\java\sca\modules\workspace-admin\target\test-classes\workspace.xml (D
er Vorgang ist bei einer Datei mit einem geöffneten Bereich, der einem Benutzer
zugeordnet ist, nicht anwendbar)
at org.apache.tuscany.sca.workspace.admin.impl.ContributionCollectionImp
l.writeWorkspace(ContributionCollectionImpl.java:423)
at org.apache.tuscany.sca.workspace.admin.impl.ContributionCollectionImp
l.post(ContributionCollectionImpl.java:210)
at org.apache.tuscany.sca.workspace.admin.impl.AdminTestCase.setUp(Admin
TestCase.java:75)
The geman message means something like "This process is not applicable on a
file with a open part associated to a user" (actually, it does not make too
much sense in german ...)
There are two places in the code where writers/streams are not explicitly
close. Closing them seems to help. See attached patch file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]