Nov. 20th, 2012

npe wtf

Nov. 20th, 2012 10:57 am
juan_gandhi: (Default)
    /**
     * Makes sure that we are running with 2.1 JAXB API,
     * and report an error if not.
     */
    static {
        try {
            XmlSchema s = null;
            s.location();
        } catch (NullPointerException e) {
            // as epxected
        } catch (NoSuchMethodError e) {
            // this is not a 2.1 API. Where is it being loaded from?
            Messages res;
            if(XmlSchema.class.getClassLoader()==null)
                res = Messages.INCOMPATIBLE_API_VERSION_MUSTANG;
            else
                res = Messages.INCOMPATIBLE_API_VERSION;

            throw new LinkageError( res.format(
                Which.which(XmlSchema.class),
                Which.which(ModelBuilder.class)
            ));
        }
    }
juan_gandhi: (Default)
Self-indulgence
Self-restraint
Your grandparents' recollections of youthful hopes and passions
Scalping
Militant vegetarians
The destruction of the library of Alexandria
The lenghtening of shadows in the evening
Bestiality
The inevitable tyranny of social institutions
Clouds
juan_gandhi: (Default)
‎"Прошу Вас провести проверку действительности бытия божия. В случае отсутствия такого существа, прошу привлечь руководство Православной церкви к ответственности за мошеннические действия."
juan_gandhi: (Default)
Денег нет, сидят едят пиццу. Типа на картошку да капусту у них денег нету. Едят пирожные. Сбылась мечта королевы.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

October 2025

S M T W T F S
    1 23 4
5 678 9 1011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 12th, 2025 12:06 am
Powered by Dreamwidth Studios