@Override public final NoSuchEJBException couldNotFindEjb(final String sessionId) { final NoSuchEJBException result = new NoSuchEJBException(String.format(getLoggingLocale(), couldNotFindEjb$str(), sessionId)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String componentNotSetInInterceptor = "WFLYEJB0169: Component not set in InterceptorContext: %s";
@Override public final NoSuchEJBException unknownDeployment(final org.jboss.ejb.client.EJBLocator<?> locator) { final NoSuchEJBException result = new NoSuchEJBException(String.format(getLoggingLocale(), unknownDeployment$str(), locator)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String ejbNotFoundInDeployment = "WFLYEJB0056: Could not find EJB in matching deployment: %s";
@Override public final NoSuchEJBException noEJBReceiverAvailable(final URI locator) { final NoSuchEJBException result = new NoSuchEJBException(String.format(getLoggingLocale(), noEJBReceiverAvailable$str(), locator)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String noEJBReceiverForNode = "EJBCLIENT000027: No EJBReceiver available for node name %s";
@Override public final NoSuchEJBException noTransportProvider(final org.jboss.ejb.client.EJBLocator<?> locator, final String scheme) { final NoSuchEJBException result = new NoSuchEJBException(String.format(getLoggingLocale(), noTransportProvider$str(), locator, scheme)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String selectorReturnedUnknownNode = "EJBCLIENT000076: Configured selector \"%s\" returned unknown node \"%s\"";
@Override public final NoSuchEJBException noDestinationEstablished(final org.jboss.ejb.client.EJBLocator<?> locator) { final NoSuchEJBException result = new NoSuchEJBException(String.format(getLoggingLocale(), noDestinationEstablished$str(), locator)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String requestNotSent = "EJBCLIENT000080: Request not sent";
@Override public final NoSuchEJBException ejbNotFoundInDeployment(final org.jboss.ejb.client.EJBLocator<?> locator) { final NoSuchEJBException result = new NoSuchEJBException(String.format(getLoggingLocale(), ejbNotFoundInDeployment$str(), locator)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String annotationApplicableOnlyForMethods = "WFLYEJB0057: %s annotation is only valid on method targets";
final NodeInformation nodeInformation = discoveredNodeRegistry.getNodeInformation(getChannel().getConnection().getRemoteEndpointName()); nodeInformation.removeModule(EJBClientChannel.this, moduleIdentifier); receiverInvocationContext.requestFailed(new NoSuchEJBException(message + " @ " + getChannel().getConnection().getPeerURI()), getRetryExecutor()); } catch (IOException e) { receiverInvocationContext.requestFailed(new EJBException("Failed to read 'No such EJB' response", e), getRetryExecutor());
throw new NoSuchEJBException(message + " @ " + getChannel().getConnection().getPeerURI());
public void remove(Object key) { StatefulBeanContext ctx = null; synchronized (cacheMap) { ctx = (StatefulBeanContext) cacheMap.remove(key); } if(ctx == null) throw new NoSuchEJBException("Could not find Stateful bean: " + key); container.destroy(ctx); ++removeCount; }
@Override public Object invoke(final Object proxy, final Method method, final Object... args) throws Throwable { if (isInvalidReference.get()) { if (remote || java.rmi.Remote.class.isAssignableFrom(method.getDeclaringClass())) { throw new NoSuchObjectException("reference is invalid"); } else { throw new NoSuchEJBException("reference is invalid"); } } return _invoke(proxy, method, args); }
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { if (isInvalidReference) { if (remote || java.rmi.Remote.class.isAssignableFrom(method.getDeclaringClass())){ throw new NoSuchObjectException("reference is invalid"); } else { throw new NoSuchEJBException("reference is invalid"); } } Object returnObj = null; returnObj = _invoke(proxy, method, args); return returnObj; }
protected void checkInit() { if( singletonInitializationFailed ) { throw new NoSuchEJBException("Singleton " + ejbDescriptor.getName() + " is unavailable " + "because its original initialization failed."); } if (! singletonInitialized.get()) { //Note: NEVER call instantiateSingletonInstance() directly from here // The following starts all dependent beans as well // //Also, it is OK to call the following by concurrent threads lcm.initializeSingleton(this); } }
@Override public final NoSuchEJBException noDestinationEstablished(final org.jboss.ejb.client.EJBLocator<?> locator) { final NoSuchEJBException result = new NoSuchEJBException(String.format(getLoggingLocale(), noDestinationEstablished$str(), locator)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String requestNotSent = "EJBCLIENT000080: Request not sent";
@Override public final NoSuchEJBException noTransportProvider(final org.jboss.ejb.client.EJBLocator<?> locator, final String scheme) { final NoSuchEJBException result = new NoSuchEJBException(String.format(getLoggingLocale(), noTransportProvider$str(), locator, scheme)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String selectorReturnedUnknownNode = "EJBCLIENT000076: Configured selector \"%s\" returned unknown node \"%s\"";
@Override public final NoSuchEJBException ejbHashBeenRemoved(final Object ejbComponent) { final NoSuchEJBException result = new NoSuchEJBException(String.format(getLoggingLocale(), ejbHashBeenRemoved$str(), ejbComponent)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } }
@Override public final NoSuchEJBException noEJBReceiverAvailable(final URI locator) { final NoSuchEJBException result = new NoSuchEJBException(String.format(getLoggingLocale(), noEJBReceiverAvailable$str(), locator)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String noEJBReceiverForNode = "EJBCLIENT000027: No EJBReceiver available for node name %s";
@Override public final NoSuchEJBException noEJBReceiverAvailable(final URI locator) { final NoSuchEJBException result = new NoSuchEJBException(String.format(getLoggingLocale(), noEJBReceiverAvailable$str(), locator)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String noEJBReceiverForNode = "EJBCLIENT000027: No EJBReceiver available for node name %s";
@Override public final NoSuchEJBException noTransportProvider(final org.jboss.ejb.client.EJBLocator<?> locator, final String scheme) { final NoSuchEJBException result = new NoSuchEJBException(String.format(getLoggingLocale(), noTransportProvider$str(), locator, scheme)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String selectorReturnedUnknownNode = "EJBCLIENT000076: Configured selector \"%s\" returned unknown node \"%s\"";
@Override public final NoSuchEJBException noDestinationEstablished(final org.jboss.ejb.client.EJBLocator<?> locator) { final NoSuchEJBException result = new NoSuchEJBException(String.format(getLoggingLocale(), noDestinationEstablished$str(), locator)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String requestNotSent = "EJBCLIENT000080: Request not sent";
private void isValidReference(Method method) throws NoSuchObjectException { if (isInvalidReference) { if (interfaceType.isComponent() && interfaceType.isLocal()){ throw new NoSuchObjectLocalException("reference is invalid"); } else if (interfaceType.isComponent() || java.rmi.Remote.class.isAssignableFrom(method.getDeclaringClass())) { throw new NoSuchObjectException("reference is invalid"); } else { throw new NoSuchEJBException("reference is invalid"); } } getDeploymentInfo(); // will throw an exception if app has been undeployed. }