Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335944 - [DB] Better exception for wrong EEnum default value literal
Summary: [DB] Better exception for wrong EEnum default value literal
Status: NEW
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.db (show other bugs)
Version: 4.13   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Stefan Winkler CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-01 05:11 EST by Eike Stepper CLA
Modified: 2020-12-11 10:47 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eike Stepper CLA 2011-02-01 05:11:27 EST
See bug 335942 !!!

In CDO this may lead to:

java.lang.NullPointerException
org.eclipse.net4j.signal.RemoteException: java.lang.NullPointerException
        at org.eclipse.net4j.signal.RequestWithConfirmation.setRemoteException(RequestWithConfirmation.java:128)
        at org.eclipse.net4j.signal.SignalProtocol.handleRemoteException(SignalProtocol.java:423)
        at org.eclipse.net4j.signal.RemoteExceptionIndication.indicating(RemoteExceptionIndication.java:63)
        at org.eclipse.net4j.signal.Indication.doExtendedInput(Indication.java:55)
        at org.eclipse.net4j.signal.Signal.doInput(Signal.java:316)
        at org.eclipse.net4j.signal.Indication.execute(Indication.java:49)
        at org.eclipse.net4j.signal.Signal.runSync(Signal.java:241)
        at org.eclipse.net4j.signal.Signal.run(Signal.java:147)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
        at org.eclipse.emf.cdo.server.internal.db.mapping.CoreTypeMappings$TMEnum.getDefaultValue(CoreTypeMappings.java:94)
        at org.eclipse.emf.cdo.server.db.mapping.AbstractTypeMapping.setValue(AbstractTypeMapping.java:115)
        at org.eclipse.emf.cdo.server.db.mapping.AbstractTypeMapping.setValueFromRevision(AbstractTypeMapping.java:94)
        at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.HorizontalBranchingClassMapping.writeValues(HorizontalBranchingClassMapping.java:635)
        at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.HorizontalBranchingClassMapping.writeRevision(HorizontalBranchingClassMapping.java:807)
        at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor.writeRevision(DBStoreAccessor.java:563)
        at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor.writeRevisions(DBStoreAccessor.java:544)
        at org.eclipse.emf.cdo.spi.server.StoreAccessor.write(StoreAccessor.java:187)
        at org.eclipse.emf.cdo.internal.server.TransactionCommitContext.write(TransactionCommitContext.java:407)
        at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:40)
        at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:1)
        at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(ProgressDistributor.java:96)
        at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicatingCommit(CommitTransactionIndication.java:233)
        at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicating(CommitTransactionIndication.java:90)
        at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndicationWithMonitoring.indicating(CDOServerIndicationWithMonitoring.java:109)
        at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating(IndicationWithMonitoring.java:84)
        at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedInput(IndicationWithResponse.java:90)
        at org.eclipse.net4j.signal.Signal.doInput(Signal.java:316)
        at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:63)
        at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(IndicationWithMonitoring.java:63)
        ... 5 more

Is it possible to come up with an exception that points to where the user is supposed to fix the root cause??
Comment 1 Eike Stepper CLA 2011-06-23 03:57:32 EDT
Moving all open enhancement requests to 4.1
Comment 2 Eike Stepper CLA 2012-08-14 22:55:44 EDT
Moving all open issues to 4.2. Open bugs can be ported to 4.1 maintenance after they've been fixed in master.
Comment 3 Eike Stepper CLA 2013-06-27 04:06:17 EDT
Moving all outstanding enhancements to 4.3
Comment 4 Eike Stepper CLA 2014-08-19 09:23:31 EDT
Moving all open enhancement requests to 4.4
Comment 5 Eike Stepper CLA 2014-08-19 09:35:10 EDT
Moving all open enhancement requests to 4.4
Comment 6 Eike Stepper CLA 2015-07-14 02:18:19 EDT
Moving all open bugzillas to 4.5.
Comment 7 Eike Stepper CLA 2016-07-31 01:01:10 EDT
Moving all unaddressed bugzillas to 4.6.
Comment 8 Eike Stepper CLA 2017-12-28 01:19:42 EST
Moving all open bugs to 4.7
Comment 9 Eike Stepper CLA 2019-11-08 02:14:34 EST
Moving all unresolved issues to version 4.8-
Comment 10 Eike Stepper CLA 2019-12-13 12:54:36 EST
Moving all unresolved issues to version 4.9
Comment 11 Eike Stepper CLA 2020-12-11 10:47:24 EST
Moving to 4.13.