444 words

Issue #249 - [ObjectDB 2.6.0_04] Unexpected exception (Error 990) com.objectdb.jpa.JpaQuery.getResultList

BugVersion: 2.6.0Priority: NormalStatus: ActiveReplies: 1
#1
2015-03-04 08:30

Hello,

the following exception appears when we execute a query:

 

[ObjectDB 2.6.0_04] Unexpected exception (Error 990)
  Generated by Java HotSpot(TM) 64-Bit Server VM 1.7.0_71 (on Windows 7 6.1).
Please report this error on http://www.objectdb.com/database/issue/new
com.objectdb.o.InternalException: java.lang.NullPointerException: null
java.lang.NullPointerException
    at com.objectdb.o.SFL.ae(SFL.java:873)
    at com.objectdb.o.MST.ae(MST.java:1453)
    at com.objectdb.o.MST.Vg(MST.java:1318)
    at com.objectdb.o.WRA.Vg(WRA.java:381)
    at com.objectdb.o.WSM.Vg(WSM.java:153)
    at com.objectdb.o.OBM.bR(OBM.java:976)
    at com.objectdb.o.OBM.bO(OBM.java:847)
    at com.objectdb.o.OBM.bN(OBM.java:778)
    at com.objectdb.o.QRR.f(QRR.java:139)
    at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:716)
    at com.btc.ep.dal.persist.impl.PersistenceService.getModelElementOrNullByQuery(PersistenceService.java:303)
    at com.btc.ep.base.dal.internal.BaseRepositoryImpl.find(BaseRepositoryImpl.java:70)
    at com.btc.ep.architecture.dal.impl.ArchitectureRepositoryImpl.findScopeByUid(ArchitectureRepositoryImpl.java:131)
    at com.btc.ep.architecture.bl.internal.ArchitectureServiceImpl.getScopeByUid(ArchitectureServiceImpl.java:54)
    at com.btc.ep.formalnotation.bl.impl.services.FormalNotationServiceImpl.getScope(FormalNotationServiceImpl.java:40)
    at com.btc.ep.formalnotation.bl.impl.Utils.notifyMacroAddEvent(Utils.java:124)
    at com.btc.ep.formalnotation.bl.impl.services.MacroServiceImpl.createMacro(MacroServiceImpl.java:652)
    at com.btc.ep.formalnotation.bl.impl.services.MacroServiceImpl.createMacro(MacroServiceImpl.java:188)
    at com.btc.ep.formalnotation.bl.impl.services.MacroServiceImpl.moveMacro(MacroServiceImpl.java:427)
    at com.btc.ep.formalnotation.bl.impl.services.FormalNotationArchitectureServiceImpl.moveFromPoolToArchitecture(FormalNotationArchitectureServiceImpl.java:129)
    at com.btc.ep.formalnotation.bl.impl.services.ArchitectureToPoolListener.handleEvent(FormalNotationArchitectureServiceImpl.java:156)
    at com.btc.ep.core.notification.impl.NotificationListenerHolder.fire(NotificationListenerHolder.java:87)
    at com.btc.ep.core.notification.impl.NotifierBrokerService.fireEventListeners(NotifierBrokerService.java:289)
    at com.btc.ep.core.notification.impl.NotifierBrokerService.send(NotifierBrokerService.java:127)
    at com.btc.ep.core.notification.impl.NotifierServiceImpl.dispatch(NotifierServiceImpl.java:133)
    at com.btc.ep.core.notification.impl.NotifierServiceImpl.send(NotifierServiceImpl.java:138)
    at com.btc.ep.architecture.targetlink.bl.internal.TargetLinkArchitectureImportServiceImpl.importArchitecture(TargetLinkArchitectureImportServiceImpl.java:548)
    at com.btc.ep.architecture.targetlink.xmlbypass.ui.TargetLinkXmlBypassHandler.importSimulinkArchitectureXml_aroundBody0(TargetLinkXmlBypassHandler.java:63)
    at com.btc.ep.architecture.targetlink.xmlbypass.ui.TargetLinkXmlBypassHandler$AjcClosure1.run(TargetLinkXmlBypassHandler.java:1)
    at com.btc.ep.base.transactions.annotations.TransactionAspect.ajc$around$com_btc_ep_base_transactions_annotations_TransactionAspect$1$adc4043cproceed(TransactionAspect.aj:90)
    at com.btc.ep.base.transactions.annotations.TransactionAspect.ajc$around$com_btc_ep_base_transactions_annotations_TransactionAspect$1$adc4043c(TransactionAspect.aj:97)
    at com.btc.ep.architecture.targetlink.xmlbypass.ui.TargetLinkXmlBypassHandler.importSimulinkArchitectureXml(TargetLinkXmlBypassHandler.java:47)
    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.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:247)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:229)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
    at org.eclipse.e4.ui.workbench.renderers.swt.DirectContributionItem.executeItem(DirectContributionItem.java:491)
    at org.eclipse.e4.ui.workbench.renderers.swt.DirectContributionItem.handleWidgetSelection(DirectContributionItem.java:390)
    at org.eclipse.e4.ui.workbench.renderers.swt.DirectContributionItem.access$1(DirectContributionItem.java:374)
    at org.eclipse.e4.ui.workbench.renderers.swt.DirectContributionItem$2.handleEvent(DirectContributionItem.java:331)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:164)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
    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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

 

 

btc_es
btc_es's picture
Joined on 2014-10-20
User Post #25
#2
2015-03-05 14:02

This stack trace indicates an unexpected condition of running a query in a transaction with uncommitted flushed updates, where these flushed updates are not found in the data store where they are expected to be temporarily stored.

As a workaround build 2.6.1_01 runs the query on the last available data, but for a complete solution we may need a test case.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,157

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel