| Summary: | NPE attempting to set profile email address | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | John Arthorne <john.arthorne> |
| Component: | Server | Assignee: | Malgorzata Janczarska <malgorzata.tomczyk> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 0.4 | ||
| Target Milestone: | 0.4 M2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Here is the server configuration from that build:
mail.smtp.host=mail.eclipse.org
mail.smtp.port=25
mail.smtp.user=orion-admin
mail.smtp.password={password}
mail.smtp.auth=false
mail.from=orion-admin@eclipse.org
Strange, it seems that this invocation: UserAdminActivator.getDefault().getBundleContext().getBundle().getEntry(fileName) returned null. I used a path relative to top project folder in fileName. I changed it to absolute path, so maybe this will help. I can't reproduce it on localhost. I'm pretty sure that file exists. Could you verify after build tomorrow if NPE is still thrown? (In reply to comment #2) > I used a path relative to top project folder in fileName. I > changed it to absolute path, so maybe this will help. I can't reproduce it on > localhost. I'm pretty sure that file exists. > Could you verify after build tomorrow if NPE is still thrown? A relative path is correct. The problem is that you haven't included the "emails" folder in build.properties. The bin.includes needs to add this folder so that the built bundle will include it. (In reply to comment #3) > A relative path is correct. The problem is that you haven't included the > "emails" folder in build.properties. The bin.includes needs to add this folder > so that the built bundle will include it. Fixed: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=b1d95f972deed6a6b6174e7307be939ff0fdda97 Thanks John! I didn't even think about it. . |
I20120118-2230 Attempting to set my email address on the profile page failed. I found this in the server log: java.lang.NullPointerException at org.eclipse.core.internal.runtime.Activator.getURLConverter(Activator.java:333) at org.eclipse.core.runtime.FileLocator.resolve(FileLocator.java:227) at org.eclipse.orion.server.useradmin.UserEmailUtil$EmailContent.<init>(UserEmailUtil.java:63) at org.eclipse.orion.server.useradmin.UserEmailUtil.sendEmailConfirmation(UserEmailUtil.java:132) at org.eclipse.orion.server.useradmin.servlets.UserHandlerV1.handleUserPut(UserHandlerV1.java:258) at org.eclipse.orion.server.useradmin.servlets.UserHandlerV1.handleRequest(UserHandlerV1.java:95) at org.eclipse.orion.server.useradmin.servlets.UserHandlerV1.handleRequest(UserHandlerV1.java:1) at org.eclipse.orion.server.useradmin.servlets.ServletUserHandler.handleRequest(ServletUserHandler.java:49) at org.eclipse.orion.server.useradmin.servlets.ServletUserHandler.handleRequest(ServletUserHandler.java:1) at org.eclipse.orion.server.useradmin.servlets.UserServlet.doGet(UserServlet.java:63) at org.eclipse.orion.server.useradmin.servlets.UserServlet.doPut(UserServlet.java:76)