openmeetings无法进入登录页面 页面报错Internal error

huangjw 发布于 2015/12/30 15:46
阅读 1K+
收藏 0

用的是apache-openmeetings-3.0.7 连接的是oracle  安装完成后访问一切正常,但是关掉red5 再次启动后 页面无法进入 页面报错:Internal error

后台报错信息为:

ERROR 12-30 14:22:42.142 DefaultExceptionMapper.java 255077 170 org.apache.wicke
t.DefaultExceptionMapper [http-nio-0.0.0.0-5080-exec-6] - Unexpected error occur
red
org.apache.wicket.WicketRuntimeException: Can't instantiate page using construct
or 'public org.apache.openmeetings.web.pages.auth.SignInPage()'. An exception ha
s been thrown during construction!
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFacto
ry.java:194) ~[wicket-core-jar-6.20.0.jar:6.20.0]
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFacto
ry.java:67) ~[wicket-core-jar-6.20.0.jar:6.20.0]
        at org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperC
ontext.java:133) ~[wicket-core-jar-6.20.0.jar:6.20.0]
        at org.apache.wicket.core.request.handler.PageProvider.resolvePageInstan
ce(PageProvider.java:268) ~[wicket-core-jar-6.20.0.jar:6.20.0]
        at org.apache.wicket.core.request.handler.PageProvider.getPageInstance(P
ageProvider.java:166) ~[wicket-core-jar-6.20.0.jar:6.20.0]
        at org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRen
derer.java:78) ~[wicket-core-jar-6.20.0.jar:6.20.0]
        at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebP
ageRenderer.java:279) ~[wicket-core-jar-6.20.0.jar:6.20.0]
        at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respo
nd(RenderPageRequestHandler.java:175) ~[wicket-core-jar-6.20.0.jar:6.20.0]
        at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(
RequestCycle.java:890) ~[wicket-core-jar-6.20.0.jar:6.20.0]
        at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerS
tack.java:64) ~[wicket-request-jar-6.20.0.jar:6.20.0]
        at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.jav
a:261) [wicket-core-jar-6.20.0.jar:6.20.0]
        at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCy
cle.java:218) [wicket-core-jar-6.20.0.jar:6.20.0]
        at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(
RequestCycle.java:289) [wicket-core-jar-6.20.0.jar:6.20.0]
        at org.apache.wicket.protocol.ws.AbstractUpgradeFilter.processRequestCyc
le(AbstractUpgradeFilter.java:59) [wicket-native-websocket-core-jar-6.20.0.jar:6
.20.0]
        at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFil
ter.java:201) [wicket-core-jar-6.20.0.jar:6.20.0]
        at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.ja
va:282) [wicket-core-jar-6.20.0.jar:6.20.0]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:239) [tomcat-embed-core.jar:8.0.26]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206) [tomcat-embed-core.jar:8.0.26]
        at org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.jav
a:77) [red5-server.jar:1.0.6-RELEASE]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:239) [tomcat-embed-core.jar:8.0.26]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206) [tomcat-embed-core.jar:8.0.26]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:219) [tomcat-embed-core.jar:8.0.26]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:106) [tomcat-embed-core.jar:8.0.26]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:502) [tomcat-embed-core.jar:8.0.26]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:142) [tomcat-embed-core.jar:8.0.26]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:79) [tomcat-embed-core.jar:8.0.26]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAcce
ssLogValve.java:616) [tomcat-embed-core.jar:8.0.26]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:88) [tomcat-embed-core.jar:8.0.26]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:518) [tomcat-embed-core.jar:8.0.26]
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp
11Processor.java:1091) [tomcat-embed-core.jar:8.0.26]
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
AbstractProtocol.java:673) [tomcat-embed-core.jar:8.0.26]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpo
int.java:1526) [tomcat-embed-core.jar:8.0.26]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoin
t.java:1482) [tomcat-embed-core.jar:8.0.26]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1110) [na:1.7.0_01]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:603) [na:1.7.0_01]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskTh
read.java:61) [tomcat-embed-core.jar:8.0.26]
        at java.lang.Thread.run(Thread.java:722) [na:1.7.0_01]
Caused by: java.lang.reflect.InvocationTargetException: null
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 ~[na:1.7.0_01]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:57) ~[na:1.7.0_01]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:45) ~[na:1.7.0_01]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525) ~[na:
1.7.0_01]
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFacto
ry.java:175) ~[wicket-core-jar-6.20.0.jar:6.20.0]
        ... 36 common frames omitted
Caused by: java.lang.NullPointerException: null
        at org.apache.openmeetings.data.user.UserManager.getCountry(UserManager.
java:541) ~[openmeetings-core-3.0.7-RELEASE.jar:na]
        at org.apache.openmeetings.data.user.UserManager$$FastClassBySpringCGLIB
$$c43b186d.invoke(<generated>) ~[spring-core-4.1.7.RELEASE.jar:na]
        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:2
04) ~[spring-core-4.1.7.RELEASE.jar:4.1.7.RELEASE]
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation
.invokeJoinpoint(CglibAopProxy.java:717) ~[spring-aop-4.1.7.RELEASE.jar:4.1.7.RE
LEASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:157) ~[spring-aop-4.1.7.RELEASE.jar:4.1.7.RELEAS
E]
        at org.springframework.transaction.interceptor.TransactionInterceptor$1.
proceedWithInvocation(TransactionInterceptor.java:99) ~[spring-tx-jar-4.1.7.RELE
ASE.jar:4.1.7.RELEASE]
        at org.springframework.transaction.interceptor.TransactionAspectSupport.
invokeWithinTransaction(TransactionAspectSupport.java:281) ~[spring-tx-jar-4.1.7
.RELEASE.jar:4.1.7.RELEASE]
        at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:96) ~[spring-tx-jar-4.1.7.RELEASE.jar:4.1.7.REL
EASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:179) ~[spring-aop-4.1.7.RELEASE.jar:4.1.7.RELEAS
E]
        at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterce
ptor.intercept(CglibAopProxy.java:653) ~[spring-aop-4.1.7.RELEASE.jar:4.1.7.RELE
ASE]
        at org.apache.openmeetings.data.user.UserManager$$EnhancerBySpringCGLIB$
$91e6588f.getCountry(<generated>) ~[spring-core-4.1.7.RELEASE.jar:na]
        at org.apache.openmeetings.web.app.WebSession.getCountryByBrowserLocale(
WebSession.java:412) ~[openmeetings-web-3.0.7-RELEASE.jar:na]
        at org.apache.openmeetings.web.pages.auth.RegisterDialog.reset(RegisterD
ialog.java:151) ~[openmeetings-web-3.0.7-RELEASE.jar:na]
        at org.apache.openmeetings.web.pages.auth.RegisterDialog.<init>(Register
Dialog.java:115) ~[openmeetings-web-3.0.7-RELEASE.jar:na]
        at org.apache.openmeetings.web.pages.auth.SignInPage.<init>(SignInPage.j
ava:134) ~[openmeetings-web-3.0.7-RELEASE.jar:na]
        at org.apache.openmeetings.web.pages.auth.SignInPage.<init>(SignInPage.j
ava:147) ~[openmeetings-web-3.0.7-RELEASE.jar:na]
        ... 41 common frames omitted
DEBUG 12-30 14:22:42.153 PageAccessSynchronizer.java 255088 112 org.apache.wicke
t.page.PageAccessSynchronizer [http-nio-0.0.0.0-5080-exec-6] - 'http-nio-0.0.0.0
-5080-exec-6' attempting to acquire lock to page with id '1'
DEBUG 12-30 14:22:42.154 PageAccessSynchronizer.java 255089 137 org.apache.wicke
t.page.PageAccessSynchronizer [http-nio-0.0.0.0-5080-exec-6] - http-nio-0.0.0.0-
5080-exec-6 acquired lock to page 1
DEBUG 12-30 14:22:42.156 ServletWebRequest.java 255091 189 org.apache.wicket.pro
tocol.http.servlet.ServletWebRequest [http-nio-0.0.0.0-5080-exec-6] - Calculatin
g context relative path from: context path '/openmeetings', filterPrefix '', uri
 '/openmeetings/signin'
DEBUG 12-30 14:22:42.156 ServletWebRequest.java 255091 189 org.apache.wicket.pro
tocol.http.servlet.ServletWebRequest [http-nio-0.0.0.0-5080-exec-6] - Calculatin
g context relative path from: context path '/openmeetings', filterPrefix '', uri
 '/openmeetings/signin'
DEBUG 12-30 14:22:42.157 ServletWebRequest.java 255092 189 org.apache.wicket.pro
tocol.http.servlet.ServletWebRequest [http-nio-0.0.0.0-5080-exec-6] - Calculatin
g context relative path from: context path '/openmeetings', filterPrefix '', uri
 '/openmeetings/signin'
DEBUG 12-30 14:22:42.159 ServletWebRequest.java 255094 189 org.apache.wicket.pro
tocol.http.servlet.ServletWebRequest [http-nio-0.0.0.0-5080-exec-6] - Calculatin
g context relative path from: context path '/openmeetings', filterPrefix '', uri
 '/openmeetings/signin'
DEBUG 12-30 14:22:42.161 Page.java 255096 871 org.apache.wicket.Page [http-nio-0
.0.0.0-5080-exec-6] - ending request for page [Page class = org.apache.wicket.ma
rkup.html.pages.InternalErrorPage, id = 1, render count = 1], request org.apache
.wicket.protocol.http.servlet.ServletWebRequest@169d0f4
DEBUG 12-30 14:22:42.161 Page.java 255096 871 org.apache.wicket.Page [http-nio-0
.0.0.0-5080-exec-6] - ending request for page [Page class = org.apache.wicket.ma
rkup.html.pages.InternalErrorPage, id = 1, render count = 1], request org.apache
.wicket.protocol.http.servlet.ServletWebRequest@169d0f4
DEBUG 12-30 14:22:42.162 PageAccessSynchronizer.java 255097 207 org.apache.wicke
t.page.PageAccessSynchronizer [http-nio-0.0.0.0-5080-exec-6] - 'http-nio-0.0.0.0
-5080-exec-6' released lock to page with id '1'
DEBUG 12-30 14:22:42.163 PageAccessSynchronizer.java 255098 358 org.apache.wicke
t.page.PageAccessSynchronizer [http-nio-0.0.0.0-5080-exec-6] - 'http-nio-0.0.0.0
-5080-exec-6' notifying blocked threads


请高手指点一下

加载中
0
h
huangjw
问题解决 结贴
0
h
huangjw

引用来自“huangjw”的评论

问题解决 结贴
配置文件问题
h
huangjw
在countries.xml文件问题 关键的错误点在 Caused by: java.lang.NullPointerException: null at org.apache.openmeetings.data.user.UserManager.getCountry(UserManager. java:541) ~[openmeetings-core-3.0.7-RE...
0
k
kelevenyu

引用来自“huangjw”的评论

问题解决 结贴

引用来自“huangjw”的评论

配置文件问题

我也遇到相同的问题,请问楼主是配置文件的哪个具体问题?

0
renoshen
renoshen

引用来自“huangjw”的评论

问题解决 结贴

引用来自“huangjw”的评论

配置文件问题
朋友,是哪个配置文件的问题?该修改什么位置呢?
0
x
xying
我也碰到了这个问题,求解。
0
h
huangjw

在countries.xml文件问题

关键的错误点在

Caused by: java.lang.NullPointerException: null

        at org.apache.openmeetings.data.user.UserManager.getCountry(UserManager.
java:541) ~[openmeetings-core-3.0.7-RELEASE.jar:na]
在countries.xml文件中有各国代码的定义 如 
<country code="830" short="" name="Channel Islands"/> 

请查是否有看short为空的情况 如果有就会
导致usermanage.java中
public State getCountry(Locale loc) {
List<State> states = stateDao.getStates();
if (loc != null) {
String code = loc.getISO3Country().toUpperCase();
System.out.println("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++testpoint code="+code+"++++++++++++++++++++++++++++");
System.out.println("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++testpoint states="+states.size()+"++++++++++++++++++++++++++++");
if(states.size()==0){
return null;
}else{
for (State s : states) {
System.out.println("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++testpoint s="+s.getShortName().toUpperCase()+"++++++++++++++++++++++++++++");
if (s.getShortName().toUpperCase().equals(code)) {
return s;
}
}
}
}
return states.get(0);
}

states 取值到这儿中断 导致了很多国家的代码信息无法获取 

修改方法 将short为空的值补上  同时更新state表

返回顶部
顶部