From: Alexander L. (JIRA) <web...@jp...> - 2006-11-29 14:07:40
|
[ http://www.jpox.org/servlet/jira/browse/CORE-3025?page=comments#action_13446 ] Alexander Ley commented on CORE-3025: ------------------------------------- Andy, many Thanks for the fix. One problem with the fix we have is, that there is a NullPointerException in line 1259 of KFListStore for classes without order-mapped-by. It looks like orderMapping != null and orderMapping.getFieldMetaData() == null. Can you please have a look on it? I have tested this with the SNAPSHOTS from 28. and 29. November. Stacktrace: at org.jpox.store.rdbms.scostore.FKListStore$2.fetchFields(FKListStore.java:1259) at org.jpox.state.StateManagerImpl.<init>(StateManagerImpl.java:583) at org.jpox.state.StateManagerFactory.newStateManager(StateManagerFactory.java:105) at org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:1183) at org.jpox.AbstractPersistenceManager.makePersistentInternal(AbstractPersistenceManager.java:1243) at org.jpox.store.rdbms.scostore.FKListStore.validateElementForWriting(FKListStore.java:1231) at org.jpox.store.rdbms.scostore.FKListStore.internalAdd(FKListStore.java:772) at org.jpox.store.rdbms.scostore.AbstractListStore.add(AbstractListStore.java:340) at org.jpox.sco.List.add(List.java:788) at de.isys.lvs.domain.warehouse.bo.impl.StockUnitImpl.addPlacement(StockUnitImpl.java:399) at de.isys.lvs.domain.warehouse.service.impl.WarehouseServiceImpl.createPlacePlacement(WarehouseServiceImpl.java:1042) at de.isys.lvs.facade.impl.WarehouseFacadeImpl.createPlacement(WarehouseFacadeImpl.java:350) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:203) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:162) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:209) at $Proxy2.createPlacement(Unknown Source) at de.isys.lvs.gui.warehouse.stock.transfer.TransferModel.createPlacement(TransferModel.java:161) at de.isys.lvs.gui.warehouse.stock.transfer.TransferDetailView$StartPerformTransfer.construct(TransferDetailView.java:286) at de.isys.gui.SwingWorker3$2.run(SwingWorker3.java:230) at java.lang.Thread.run(Unknown Source) > FK list with <order mapped-by>: IDX field not set correctly > ----------------------------------------------------------- > > Key: CORE-3025 > URL: http://www.jpox.org/servlet/jira/browse/CORE-3025 > Project: Core > Type: Bug > Versions: 1.1.1 > Environment: JPOX SNAPSHOT from 13 October 2006, Oracle 10.2 > Reporter: Alexander Ley > Assignee: Andy Jefferson > Fix For: 1.2.0-beta-1, 1.1.5 > Attachments: jpoxElementIdx.zip > > With > <field name="elements" ...> > <collection .../> > <order mapped-by="idxField"/> > </field> > the idxField in the Element class is used for the definition of the order of the elements. After adding of elements to the list of the Holder > class all idxField are 0 instead of 0, 1, 2, ... > See test case. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://www.jpox.org/servlet/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |