[Installation, Configuration & DEPLOYMENT] - Jboss 4.2.2: Starting failed jboss:service=Naming
by klein01
I'm trying to upgrade from jboss 4.0.5 to jboss 4.2.2, and have the below exceptions, not sure how to resolve.
I'm using jdk 1.5.0_09 on jboss 4.2.2.GA. Anyone saw similar issues or any suggestions would be highly appreciated. Thanks, --Klein
=============
2007-11-11 14:14:58,593 DEBUG [org.jboss.system.ServiceController] starting service jboss:service=WebService
2007-11-11 14:14:58,593 DEBUG [org.jboss.web.WebService] Starting jboss:service=WebService
2007-11-11 14:14:58,608 DEBUG [org.jboss.web.WebServer] Started server: ServerSocket[addr=/127.0.0.1,port=0,localport=8083]
2007-11-11 14:14:58,608 DEBUG [org.jboss.web.WebService] Started WebServer with address: /127.0.0.1:8083
2007-11-11 14:14:58,608 DEBUG [org.jboss.web.WebService] Started jboss:service=WebService
2007-11-11 14:14:58,608 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss:service=WebService dependent components: []
2007-11-11 14:14:58,608 DEBUG [org.jboss.system.ServiceController] starting service jboss:service=Naming
2007-11-11 14:14:58,608 DEBUG [org.jboss.naming.NamingService] Starting jboss:service=Naming
2007-11-11 14:14:58,624 DEBUG [org.jboss.naming.NamingService] System.setProperty, key=java.naming.factory.initial, value=org.jnp.interfaces.NamingContextFactory
2007-11-11 14:14:58,624 DEBUG [org.jboss.naming.NamingService] System.setProperty, key=java.naming.factory.url.pkgs, value=org.jboss.naming:org.jnp.interfaces
2007-11-11 14:14:58,624 DEBUG [org.jboss.naming.Naming] Creating NamingServer stub, theServer=null,rmiPort=1098,clientSocketFactory=null,serverSocketFactory=org.jboss.net.sockets.DefaultSocketFactory(a)e048aaa4[bindAddress=/127.0.0.1]
2007-11-11 14:14:58,624 DEBUG [org.jboss.naming.NamingService] Starting failed jboss:service=Naming
java.lang.NullPointerException
at org.jnp.server.Main.getNamingInstance(Main.java:301)
at org.jnp.server.Main.initJnpInvoker(Main.java:354)
at org.jnp.server.Main.start(Main.java:316)
at org.jboss.naming.NamingService.startService(NamingService.java:284)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor2.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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
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.server.Invocation.invoke(Invocation.java:86)
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 $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
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 $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:595)
2007-11-11 14:14:58,624 WARN [org.jboss.system.ServiceController] Problem starting service jboss:service=Naming
java.lang.NullPointerException
at org.jnp.server.Main.getNamingInstance(Main.java:301)
at org.jnp.server.Main.initJnpInvoker(Main.java:354)
at org.jnp.server.Main.start(Main.java:316)
at org.jboss.naming.NamingService.startService(NamingService.java:284)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103521#4103521
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103521
18 years, 8 months
[JBoss Seam] - EntityQuery : paging problem, only 1st and 2th page does wor
by mark.wigmans
When I use paging via a subclass of EntityQuery I noticed that only the first page and second page work, but after that I can't step to the 3rd page.
The value of firstResult is always 'null' when the next() call is started.
I use:
jboss seam 2.0.0. GA
jboss AS 4.2.2 GA
I test with 8 records in the database
------------------------ cardslist.java ----------------
import org.jboss.seam.annotations.Logger;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.framework.EntityQuery;
| import org.jboss.seam.log.Log;
|
| @Name("cardsList")
| public class CardsList extends EntityQuery
| {
| private static final long serialVersionUID = 1L;
|
| @SuppressWarnings("unused")
| @Logger
| static private Log log;
|
| /**
| * default constructor
| */
| public CardsList() {
| setMaxResults(2);
| setOrder("id");
| }
|
| @Override
| public String getEjbql()
| {
| return "select cards from Cards cards";
| }
|
|
| /**
| * @see org.jboss.seam.framework.Query#setFirstResult(java.lang.Integer)
| */
| @Override
| public void setFirstResult(Integer firstResult) {
| log.error("set first result:" + firstResult);
| super.setFirstResult(firstResult);
| }
|
|
| /**
| * @see org.jboss.seam.framework.Query#getFirstResult()
| */
| @Override
| public Integer getFirstResult() {
| log.error("get first result:" + super.getFirstResult());
| return super.getFirstResult();
| }
|
| @Override
| public void next()
| {
| log.error("first result:" + getFirstResult());
| log.error("max result:" + getMaxResults());
| log.error("next first result:" + getNextFirstResult());
| super.next();
| }
|
|
| /**
| * otherwise the isNextExists() call result in a bad result the first page.
| */
| @Override
| public boolean isNextExists() {
| return getResultList() != null
| && getResultCount() > (getFirstResult() != null ? getFirstResult()
| : 0)
| + getMaxResults();
| }
|
| }
|
------------------------------ part of cardslist.xhtml -----------------------------
| <h:outputText value="Item #{cardsList.firstResult + 1}..#{cardsList.firstResult + cardsList.maxResults} of #{cardsList.resultCount}"/>
|
| <h:commandLink action="#{cardsList.previous}" value="Previous #{cardsList.maxResults} "
| rendered="#{cardsList.previousExists}"/>
| <h:commandLink action="#{cardsList.next}" value="Next #{cardsList.maxResults}"
| rendered="#{cardsList.nextExists}"/>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103510#4103510
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103510
18 years, 8 months