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

August 2025

S M T W T F S
      12
3456789
10 11 12 13141516
171819 20212223
2425 2627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 27th, 2025 05:20 pm
Powered by Dreamwidth Studios