[jbossts-issues] [JBoss JIRA] (JBTM-1186) Transactional FileIO demo fail on window due to special character in file path

Amos Feng (JIRA) jira-events at lists.jboss.org
Mon Jun 11 23:45:04 EDT 2012


    [ https://issues.jboss.org/browse/JBTM-1186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12700627#comment-12700627 ] 

Amos Feng commented on JBTM-1186:
---------------------------------

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

        


More information about the jbossts-issues mailing list