Building the Social Office Trunk using the Liferay IDE

With the release of the Liferay IDE 1.1 I got to thinking it would be really cool to try and build the Social Office Trunk using the Liferay IDE.  I thought I could get a way with using Liferay Portal nightly builds and then build Social Office on top of that.  As it turns out its still easier to check out the Portal trunk and build it manually and then add Social Office on top of that.

In the end I was able to convert all of the components that make up Social Office into Liferay IDE projects and deploy them to a Liferay 6.1 trunk build.

The procedure for building SO Trunk using the Liferay IDE can be found in the Wiki Article: Building the Social Office Trunk using the Liferay IDE

The article assumes that the following Wiki Article was used to setup the initial development environment: Liferay 6.0 Development on Ubuntu Maverick 10.10, but they can be adapted to the platform of your choice.

Blogs
Hi,
I’m getting an ugly “Java null pointer exception” when I try to run Social Office on MySQL. I have tried to find the solution online but there is not much help out there. I have even posted in one of the forums, but there’s been no response in the last two days.

So im just asking everyone who is involved with Social Office at some point or the other.

I’m posting a few excerpts from the log file here. Please let me know if you can suggest me some workaround for this error.

Error Log:

Aug 12, 2011 12:26:31 PM org.apache.tomcat.util.net.NioEndpoint setSocketOptions
SEVERE:
java.lang.NullPointerException
at org.apache.tomcat.util.net.NioEndpoint.setSocketOptions(NioEndpoint.java:1011)
at org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:1204)
at java.lang.Thread.run(Thread.java:595)


Caused by: java.lang.NullPointerException
at com.liferay.so.hook.events.ServicePreAction.run(ServicePreAction.java:98)
at com.liferay.portal.kernel.events.InvokerAction.run(InvokerAction.java:51)
at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:91)
... 74 more

12:28:53,515 ERROR [jsp:?] User ID 10160
12:28:53,515 ERROR [jsp:?] Current URL /web/admin/home
12:28:53,515 ERROR [jsp:?] Referer null
12:28:53,515 ERROR [jsp:?] Remote address 127.0.0.1
12:28:53,515 ERROR [jsp:?] com.liferay.portal.kernel.events.ActionException: java.lang.NullPointerException
com.liferay.portal.kernel.events.ActionException: java.lang.NullPointerException
at com.liferay.portal.events.ServicePreAction.run(ServicePreAction.java:150)
at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:91)
at com.liferay.portal.events.EventsProcessorImpl.process(EventsProcessorImpl.java:68)
at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:63)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:800)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:173)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:103)