cancel
Showing results for 
Search instead for 
Did you mean: 

vaadin NPE on User Profile

allen_joslin
Champ in-the-making
Champ in-the-making
I'm in the process of integrating the latest alfresco [201605-linux-64] & activiti [5.22.0] community versions on the same CentOS 7 server against a FreeIPA 3.0.0 [openldap] server.  I've finally got my ldap settings straightened out, and turned off tomcat serialization – but I get an NPE when bringing up any UserProfile dialogs that show the user picture.  There are also NPE's when trying to upload a picture.  But our LDAP server doesn't support user Pictures.


<bean class="org.activiti.ldap.LDAPConfigurator">
  <!– Server connection params –>
  <property name="server" value="ldap://ipa.our-domain.com" />
  <property name="port" value="389" />
  <property name="user" value="uid=anonymous,cn=users,cn=accounts,dc=our-domain,dc=com" />
  <property name="password" value="our-secret" />
  <!– Query params –>
  <property name="baseDn" value="dc=our-domain,dc=com" />
  <property name="queryUserByUserId" value="(&amp;(objectClass=inetOrgPerson)(uid={0}))" />
  <property name="queryUserByFullNameLike" value="(&amp;(objectClass=inetOrgPerson)(|({0}=*{1}*)({2}={3})))" />
  <property name="queryGroupsForUser" value="(&amp;(cn=*)(memberUid={0}))" />
  <!– Attribute config –>
  <property name="userIdAttribute" value="uid" />
  <property name="userFirstNameAttribute" value="givenName" />
  <property name="userLastNameAttribute" value="sn" />
  <property name="userEmailAttribute" value="mail" />
  <property name="groupIdAttribute" value="gidNumber" />
  <property name="groupNameAttribute" value="cn" />
</bean>



SEVERE: Terminal error:
java.lang.NullPointerException
   at org.activiti.explorer.ui.profile.ProfilePanel$1.getStream(ProfilePanel.java:153)
   at com.vaadin.terminal.StreamResource.getStream(StreamResource.java:167)
   at com.vaadin.Application.handleURI(Application.java:798)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleURI(AbstractCommunicationManager.java:2289)
   at com.vaadin.terminal.gwt.server.CommunicationManager.handleURI(CommunicationManager.java:377)
   at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.handleURI(AbstractApplicationServlet.java:1099)
   at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:535)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:53)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
   at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2466)
   at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2455)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
   at java.lang.Thread.run(Thread.java:745)
1 REPLY 1

allen_joslin
Champ in-the-making
Champ in-the-making
whoops, meant to post to activiti-engine…