Community
Participate
Working Groups
how to reproduce: when loading a CDOResource with a connection aware URI on a ResourceSet and then calling delete(null) on it will throw an NPE, trying to obtain the ViewSet for the ResourceSet. The problem is that the ResourceSet used to load the Resource initially, is not the same as the ResourceSet in the transaction ViewSet. The transaction in this case is provided by a custom ViewProvider. Should it do anything special to make sure there is only one ResourceSet? NPE: java.lang.NullPointerException at org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl.removeFromResourceSet(CDOResourceImpl.java:1460) at org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl.cdoInternalPostDetach(CDOResourceImpl.java:401) at org.eclipse.emf.internal.cdo.view.CDOStateMachine.detach(CDOStateMachine.java:289) at org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl.detached(CDOResourceImpl.java:1514) at org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl$ContentsCDOList.inverseRemove(CDOResourceImpl.java:1773) at org.eclipse.emf.common.notify.impl.DelegatingNotifyingListImpl.remove(DelegatingNotifyingListImpl.java:725) at org.eclipse.emf.common.util.DelegatingEList.remove(DelegatingEList.java:500) at org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl.delete(CDOResourceImpl.java:1445) at org.eclipse.emf.edapt.cdo.tests.CDOMigrationTestBase.clear(CDOMigrationTestBase.java:254)
Opening the transaction with the provided ResourceSet in CDOViewProvider.getView() solves the problem. please close.
Moving all open bugzillas to 4.5.
Moving all unaddressed bugzillas to 4.6.
Moving all open bugs to 4.7
Moving all unresolved issues to version 4.8-
Moving all unresolved issues to version 4.9
Moving to 4.13.