#1 2014-12-31 10:52:32

Naved
Member
Registered: 2014-12-31

Cannot Create New Users

Hi,

I have been trying to create new users by going to 'User Management' and adding a new user. However, whenever i click on 'Activate', an error pops up with the following text -

Error
500 The call failed on the server; see server log for details Statuscode: 500 EncodedResponse: The call failed on the server; see server log for details

The log file displays the following error

Dec 31, 2014 4:18:09 PM net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor invoke
INFO: Intercepted NonFatalException
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void net.datenwerke.rs.passwordpolicy.client.activateuser.rpc.ActivateUserRpcService.activateAccount(net.datenwerke.security.client.usermanager.dto.UserDto,boolean) throws net.datenwerke.gxtdto.client.servercommunication.exceptions.ExpectedException' threw an unexpected exception: java.lang.NoSuchMethodError: javax.el.ELResolver.invoke(Ljavax/el/ELContext;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
	at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389)
	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
	at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110)
	at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
	at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
	at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110)
	at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)
	at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
	at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
	at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
	at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:89)
	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
	at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
	at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:620)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NoSuchMethodError: javax.el.ELResolver.invoke(Ljavax/el/ELContext;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
	at de.odysseus.el.tree.impl.ast.AstMethod.eval(AstMethod.java:91)
	at de.odysseus.el.tree.impl.ast.AstMethod.eval(AstMethod.java:100)
	at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:51)
	at de.odysseus.el.tree.impl.ast.AstComposite.eval(AstComposite.java:35)
	at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:30)
	at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:122)
	at net.datenwerke.rs.utils.juel.JuelServiceImpl.evaluate(JuelServiceImpl.java:192)
	at net.datenwerke.rs.utils.juel.JuelServiceImpl.evaluate(JuelServiceImpl.java:178)
	at net.datenwerke.rs.utils.juel.SimpleJuel.parseAsObject(SimpleJuel.java:37)
	at net.datenwerke.rs.utils.juel.SimpleJuel.parse(SimpleJuel.java:29)
	at net.datenwerke.rs.core.service.mail.MailTemplate.configureMail(MailTemplate.java:73)
	at net.datenwerke.rs.core.service.mail.MailServiceImpl.newTemplateMail(MailServiceImpl.java:100)
	at net.datenwerke.rs.passwordpolicy.service.activateuser.ActivateUserServiceImpl.activateAccount(ActivateUserServiceImpl.java:121)
	at net.datenwerke.rs.passwordpolicy.server.ActivateUserRpcServiceImpl.activateAccount(ActivateUserRpcServiceImpl.java:55)
	at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:66)
	at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110)
	at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
	... 30 more

Can someone please help me with this?


Thanks
Naved

Offline

#2 2015-01-06 10:56:57

Thorsten J. Krause
Guest

Re: Cannot Create New Users

Hi Naved,

this looks as if something is wrong with the message template used to generate the notification email that is sent to the newly created user. Have you changed anything in the etc/security/activateuser.cf file?

Cheers,
Thorsten

#3 2015-01-06 11:29:01

Naved
Member
Registered: 2014-12-31

Re: Cannot Create New Users

Hi Thorsten,

I haven't changed anything in etc/security/activateuser.cf file.

This is what the file looks like

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
   <security>
      <activateaccount>
         <email>
            <subject>${msgs['net.datenwerke.rs.passwordpolicy.service.locale.PasswordPolicyMessages']['activateEmailSubject']}</subject>
            <text>${msgs['net.datenwerke.rs.passwordpolicy.service.locale.PasswordPolicyMessages']['activateEmailSalutation']} ${user.getFirstname()} ${user.getLastname()}, &#xD;
&#xD;
${msgs['net.datenwerke.rs.passwordpolicy.service.locale.PasswordPolicyMessages']['activateEmailIntro']}
&#xD;
   ${url}&#xD;
&#xD;
${msgs['net.datenwerke.rs.passwordpolicy.service.locale.PasswordPolicyMessages']['activateEmailAccount']}
&#xD;
   ${msgs['net.datenwerke.rs.passwordpolicy.service.locale.PasswordPolicyMessages']['activateEmailUsername']} ${user.getUsername()}&#xD;
   ${msgs['net.datenwerke.rs.passwordpolicy.service.locale.PasswordPolicyMessages']['activateEmailPassword']} ${password}&#xD;
&#xD;
${msgs['net.datenwerke.rs.passwordpolicy.service.locale.PasswordPolicyMessages']['activateEmailEnd']}
&#xD;
</text>
         </email>
      </activateaccount>
   </security>
</configuration>

Offline

#4 2015-01-06 12:19:28

Thorsten J. Krause
Guest

Re: Cannot Create New Users

Hi Naved,

Just to make sure it's the right thing to look at, can you try changing it into this:
(You have to reload your configuration via the terminal or restart the server after making changes to the file)


<?xml version="1.0" encoding="UTF-8"?>
<configuration>
   <security>
      <activateaccount>
         <email>
            <subject>ASD</subject>
            <text>FGH</text>
         </email>
      </activateaccount>
   </security>
</configuration>

#5 2015-01-06 12:34:11

Naved
Member
Registered: 2014-12-31

Re: Cannot Create New Users

Hi Thorsten,

This is working fine. I believe there is some issue while generating the password.

Offline

#6 2015-01-06 12:52:38

Thorsten J. Krause
Guest

Re: Cannot Create New Users

Okay, so at least the message template are really to blame. Let"s try something a little more complicated

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
   <security>
      <activateaccount>
         <email>
            <subject>ASD</subject>
            <text>${user.getLastname()}</text>
         </email>
      </activateaccount>
   </security>
</configuration>

You probably see, where this is going: Let's add stuff to the template until it breaks. Can you do this on your own?

#7 2015-01-06 13:06:57

Naved
Member
Registered: 2014-12-31

Re: Cannot Create New Users

Hi Thorsten,

It breaks when printing just the username. I'm attaching the log.

net.datenwerke.gxtdto.client.servercommunication.exceptions.ServerCallFailedException: Failed processing config from security/activateuser.cf: Error parsing null
	at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:62)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
	at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110)
	at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
	at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
	at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110)
	at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)
	at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
	at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
	at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
	at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:89)
	at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
	at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
	at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:620)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.IllegalArgumentException: Failed processing config from security/activateuser.cf: Error parsing null
	at net.datenwerke.rs.configservice.service.configservice.ConfigServiceImpl.getConfig(ConfigServiceImpl.java:134)
	at net.datenwerke.rs.configservice.service.configservice.ConfigServiceImpl.getConfig(ConfigServiceImpl.java:79)
	at net.datenwerke.rs.passwordpolicy.service.activateuser.ActivateUserServiceImpl.activateAccount(ActivateUserServiceImpl.java:115)
	at net.datenwerke.rs.passwordpolicy.server.ActivateUserRpcServiceImpl.activateAccount(ActivateUserRpcServiceImpl.java:55)
	at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:66)
	at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110)
	at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38)
	... 35 more
Caused by: org.apache.commons.configuration.ConfigurationException: Error parsing null
	at org.apache.commons.configuration.XMLConfiguration.load(XMLConfiguration.java:950)
	at org.apache.commons.configuration.XMLConfiguration.load(XMLConfiguration.java:908)
	at net.datenwerke.rs.configservice.service.configservice.ConfigServiceImpl.getConfig(ConfigServiceImpl.java:126)
	... 41 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
	at org.apache.commons.configuration.XMLConfiguration.load(XMLConfiguration.java:942)
	... 43 more

Exception in thread "dwdaemon-MaintenanceServiceImpl-8803" java.lang.NullPointerException
	at net.datenwerke.gf.service.maintenance.MaintenanceDaemon.getNextSleepTime(MaintenanceDaemon.java:103)
	at net.datenwerke.rs.utils.daemon.DwDaemonImpl.run(DwDaemonImpl.java:53)
	at java.lang.Thread.run(Thread.java:744)
Exception in thread "dwdaemon-MaintenanceServiceImpl-8779" java.lang.NullPointerException
Exception in thread "dwdaemon-MaintenanceServiceImpl-8804" java.lang.NullPointerException
	at net.datenwerke.gf.service.maintenance.MaintenanceDaemon.getNextSleepTime(MaintenanceDaemon.java:103)
	at net.datenwerke.rs.utils.daemon.DwDaemonImpl.run(DwDaemonImpl.java:53)
	at java.lang.Thread.run(Thread.java:744)
Exception in thread "dwdaemon-MaintenanceServiceImpl-8780" java.lang.NullPointerException

Offline

#8 2015-01-06 13:16:42

Thorsten J. Krause
Guest

Re: Cannot Create New Users

That seems to be a different error, probably some special character that got into the file by using copy/paste.
I'll send you an email.

Board footer

Powered by FluxBB