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

September 2025

S M T W T F S
 1 2345 6
78 9 10 111213
14 151617 181920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 19th, 2025 04:28 pm
Powered by Dreamwidth Studios