[
https://issues.jboss.org/browse/JBTM-1186?page=com.atlassian.jira.plugin....
]
Amos Feng updated JBTM-1186:
----------------------------
Comment: was deleted
(was: It looks like a bug in apache common transaction FileResourceManager.java
{code}
String statePath = getTransactionBaseDir(txId) + "/" + CONTEXT_FILE;
{code}
"/" can not be used in windows path name)
Transactional FileIO demo fail on window due to special character in
file path
------------------------------------------------------------------------------
Key: JBTM-1186
URL:
https://issues.jboss.org/browse/JBTM-1186
Project: JBoss Transaction Manager
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Demonstrator
Affects Versions: 5.0.0.M1
Reporter: Amos Feng
Assignee: Amos Feng
Fix For: 5.0.0.Final
{code}
org.jboss.jbossts.fileio.xalib.txdirs.dir.XADirFile(SEVERE:Saving status information to
'C:\hudson\workspace\btny-quickstarts\businesstxdir/txDir_work/txDir-C:\hudson\workspace\btny-quickstarts\businesstxdir_txDir_work_64!5401921662186675/transaction.log'
failed! Could not create filejavax.transaction.xa.XAException:
txDir-C:\hudson\workspace\btny-quickstarts\businesstxdir_txDir_work_64!5401921662186675:
Saving status information to
'C:\hudson\workspace\btny-quickstarts\businesstxdir/txDir_work/txDir-C:\hudson\workspace\btny-quickstarts\businesstxdir_txDir_work_64!5401921662186675/transaction.log'
failed! Could not create file (ERR_SYSTEM)
Caused by: java.io.FileNotFoundException:
C:\hudson\workspace\btny-quickstarts\businesstxdir\txDir_work\txDir-C:\hudson\workspace\btny-quickstarts\businesstxdir_txDir_work_64!5401921662186675\transaction.log
(The filename, directory name, or volume label syntax is incorrect)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
at
org.apache.commons.transaction.file.FileResourceManager$TransactionContext.saveState(FileResourceManager.java:1521)
at
org.apache.commons.transaction.file.FileResourceManager$TransactionContext.init(FileResourceManager.java:1416)
at
org.apache.commons.transaction.file.FileResourceManager.startTransaction(FileResourceManager.java:536)
at
org.jboss.jbossts.fileio.xalib.txdirs.dir.XAFileResourceManager.start(XAFileResourceManager.java:257)
at
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:636)
at
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:397)
at org.jboss.jbossts.fileio.xalib.txdirs.dir.XADir.startTransactionOn(XADir.java:138)
at
org.jboss.jbossts.fileio.xalib.txdirs.demo.TXDirsDemoApp.executeDemo(TXDirsDemoApp.java:102)
at
org.jboss.jbossts.fileio.xalib.txdirs.demo.TXDirsDemoApp.<init>(TXDirsDemoApp.java:51)
at
org.jboss.jbossts.fileio.xalib.txdirs.demo.TXDirsDemoApp.main(TXDirsDemoApp.java:137)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira