| Summary: | [DB][Derby] Adding two blobs at the same time, derby throws exception | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Egidijus Vaisnora <vaisegid> | ||||||||
| Component: | cdo.db | Assignee: | Egidijus Vaisnora <vaisegid> | ||||||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | Flags: | stepper:
review+
|
||||||||
| Version: | 4.1 | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Egidijus Vaisnora
Created attachment 199051 [details]
test case
Issue is related that Derby read from the stream, when given read size matches actual stream size. See: http://db.apache.org/derby/papers/JDBCImplementation.html#setAsciiStream%2CsetBinaryStream%2CsetCharacterStream Could we use apache IO library? Fix could be easily achieved with http://javasourcecode.org/html/open-source/commons-io/commons-io-2.0/org/apache/commons/io/input/BoundedInputStream.java.html (In reply to comment #0) > Exception message: > Caused by: org.apache.derby.iapi.services.io.DerbyIOException: Input stream did > not have exact amount of data as the requested length. Is there no stack trace available or is it a secret? Even talking about an exception is not okay unless it's accompanied with a stack trace ;-( (In reply to comment #3) > Could we use apache IO library? Fix could be easily achieved with > http://javasourcecode.org/html/open-source/commons-io/commons-io-2.0/org/apache/commons/io/input/BoundedInputStream.java.html Adding new dependencies requires nasty legal process work. Since we do already have a LimitedReader class, I've copied/refactored it for you into a LimitedInputStream class. Committed revision 8589: - trunk/plugins/org.eclipse.net4j.util Committed revision 8589 Created attachment 199109 [details]
fix
Created attachment 199159 [details]
Fix v2
Slightly reformatted
Committed in trunk revision 8619 Closing. |