Hello -

Some Annotations allow new properties. Some (like 
Annotation.EMPTY_ANNOTATION) do not and will throw the exception you get. 
Alternatively you may have added a ChangeListener which is vetoeing your 
change but it seems unlikely you would do this without meaning to.

Can you determine the type of Annotation you have?

seq.getAnnotation().getClass().getName()

This will help us to figure out where the problem is.

- Mark





"Christian Köberle" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
11/22/2005 05:58 PM

 
        To:     biojava-l@biojava.org
        cc:     (bcc: Mark Schreiber/GP/Novartis)
        Subject:        [Biojava-l] Annotation


Hi,

I have a problem with Annotation. If I try to add a new Property to an 
Annotation I get a ChangeVetoException. What can I do?

-- 
Christian Köberle

Max Planck Institute for Infection Biology
Department: Immunology
Schumannstr. 21/22
10117 Berlin

Tel: +49 30 28 460 562
e-mail: [EMAIL PROTECTED]

_______________________________________________
Biojava-l mailing list  -  Biojava-l@biojava.org
http://biojava.org/mailman/listinfo/biojava-l




_______________________________________________
Biojava-l mailing list  -  Biojava-l@biojava.org
http://biojava.org/mailman/listinfo/biojava-l

Reply via email to