We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The build fails with mvnd, where it works with plain mvn.
The Image class:
@Entity @Table( name = Image.TABLE_NAME, uniqueConstraints = @UniqueConstraint(name = Image.PK_CONSTRAINT_NAME, columnNames = {"name"}) ) public class Image extends AbstractEntity { public static final String TABLE_NAME = "image"; public static final String PK_CONSTRAINT_NAME = TABLE_NAME + "_pkey"; @Column(nullable = false) private String name; @Lob private Blob blob; private String mimeType; private long length; @ManyToOne(fetch = FetchType.LAZY) private User user; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getMimeType() { return mimeType; } public void setMimeType(String mimeType) { this.mimeType = mimeType; } public long getLength() { return length; } public void setLength(long length) { this.length = length; } public Blob getBlob() { return blob; } public void setBlob(Blob blob) { this.blob = blob; } public User getUser() { return user; } public void setUser(User user) { this.user = user; } public void write(byte[] bytes) throws Exception { blob = new SerialBlob(bytes); } public byte[] read() throws IOException { if (blob == null) return null; try { return blob.getBytes(1, (int) blob.length() + 1); } catch (SQLException e) { throw new IOException(e.getMessage(), e); } } public InputStream stream() throws IOException { try { return (blob != null) ? blob.getBinaryStream() : null; } catch (SQLException e) { throw new IOException(e.getMessage(), e); } } }
The text was updated successfully, but these errors were encountered:
Is the reproducer project accessible somewhere?
Sorry, something went wrong.
@ppalaga unfortunately no
Let me see if I can quickly hack some similar simple mock ...
@ppalaga @gnodet try this ... it fails in same way for me ...
Add a reproducer test for apache#277
2019848
92ddff9
Merge pull request #338 from gnodet/i277
9f7c328
Fix JVM resource loading from plugins, fixes #277
gnodet
No branches or pull requests
The build fails with mvnd, where it works with plain mvn.
The Image class:
The text was updated successfully, but these errors were encountered: