We have a Role BO which links to multiple Skill records that is to say each role can have zero or more skills.
We then create a Positions within a WorkArea based on a Role. At this point we copy the Skills linked to the Role and create PositionSkills linked to the new Position, with a process.
The copy works.
The New Position is created, and the correct number of Skills are copied from the Role down to the Position, however after the copy we get a Null Pointer exception which appears unrelated to the process.
The Null Pointer error message appears to relate to the New form and stays displayed with the data entered.
The error only appears in the C:\AwareIM\Tomcat\logs\wrapper.log as
INFO | jvm 1 | 2010/05/23 13:04:19 | Got XML request <root><new_reference_layout_action ref_owner_name="WorkAreas" ref_owner_id="248011" ref_attr_name="Positions" object_to_create="Positions" form_name="Detail" section_name="Main" />
INFO | jvm 1 | 2010/05/23 13:04:19 | </root>
INFO | jvm 1 | 2010/05/23 13:04:30 | WebServlet URL got request with params:
INFO | jvm 1 | 2010/05/23 13:04:34 | Got XML request <root><new_reference_action object_name="Positions" object_id="-32602739" object_version="1" form_name="New" ref_owner_name="WorkAreas" ref_owner_id="248011" ref_attr_name="Positions" >
INFO | jvm 1 | 2010/05/23 13:04:34 | <post_attribute_data attribute_name="Name" >twoone</post_attribute_data>
INFO | jvm 1 | 2010/05/23 13:04:34 | <post_attribute_data attribute_name="RoleID" >Roles:247921</post_attribute_data>
INFO | jvm 1 | 2010/05/23 13:04:34 | <post_attribute_data attribute_name="ManagedBy" ></post_attribute_data>
INFO | jvm 1 | 2010/05/23 13:04:34 | <post_attribute_data attribute_name="NumberOf" >1</post_attribute_data>
INFO | jvm 1 | 2010/05/23 13:04:34 | </new_reference_action>
INFO | jvm 1 | 2010/05/23 13:04:34 | </root>
INFO | jvm 1 | 2010/05/23 13:05:02 | Exception thrown java.lang.NullPointerException null
INFO | jvm 1 | 2010/05/23 13:05:02 | java.lang.NullPointerException
INFO | jvm 1 | 2010/05/23 13:05:02 | at com.bas.webapp.thin.a.b.t.a(Unknown Source)
INFO | jvm 1 | 2010/05/23 13:05:02 | at com.bas.webapp.thin.a.c.a(Unknown Source)
INFO | jvm 1 | 2010/05/23 13:05:02 | at com.bas.webapp.thin.a.c.a(Unknown Source)
INFO | jvm 1 | 2010/05/23 13:05:02 | at com.bas.webapp.thin.servlets.WebInterfaceServlet.doPost(Unknown Source)
INFO | jvm 1 | 2010/05/23 13:05:02 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
INFO | jvm 1 | 2010/05/23 13:05:02 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
INFO | jvm 1 | 2010/05/23 13:05:02 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
INFO | jvm 1 | 2010/05/23 13:05:02 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188-)
INFO | jvm 1 | 2010/05/23 13:05:02 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
INFO | jvm 1 | 2010/05/23 13:05:02 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
INFO | jvm 1 | 2010/05/23 13:05:02 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
INFO | jvm 1 | 2010/05/23 13:05:02 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
INFO | jvm 1 | 2010/05/23 13:05:02 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108-)
INFO | jvm 1 | 2010/05/23 13:05:02 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
INFO | jvm 1 | 2010/05/23 13:05:02 | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
INFO | jvm 1 | 2010/05/23 13:05:02 | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
INFO | jvm 1 | 2010/05/23 13:05:02 | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528-)
INFO | jvm 1 | 2010/05/23 13:05:02 | at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
INFO | jvm 1 | 2010/05/23 13:05:02 | at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
INFO | jvm 1 | 2010/05/23 13:05:02 | at java.lang.Thread.run(Unknown Source)