jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Dotchev <dotc...@gmail.com>
Subject NoSuchMethodError: org.apache.jackrabbit.core.value.BLOBFileValue.dispose()V
Date Tue, 03 Nov 2009 23:38:28 GMT

Hi,

When I set a Binary property and I try to save it I get this exception.

java.lang.NoSuchMethodError:
org.apache.jackrabbit.core.value.BLOBFileValue.dispose()V
	at
org.apache.jackrabbit.core.value.InternalValue.discard(InternalValue.java:722)
	at
org.apache.jackrabbit.core.persistence.util.Serializer.serialize(Serializer.java:220)
	at
org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.store(DatabasePersistenceManager.java:505)
	at
org.apache.jackrabbit.core.persistence.AbstractPersistenceManager.store(AbstractPersistenceManager.java:69)
	at
org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager.store(DatabasePersistenceManager.java:302)
	at
org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:732)
	at
org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1109)
	at
org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:351)
	at
org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
	at
org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:326)
	at
org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:329)
	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1122)
	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:917)

I use 2.0-beta1.
The same with 2.0-alpha9.

I set the Binary property with code like this.

Node content = ...;
content.setProperty("jcr:data",
getSession().getValueFactory().createBinary(imageData.getData()));

When I check the source of org.apache.jackrabbit.core.value.BLOBFileValue it
really does not have method dispose.

Here is the source where this method is called
org.apache.jackrabbit.core.value.InternalValue

    public void discard() {
        if (type == PropertyType.BINARY) {
            BLOBFileValue bfv = (BLOBFileValue) val;
            bfv.dispose();
        } else {
            super.discard();
        }
    }

Any ideas?

Best regards,
Peter

-- 
View this message in context: http://old.nabble.com/NoSuchMethodError%3A-org.apache.jackrabbit.core.value.BLOBFileValue.dispose%28%29V-tp26164392p26164392.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message