<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: embedded: extracting RAR twice causes failure on Windows
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/igarashitm">Tomohisa igarashi</a> in <i>IronJacamar</i> - <a href="https://community.jboss.org/message/742451#742451">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>JDK version is Oracle 1.6.0_31.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>There was no file lock right before calling File.delete() on RAActivator->FileUtil which fails, so RADeployer was not guilty..</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>However I got some more info from ProcessMonitor. I guess the File.delete() failure corresponds to the 2nd line from the bottom. I'm not sure what does "SHARING_VIOLATION" mean in this case though...</p><blockquote class="jive-quote">Time of Day Process Name PID Operation Path Result Detail<br/>9:44:39.6119033 java.exe 3164 ReadFile C:\Documents and Settings\tomo\.m2\repository\org\hornetq\hornetq-ra\2.2.11.Final\hornetq-ra-2.2.11.Final.jar SUCCESS Offset: 94,805, Length: 4,442<br/>9:44:39.6149400 java.exe 3164 QueryOpen C:\cygwin\tmp\hornetq-ra.rar SUCCESS CreationTime: 2012/06/18 0:38:55, LastAccessTime: 2012/06/18 9:43:15, LastWriteTime: 2012/06/18 9:43:14, ChangeTime: 2012/06/18 9:43:14, AllocationSize: 1,425,408, EndOfFile: 1,425,341, FileAttributes: A<br/>9:44:39.6152856 java.exe 3164 QueryOpen C:\cygwin\tmp\hornetq-ra.rar SUCCESS CreationTime: 2012/06/18 0:38:55, LastAccessTime: 2012/06/18 9:43:15, LastWriteTime: 2012/06/18 9:43:14, ChangeTime: 2012/06/18 9:43:14, AllocationSize: 1,425,408, EndOfFile: 1,425,341, FileAttributes: A<br/>9:44:39.6156834 java.exe 3164 QueryOpen C:\cygwin\tmp\iron.jacamar\tmp\hornetq-ra.rar SUCCESS CreationTime: 2012/06/18 9:43:14, LastAccessTime: 2012/06/18 9:43:16, LastWriteTime: 2012/06/18 9:43:14, ChangeTime: 2012/06/18 9:43:14, AllocationSize: 0, EndOfFile: 0, FileAttributes: D<br/>9:44:39.6161533 java.exe 3164 QueryOpen C:\cygwin\tmp\iron.jacamar\tmp\hornetq-ra.rar SUCCESS CreationTime: 2012/06/18 9:43:14, LastAccessTime: 2012/06/18 9:43:16, LastWriteTime: 2012/06/18 9:43:14, ChangeTime: 2012/06/18 9:43:14, AllocationSize: 0, EndOfFile: 0, FileAttributes: D<br/>9:44:39.6165502 java.exe 3164 QueryOpen C:\cygwin\tmp\iron.jacamar\tmp\hornetq-ra.rar SUCCESS CreationTime: 2012/06/18 9:43:14, LastAccessTime: 2012/06/18 9:43:16, LastWriteTime: 2012/06/18 9:43:14, ChangeTime: 2012/06/18 9:43:14, AllocationSize: 0, EndOfFile: 0, FileAttributes: D<br/>9:44:39.6168615 java.exe 3164 CreateFile C:\cygwin\tmp\iron.jacamar\tmp\hornetq-ra.rar SUCCESS Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Open For Backup, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened<br/>9:44:39.6170347 java.exe 3164 QueryDirectory C:\cygwin\tmp\iron.jacamar\tmp\hornetq-ra.rar\* SUCCESS Filter: *, 1: .<br/>9:44:39.6171330 java.exe 3164 QueryDirectory C:\cygwin\tmp\iron.jacamar\tmp\hornetq-ra.rar SUCCESS 0: .., 1: hornetq-core-client-2.2.11.Final.jar, 2: hornetq-jms-client-2.2.11.Final.jar, 3: hornetq-ra-2.2.11.Final.jar, 4: META-INF, 5: netty-3.2.1.Final.jar<br/>9:44:39.6172048 java.exe 3164 QueryDirectory C:\cygwin\tmp\iron.jacamar\tmp\hornetq-ra.rar NO MORE FILES <br/>9:44:39.6173160 java.exe 3164 CloseFile C:\cygwin\tmp\iron.jacamar\tmp\hornetq-ra.rar SUCCESS <br/>9:44:39.6177778 java.exe 3164 QueryOpen C:\cygwin\tmp\iron.jacamar\tmp\hornetq-ra.rar\hornetq-core-client-2.2.11.Final.jar SUCCESS CreationTime: 2012/06/18 9:43:14, LastAccessTime: 2012/06/18 9:43:14, LastWriteTime: 2012/06/18 9:43:14, ChangeTime: 2012/06/18 9:43:14, AllocationSize: 598,016, EndOfFile: 596,919, FileAttributes: A<br/>9:44:39.6181356 java.exe 3164 CreateFile C:\cygwin\tmp\iron.jacamar\tmp\hornetq-ra.rar\hornetq-core-client-2.2.11.Final.jar SUCCESS Desired Access: Write Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open For Backup, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened<br/>9:44:39.6186106 java.exe 3164 SetBasicInformationFile C:\cygwin\tmp\iron.jacamar\tmp\hornetq-ra.rar\hornetq-core-client-2.2.11.Final.jar SUCCESS CreationTime: 0, LastAccessTime: 0, LastWriteTime: 0, ChangeTime: 0, FileAttributes: N<br/>9:44:39.6187276 java.exe 3164 ReadFile C: SUCCESS Offset: 38,133,760, Length: 136, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O<br/>9:44:39.6191891 java.exe 3164 CloseFile C:\cygwin\tmp\iron.jacamar\tmp\hornetq-ra.rar\hornetq-core-client-2.2.11.Final.jar SUCCESS <br/>9:44:39.6196710 java.exe 3164 QueryOpen C:\cygwin\tmp\iron.jacamar\tmp\hornetq-ra.rar\hornetq-core-client-2.2.11.Final.jar SUCCESS CreationTime: 2012/06/18 9:43:14, LastAccessTime: 2012/06/18 9:43:14, LastWriteTime: 2012/06/18 9:43:14, ChangeTime: 2012/06/18 9:43:16, AllocationSize: 598,016, EndOfFile: 596,919, FileAttributes: N<br/>9:44:39.6199783 java.exe 3164 CreateFile C:\cygwin\tmp\iron.jacamar\tmp\hornetq-ra.rar\hornetq-core-client-2.2.11.Final.jar SHARING VIOLATION Desired Access: Read Attributes, Delete, Disposition: Open, Options: Non-Directory File, Open For Backup, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a<br/>9:44:39.6305294 java.exe 3164 QueryOpen E:\workspace\JBoss\soa\switchyard\components\jca\target\surefire-reports SUCCESS CreationTime: 2012/06/18 9:37:42, LastAccessTime: 2012/06/18 9:43:10, LastWriteTime: 2012/06/18 9:43:10, ChangeTime: 2012/06/18 9:43:10, AllocationSize: 0, EndOfFile: 0, FileAttributes: D<br/></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Could you get anything from this?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks,</p><p>Tomo</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/742451#742451">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in IronJacamar at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>