This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Test | |
| public void xxx() throws FileNotFoundException, IOException{ | |
| file = File.createTempFile("temp-file", ".zip"); | |
| new ZipOutputStream(new FileOutputStream(file)).close(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected ZipOutputStream createZipFile(File file, List<DataCollectionItf> answers) | |
| throws ExportException { | |
| ZipOutputStream zipFile; | |
| try { | |
| zipFile = newZipFile(file); | |
| } catch (FileNotFoundException e1) { | |
| throw new ExportException("Zip file could not be initialised",e1); | |
| } | |
| List<String> filesAdded = new ArrayList<String>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Jun 19 19:38:02 webservices postfix/smtpd[4031]: connect from localhost[127.0.0.1] | |
| Jun 19 19:38:02 webservices postfix/smtpd[4031]: EFB8712EA12C: client=localhost[127.0.0.1] | |
| Jun 19 19:38:02 webservices postfix/cleanup[4021]: EFB8712EA12C: message-id=<977093308.119.1403203070606.JavaMail.tomcat7@vps001.itclinical.com> | |
| Jun 19 19:38:02 webservices postfix/qmgr[19318]: EFB8712EA12C: from=<iwrs@itclinical.com>, size=1248, nrcpt=1 (queue active) | |
| Jun 19 19:38:02 webservices postfix/smtpd[4031]: disconnect from localhost[127.0.0.1] | |
| Jun 19 19:38:03 webservices amavis[3516]: (03516-13) Passed CLEAN, [46.105.29.10] [46.105.29.10] <iwrs@itclinical.com> -> <leeiannotti.joyce@mayo.edu>, Message-ID: <97709 | |
| 3308.119.1403203070606.JavaMail.tomcat7@vps001.itclinical.com>, mail_id: ikgWcZjfrqw4, Hits: -2.9, size: 625, queued_as: EFB8712EA12C, 12268 ms | |
| Jun 19 19:38:03 webservices postfix/smtp[4022]: A0B4612EA106: to=<leeiannotti.joyce@mayo.edu>, relay=127.0.0.1[127.0.0.1]:10024, delay=12, delays=0.12/0/0.01/12, dsn=2.0. | |
| 0, statu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package at.almeida.tests; | |
| import static org.junit.Assert.assertEquals; | |
| import javax.xml.transform.Transformer; | |
| import javax.xml.transform.TransformerConfigurationException; | |
| import javax.xml.transform.TransformerFactory; | |
| import javax.xml.transform.TransformerFactoryConfigurationError; | |
| import org.junit.Before; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <centralreservas@melvar.pt>: host email.net.vodafone.pt[213.134.48.171] said: | |
| 550 5.7.1 <centralreservas@melvar.pt>: Recipient address rejected: Mail | |
| appeared to be SPAM or forged. Ask your Mail/DNS-Administrator to correct | |
| HELO and DNS MX settings or to get removed from DNSBLs; please relay via | |
| your ISP (almeida.at) (in reply to RCPT TO command) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Stock Item (SI) - an item | |
| Movement History (H) - a movement of one or more stock items from A to B. Has 1 or more Reception information | |
| Reception Information (RI) - Details on the reception conditions. One RI per SI (eg if H is a movement of 2 stock item, it will have 2 RI) | |
| Query - I want to find missmatches between current location of the SI and what the most recent movement history for that item says that stock item went to. Something similar to: | |
| SELECT h.*,ri.code_id,si.* | |
| FROM iwrs.movement_history h inner join iwrs.reception_information ri on ri.movement_history_id = h.id | |
| inner join iwrs.stock_item si on si.id=ri.code_id | |
| where ri.code_id in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Connection Keep-Alive | |
| Content-Disposition attachment; filename="auditTrail.pdf" | |
| Content-Language pt-PT | |
| Content-Type application | |
| Date Wed, 18 Dec 2013 17:49:23 GMT | |
| Keep-Alive timeout=15, max=98 | |
| Transfer-Encoding chunked |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "trial_locations_pkey" | |
| Detail: Key (trial_id, locations_id)=(6, 5) already exists. | |
| Code: | |
| package test; | |
| import hibernateTest.Location; | |
| import hibernateTest.Trial; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Program received signal SIGSEGV, Segmentation fault. | |
| [Switching to Thread 0x7fff8affd700 (LWP 19329)] | |
| 0x00007fffe0dc5a72 in efhd_format_attachment (emf=0xfdb030, stream=0x214f070, part=0x10a1150, mime_type=0x7fff8c01d0b0 "application/msword", handle=0x0, | |
| cancellable=0x233c520) at em-format-html-display.c:461 | |
| 461 em-format-html-display.c: No such file or directory. | |
| Thread 90 (Thread 0x7fff8affd700 (LWP 19329)): | |
| #0 0x00007fffe0dc5a72 in efhd_format_attachment (emf=0xfdb030, stream=0x214f070, part=0x10a1150, mime_type=0x7fff8c01d0b0 "application/msword", handle=0x0, | |
| cancellable=0x233c520) at em-format-html-display.c:461 | |
| #1 0x00007fffe093390a in em_format_part_as (emf=0xfdb030, stream=0x214f070, part=0x10a1150, mime_type=0x7fff8c01d0b0 "application/msword", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2013-11-22 10:30:08,254 [pool-6-thread-1] ERROR org.apache.archiva.repository.scanner.functors.ConsumerProcessFileClosure [] - Consumer [create-archiva-metadat | |
| a] had an error when processing file [/srv/maven/snapshots/nexus-maven-repository-index.zip]: Not a valid artifact path in a Maven 2 repository, not enough dir | |
| ectories: nexus-maven-repository-index.zip | |
| java.lang.IllegalArgumentException: Not a valid artifact path in a Maven 2 repository, not enough directories: nexus-maven-repository-index.zip | |
| at org.apache.archiva.metadata.repository.storage.maven2.Maven2RepositoryPathTranslator.getArtifactForPath(Maven2RepositoryPathTranslator.java:168) ~[m | |
| aven2-repository-1.4-M4.jar:?] | |
| at org.apache.archiva.metadata.repository.storage.maven2.Maven2RepositoryStorage.readArtifactMetadataFromPath(Maven2RepositoryStorage.java:613) ~[maven | |
| 2-repository-1.4-M4.jar:?] | |
| at org.apache.archiva.consumers.metadata.ArchivaMetadataCreationConsumer.processFile(ArchivaMetadataCreationConsumer.java:156) ~[ar |