[JBossWS] - NullPointerException while using JBossWS 1.0.4.GA
by vink
hello,
Please find attached the details of the exception while I've deployed my service (which was running fine on old release)
I've upgraded to JBossWS 1.0.4.GA & the problem starts..
I'm using JBoss 4.0.5.GA, it starts without any problem. But, when I deploy my service package it throws a NullPointerException.
Then during investigation, I tried to access JBossWS Web Console. But, when I try to list the services - it again thows me an exception.
19:40:04,217 ERROR [MainDeployer] Could not create deployment: file:/C:/Lang/JBoss/jboss-4.0.5.GA/server/default/deploy/DisplayManagementAPI.ejb3
java.lang.NullPointerException
at org.jboss.ws.integration.jboss.DeployerInterceptor.getServiceEndpointDeployer(DeployerInterceptor.java:142)
at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:80)
at org.jboss.ws.integration.jboss.DeployerInterceptorEJB.create(DeployerInterceptorEJB.java:44)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy30.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019955#4019955
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019955
19Â years, 2Â months
[JBoss Seam] - @LoggedIn at the method level
by monkeyden
@LoggedIn in the docs is at the TYPE level. Has anyone gotten it to work at the method level? It doesnt seem to be intercepting the method call. I'd like to allow the "list function" of a screen but not the edit function if the user is not logged in.
@Target(METHOD)
| @Retention(RUNTIME)
| @Interceptors(LoggedInInterceptor.class)
| public @interface LoggedIn {}
@Stateful
| @Name("safe")
| @Scope(SESSION)
| public class SafeAction implements Safe {
| @Logger
| private Log log;
|
| @LoggedIn
| public String pingMe(){
| log.debug("Pinging me");
| return "success";
| }
|
| public String pingMeToo(){
| log.debug("Pinging me too");
| return "home";
| }
|
| @Destroy @Remove
| public void destroy(){
|
| }
| }
public class LoggedInInterceptor {
|
| @Logger
| private Log log;
|
| @AroundInvoke
| public Object checkLoggedIn(InvocationContext invocation) throws Exception {
| boolean isLoggedIn = Contexts.getSessionContext().get("user")!=null;
| try {
| if (isLoggedIn) {
| return invocation.proceed();
| } else {
| throw new SecurityException();
| }
| } catch (SecurityException se) {
| log.debug("Login required");
| return "login";
| }
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019952#4019952
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019952
19Â years, 2Â months
[JBoss Portal] - Re: IntelliJ Idea project for JBoss Portal 2.6
by claque
I've tried it, but it does:
C:\jboss-portal-2.6-ALPHA2\src\build>build.bat
Executing C:\jboss-portal-2.6-ALPHA2\src\build\..\tools\bin\ant.bat -logger org.apache.tools.ant.NoBannerLogger
Exception in thread "main" java.lang.NoClassDefFoundError: Files\Java\jdk1/5/0_06\lib\tools/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\xml-apis/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\xercesImpl/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\xalan/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\saxon/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\junit/
jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\jbossbuild/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\jboss-test/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\explode/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\crimson/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\cargo-core-uberjar-0/8/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\buildmagic-task
s/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\bsf/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\ant/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\ant-nodeps/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\ant-launcher/jar;C:\jboss-portal-2/6-ALPHA2\src\build\//\tools\lib\ant-junit/jar;
Press any key to continue . . .
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019942#4019942
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019942
19Â years, 2Â months