List of usage examples for java.lang UnsupportedClassVersionError UnsupportedClassVersionError
public UnsupportedClassVersionError(String s)
UnsupportedClassVersionError
with the specified detail message. From source file:com.linkedin.databus.core.DbusEventV2.java
@Override public DbusEvent clone(DbusEvent e) { DbusEventV2 reuse = (DbusEventV2) e; if (null == reuse) { reuse = new DbusEventV2(_buf, _position); } else {/* w ww . ja v a2 s . c o m*/ if (!(e instanceof DbusEventV2)) { throw new UnsupportedClassVersionError("Unsupported class:" + e.getClass().getSimpleName()); } reuse.resetInternal(_buf, _position); } return reuse; }
From source file:org.mongojack.internal.object.BsonObjectGenerator.java
@Override public void writeTree(TreeNode rootNode) throws IOException, JsonProcessingException { throw new UnsupportedClassVersionError("Writing JSON nodes not supported"); }
From source file:com.linkedin.databus.core.DbusEventV1.java
@Override public DbusEvent clone(DbusEvent e) { DbusEventV1 reuse = (DbusEventV1) e; if (null == reuse) { reuse = new DbusEventV1(_buf, _position); } else {//w w w .j a v a2s . co m // TODO: option to convert (via reset()) instead of throw exception? if (!(e instanceof DbusEventV1)) { throw new UnsupportedClassVersionError("Unsupported class:" + e.getClass().getSimpleName()); } reuse.resetInternal(_buf, _position); } return reuse; }
From source file:org.atricore.idbus.kernel.main.federation.AccountLinkLifecycleImpl.java
public AccountLink findByIDPAccount(Subject idpSubject) { throw new UnsupportedClassVersionError("Unsupported Account Link Lifecycle Operation"); /*/*w w w .j a va 2s .c o m*/ AccountLink accountLink = null; SubjectNameID subjectNameID = null; for(Principal absPrincipal : idpSubject.getPrincipals()){ if(absPrincipal instanceof SubjectNameID){ subjectNameID = (SubjectNameID)absPrincipal; } } if(subjectNameID != null){ List result = entityManager.createQuery("select distinct pal from PersistentAccountLinkImpl pal inner join pal.idpSubject.principals pr " + "where pr IN (from SubjectNameID snID where snID.name=:name) and pal.deleted=:del") .setParameter("name", subjectNameID.getName()).setParameter("del", new Boolean(false)).getResultList(); if(result != null && result.size() != 0){ accountLink = (AccountLink)result.get(0); } } return accountLink; */ }
From source file:org.atricore.idbus.kernel.main.federation.AccountLinkLifecycleImpl.java
public AccountLink findByLocalAccount(Subject localSubject) { throw new UnsupportedClassVersionError("Unsupported Account Link Lifecycle Operation"); /*//from w w w .j a v a2s . com AccountLink accountLink = null; SubjectNameID subjectNameID = null; for(Principal absPrincipal : localSubject.getPrincipals()){ if(absPrincipal instanceof SubjectNameID){ subjectNameID = (SubjectNameID)absPrincipal; } } if(subjectNameID != null){ List result = entityManager.createQuery("select distinct pal from PersistentAccountLinkImpl pal inner join pal.idpSubject.principals pr " + "where pr IN (from SubjectNameID snID where snID.localName=:name) and pal.deleted=:del") .setParameter("name", subjectNameID.getName()).setParameter("del", new Boolean(false)).getResultList(); if(result != null && result.size() != 0){ accountLink = (AccountLink)result.get(0); } } return accountLink; */ }
From source file:org.atricore.idbus.kernel.main.federation.AccountLinkLifecycleImpl.java
public AccountLink disable(AccountLink accountLink) { if (accountLink instanceof PersistentAccountLinkImpl) { throw new UnsupportedClassVersionError("Unsupported Account Link Lifecycle Operation"); /*//from w w w .ja va 2s. co m //we want to update only 'enabled' property accountLink = entityManager.find(PersistentAccountLinkImpl.class, ((PersistentAccountLinkImpl)accountLink).getPersistanceId()); if(accountLink != null){ accountLink.setEnabled(false); accountLink = entityManager.merge(accountLink); } */ } return accountLink; }
From source file:org.atricore.idbus.kernel.main.federation.AccountLinkLifecycleImpl.java
public AccountLink enable(AccountLink accountLink) { if (accountLink instanceof PersistentAccountLinkImpl) { throw new UnsupportedClassVersionError("Unsupported Account Link Lifecycle Operation"); /*/*from ww w . j a v a2s .c o m*/ //we want to update only 'enabled' property accountLink = entityManager.find(PersistentAccountLinkImpl.class, ((PersistentAccountLinkImpl)accountLink).getPersistanceId()); if(accountLink != null){ accountLink.setEnabled(true); accountLink = entityManager.merge(accountLink); } */ } return accountLink; }
From source file:org.atricore.idbus.kernel.main.federation.AccountLinkLifecycleImpl.java
public AccountLink dispose(AccountLink accountLink) { if (accountLink instanceof PersistentAccountLinkImpl) { throw new UnsupportedClassVersionError("Unsupported Account Link Lifecycle Operation"); /*/*from w w w . j av a 2s . c o m*/ accountLink = entityManager.find(PersistentAccountLinkImpl.class, ((PersistentAccountLinkImpl)accountLink).getPersistanceId()); if(accountLink != null){ accountLink.setDeleted(true); accountLink = entityManager.merge(accountLink); } */ } return accountLink; }
From source file:org.kawanfw.file.servlet.ServerFileDispatch.java
/** * Analyse the throwable and build the final Exception/Throwable * @param throwable the input throwable thrown * @return the new rewritten Throwable *///from w w w.j ava 2 s.c o m public static Throwable getFinalThrowable(Throwable throwable) { Throwable finalThrowable = null; Throwable cause = throwable.getCause(); if (cause != null && cause instanceof ClassNotFoundException || cause != null && cause instanceof NoClassDefFoundError) { finalThrowable = new ClassNotFoundException(throwable.getMessage()); } else if (cause != null && cause instanceof UnsupportedClassVersionError) { finalThrowable = new UnsupportedClassVersionError(throwable.getMessage()); } else { if (cause != null) { finalThrowable = cause; } else { finalThrowable = throwable; } } return finalThrowable; }