Entities with booleans in JPA Diagram

Hi,
I'm trying to use the EJB/JPA Diagram in jdev 11.1.1.2.0 with entities that have boolean field and, everytime I add them to the diagram, jdev crashes. If I remove the booleans, everything works.
Does anyone has seen that? It is easy to replicate:
1) Create a new entity in java editor with booleans members;
2) Create a new EJB/JPA diagram
3) Add the entity to the diagram
The error details are:
Performing action Grid[ from oracle.modeler.addin.ModelerEditor ]
Invoking command: Layout
Performing action Hierarchical (Bottom to Top)[ from oracle.modeler.addin.ModelerEditor ]
Invoking command: Layout
Performing action Symmetrical[ from oracle.modeler.addin.ModelerEditor ]
Invoking command: Layout
Performing action Hierarchical (Bottom to Top)[ from oracle.modeler.addin.ModelerEditor ]
Invoking command: Layout
Performing action Properties...[ from oracle.modeler.addin.ModelerEditor ]
Performing action Properties...[ from oracle.modeler.addin.ModelerEditor ]
Performing action Save[ from oracle.modeler.addin.ModelerEditor ]
Invoking command: [ from oracle.modeler.addin.ModelerEditor ]
java.lang.NullPointerException
o.j.ejb.Entity30Helper.gatherEntity30Fields(Entity30Helper.java:205)
o.j.ejb.EjbClassEngine.getEjbFields(EjbClassEngine.java:301)
o.j.ejb.EjbClassEngine.getEjbFields(EjbClassEngine.java:277)
o.j.ejb.BaseEjbEngine.gatherEjbFields(BaseEjbEngine.java:1536)
o.j.ejb.BaseEntityEngine.getFields(BaseEntityEngine.java:400)
o.j.ejbmodeler.mediator.EjbModelerNodeMediator.loadFields(EjbModelerNodeMediator.java:145)
o.j.ejbmodeler.mediator.EjbModelerNodeMediator.updateGraphic(EjbModelerNodeMediator.java:101)
o.modeler.uml.config.BaseMediator.handleUpdate(BaseMediator.java:367)
o.modeler.uml.config.BaseMediator.updateGraphic(BaseMediator.java:234)
o.modeler.uml.config.MGMediator.updateGraphic(MGMediator.java:139)
o.modeler.uml.config.ClassifierMediator.updateGraphic(ClassifierMediator.java:27)
o.modeler.mediation.MediationManager$GraphicUpdater.apply(MediationManager.java:640)
ilog.views.IlvManager.applyToObject()
o.modeler.mediation.MediationManager$GraphicUpdater.run(MediationManager.java:628)
o.modeler.mediation.MediationManager.updateGraphics(MediationManager.java:594)
o.modeler.mediation.MediationManager.processEvent(MediationManager.java:510)
o.modeler.mediation.MediationEvent.process(MediationEvent.java:185)
o.modeler.mediation.MediationManager.dispatchEvents(MediationManager.java:439)
o.modeler.mediation.MediationManager.access$100(MediationManager.java:86)
o.modeler.mediation.MediationManager$1.run(MediationManager.java:356)
j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
j.a.EventQueue.dispatchEvent(EventQueue.java:597)
j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
j.a.EventDispatchThread.run(EventDispatchThread.java:122)
java.lang.NullPointerException
o.j.ejb.Entity30Helper.gatherEntity30Fields(Entity30Helper.java:205)
o.j.ejb.EjbClassEngine.getEjbFields(EjbClassEngine.java:301)
o.j.ejb.EjbClassEngine.getEjbFields(EjbClassEngine.java:277)
o.j.ejb.BaseEjbEngine.gatherEjbFields(BaseEjbEngine.java:1536)
o.j.ejb.BaseEntityEngine.getFields(BaseEntityEngine.java:400)
o.j.ejb.BaseEntityEngine.getEjb3Relationships(BaseEntityEngine.java:1413)
o.j.ejbmodeler.id.EjbElementReference.populateThatEndIfOwningSide(EjbElementReference.java:248)
o.j.ejbmodeler.id.EjbElementReference.get(EjbElementReference.java:145)
o.j.ejbmodeler.config.RelationshipConfig$1.findEnds(RelationshipConfig.java:134)
o.modeler.dif.ModelerGraphicBridge.verifyConnections(ModelerGraphicBridge.java:1053)
o.modeler.dif.ModelerGraphicBridge.verifyConnections(ModelerGraphicBridge.java:1009)
o.j.ejbmodeler.mediator.EntityMediator.loadEntityRelationships(EntityMediator.java:138)
o.j.ejbmodeler.mediator.EntityMediator.mediate(EntityMediator.java:86)
o.j.ejbmodeler.mediator.EjbModelerNodeMediator.updateGraphic(EjbModelerNodeMediator.java:104)
o.modeler.uml.config.BaseMediator.handleUpdate(BaseMediator.java:367)
o.modeler.uml.config.BaseMediator.updateGraphic(BaseMediator.java:234)
o.modeler.uml.config.MGMediator.updateGraphic(MGMediator.java:139)
o.modeler.uml.config.ClassifierMediator.updateGraphic(ClassifierMediator.java:27)
o.modeler.mediation.MediationManager$GraphicUpdater.apply(MediationManager.java:640)
ilog.views.IlvManager.applyToObject()
o.modeler.mediation.MediationManager$GraphicUpdater.run(MediationManager.java:628)
o.modeler.mediation.MediationManager.updateGraphics(MediationManager.java:594)
o.modeler.mediation.MediationManager.processEvent(MediationManager.java:510)
o.modeler.mediation.MediationEvent.process(MediationEvent.java:185)
o.modeler.mediation.MediationManager.dispatchEvents(MediationManager.java:439)
o.modeler.mediation.MediationManager.access$100(MediationManager.java:86)
o.modeler.mediation.MediationManager$1.run(MediationManager.java:356)
j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
j.a.EventQueue.dispatchEvent(EventQueue.java:597)
j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
j.a.EventDispatchThread.run(EventDispatchThread.java:122)
(sorry for my english)

uhmm... I guess not, the specification says:
"The persistent fields or properties of an entity may be of the following types: Java primitive types; java.lang.String; other Java serializable types (including wrappers of the primitive types, java.math.BigInteger, (...) "
so it should accept the Booleans or booleans members. I've tried both and got the same problem. It looks more like a bug in the layout designer.

Similar Messages

  • Check box with Boolean data type is not behaving properly

    Hi,
    I create a sample application with one entity driven view object with two attributes. One is of String data type [Value will be Y/N] and another (transient) attribute with Boolean data type. I planned to bind this boolean data type attribute to UI. I overridded the view row impl class and included setting of boolean attribute inside the setter of String attribute. Also in the getter of boolean attribute, added code to check the string attribute and return true/false based on that. Everything is working fine in application module tester. But when i test the same in view controller project in a page, it is not working. Always Check box component is not checked eventhough when i explicitly check it.
    [NOTE: I have given the control hint of Boolean attribute as check_box. Also i don't want selected/unselected entries in the page def file. That's why followed this approach]
    Have i missed out anything? Why this behaviour.
    Thanks in advance.
    Raguraman

    what is the value that is going in when u check it.. did u debug it.. is the viewRowimps setter and getter getting called.. and is it having the right value set and got.. and ur sure that ur using selectBooleanCheckBox..
    ur binding the checkbox to the transient value right??

  • How to call a VB dll with boolean parameter in labview

    hi ,
         I havea problem with labview calling dll.
         I need to call a customer's dll(VB) , but I find labview have no  boolean type parameter, so how can I do it ?
         I have used labview 7.1 and only have dll without source code.
    sonic
    Sonic
    Diffrent Strokes for Different Folks

    hi   semercurio :
        I have bulid a dll by lv 7.1 with boolean and  then call lt  from LV7.1,but i have some issue of it .
        I also use U8 and I16 type and all pop up a errer message,you can see it from accathed.
        do you have any suggestion about it ?
    Sonic
    Diffrent Strokes for Different Folks
    Attachments:
    15.JPG ‏17 KB
    SharedLib.h ‏1 KB

  • I am stumped! Can't open library module-  failure message and can't start Ligthroom 5.7 anymore: "[String "unarchived table s"]:6 : attempt to compare nil with boolean. - Nothing is working anymore! Who can help me?

    My system:
    Windows 7
    Lightroom 5.7
    I allready tried to load an older catalog backup, but that does not help.
    The failure message occurs during the starting process while trying to Open the library:
    "[String "unarchived table s"]:6 : attempt to compare nil with boolean.
    Nothing is working anymore! Who can help me?
    Thank you for your help!

    Ask on the Microsoft forums, as it's their software you're having problems with:
    http://answers.microsoft.com/en-us/mac

  • Problem mit JPA Diagram Editor

    Mein Eclipse JPA Diagram Editor bringt seit kurzem eine Fehlermeldung: Failed to create the part's controls
    Ich habe schon verschiedene Dinge ausprobiert - Projekt neu aufsetzen - Diagram Editor deinstallieren und installieren - Alles leider ohne Erfolg.
    Wer hat einen Rat? Hier die Fehlerdetails:
    java.lang.NullPointerException
         at org.eclipse.draw2d.Figure.add(Figure.java:148)
         at org.eclipse.draw2d.Figure.add(Figure.java:174)
         at org.eclipse.graphiti.ui.internal.parts.PictogramElementDelegate.createFigureForPictogramElement(PictogramElementDelegate.java:859)
         at org.eclipse.graphiti.ui.internal.parts.PictogramElementDelegate.createFigure(PictogramElementDelegate.java:205)
         at org.eclipse.graphiti.ui.internal.parts.ShapeEditPart.createFigure(ShapeEditPart.java:631)
         at org.eclipse.graphiti.ui.internal.parts.ContainerShapeEditPart.createFigure(ContainerShapeEditPart.java:104)
         at org.eclipse.gef.editparts.AbstractGraphicalEditPart.getFigure(AbstractGraphicalEditPart.java:494)
         at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addChildVisual(AbstractGraphicalEditPart.java:208)
         at org.eclipse.graphiti.ui.internal.parts.ContainerShapeEditPart.addChildVisual(ContainerShapeEditPart.java:170)
         at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:211)
         at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:781)
         at org.eclipse.graphiti.ui.internal.parts.ShapeEditPart.refreshChildren(ShapeEditPart.java:642)
         at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:726)
         at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:644)
         at org.eclipse.graphiti.ui.internal.parts.ShapeEditPart.refresh(ShapeEditPart.java:559)
         at org.eclipse.graphiti.ui.internal.parts.DiagramEditPart.refresh(DiagramEditPart.java:185)
         at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:253)
         at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:223)
         at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:212)
         at org.eclipse.gef.editparts.SimpleRootEditPart.setContents(SimpleRootEditPart.java:105)
         at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:617)
         at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:626)
         at org.eclipse.graphiti.ui.editor.DiagramEditor.initializeGraphicalViewer(DiagramEditor.java:775)
         at org.eclipse.graphiti.ui.editor.DiagramEditor.createGraphicalViewer(DiagramEditor.java:735)
         at org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(GraphicalEditor.java:171)
         at org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.createPartControl(GraphicalEditorWithFlyoutPalette.java:75)
         at org.eclipse.graphiti.ui.editor.DiagramEditor.createPartControl(DiagramEditor.java:643)
         at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:129)
         at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:95)
         at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:300)
         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:56)
         at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
         at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:837)
         at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
         at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:318)
         at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:240)
         at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
         at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
         at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
         at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
         at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:889)
         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:623)
         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
         at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1042)
         at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
         at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
         at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
         at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
         at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
         at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
         at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
         at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
         at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
         at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
         at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
         at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
         at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
         at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
         at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
         at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81)
         at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:57)
         at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
         at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
         at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:418)
         at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:385)
         at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:578)
         at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:314)
         at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:962)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3071)
         at org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:2996)
         at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2978)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2974)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2933)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2916)
         at org.eclipse.ui.ide.IDE.openEditor(IDE.java:443)
         at org.eclipse.jpt.jpadiagrameditor.ui.internal.modelintegration.ui.OpenJpaDiagramActionDelegate.openDiagramEditor(OpenJpaDiagramActionDelegate.java:113)
         at org.eclipse.jpt.jpadiagrameditor.ui.internal.modelintegration.ui.OpenJpaDiagramActionDelegate$OpenEditorRunnable.run(OpenJpaDiagramActionDelegate.java:88)
         at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:164)
         at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:158)
         at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
         at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
         at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
         at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
         at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
         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:629)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

    For support on the JPA Diagram Editor you should post on the Eclipse Dali forum: http://www.eclipse.org/forums/index.php?t=thread&frm_id=113.
    --Shaun                                                                                                                                                                                                                                                                                                               

  • Aggregation Befre Calculation with Boolean Operator (BW3.5)

    Dear All,
      Here I am trying to create a 'Calculated Key Figure' with some logical expression to verify the value of other columns(ie: stock value = 0, market value = 0...etc) and I would like to calculate the result 'Before Aggregation'; Somehow, the calculated key figure with Boolean Operator can not be chosen as 'Before Aggregation'. I tried to create 2nd CKF to include the 1st CKF so that I am able to select the 2nd CKF as 'Before Aggregation', but the result just dont seem to be right.
      Any Idea to do this kinda calculation? Thanks a lot.
    B.R
    Charlie

    Instead of creating a calculated Key Figure, create a formula in the query and try whether it is giving a desired output??

  • How to check object with boolean

    hi
    i have a JComboBox
    i have added the items to JComboBox as {"true", "false"}
    my problem is how check with boolean
    like i was trying like this
         public boolean getBooleanValuesOfComboBox() {
              if(Boolean.TRUE.equals(_comboBox.getSelectedItem())) {
                   return true;
              return false;
    how to do this JComboBox getSelectedItem will return object... how to check
    thank u
    null

    > i have a JComboBox
    i have added the items to JComboBox as {"true",
    "false"}
    You could store Boolean objects in that combo-box instead of Strings.

  • Full text Search Issue with Boolean AND Search in 2012 server

    We are trying to use CONTAINSTABLE function with BOOLEAN AND search, but unable to get expected results in sql server 2012.
     If use BOOLEAN OR search we get expected results.
    Full text indexed table is having more than 10 millions of records. we checked index fragmentation level is 82%. then we done Rebuild. Even after rebuild, unable to fetch expected results with AND SEARCH.
    The below query is used
    SELECT ft.* FROM FT_ROWS ft
    INNER JOIN CONTAINSTABLE(FT_ROWS, summary,
    ' "manifest" AND "version" ') AS key_tbl
    ON ft.log_id = key_tbl.[key]
    if we remove ( "manifest" AND ) from the search string, then getting some results but AND search is not returning expected results.
    Please help any suggestion
    kkprasad

    The explanation that is closest at hand is that you have no documents with both of these words in them.
    An alternate explanation is that you have accidently entered "manitest" into your stoplist.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • HANA XSODATA Create multiple entities with associations in single LUW

    Hi all,
    Is it possible to create multiple entities with associations in a single LUW.
    For e.g. we have a Sales Order and Item. This is modelled as 2 DB tables and 2 entities.
    In XSOData I have defined association relationship between them.My XSOData definition is like this...
    "XSDemo.DB::SO"    as "SalesOrder"
       navigates ("SalesOrder_OrderItem" as "SOItem");
       "XSDemo.DB::ITEM" as "OrderItem";
       association "SalesOrder_OrderItem" principal "SalesOrder"("OrderID") multiplicity "1"
       dependent "OrderItem"("OrderID") multiplicity "*";
    My post URI is
    http://server:port/SODemo.xsodata/SalesOrder
    My data is as follows
      "ID": 1,
      "Customer": 123,
      "Desc": "Test SO",
      "SOItem": [
          "Material": "MAT1",
          "Qty": "10",
          "Item": "10"
          "Material": "MAT2",
          "Qty": "20",
          "Item": "5"
    From the post, I get a response 201 (Created). However, only the Sales Order is created. The Items are not created.
    My question is:
    1. Is it possible to create Order and Item together in a single post call ?? If yes, how. What is the syntax of XSOData / Post Request
    2. If it is not possible to create Order and Item together in a single post call, then how do we ensure atomicity of the transaction.
    For e.g. What is Order creation is success and then the Item creation fails ...
    How can we ensure that all is committed or none is committed.
    3. From the documentation I understand that this might be possible using modification exits... However, I want to achieve this without using modification exits...
    Is this possible or not ?

    Hi Thomas,
    Actually the problem is that Sales Order and Order Items are modeled as different entities... So, XSOData allows creation of Sales Order Item independently WITHOUT creation of a sales order header.
    For e.g. URL : http://server:port/SODemo.xsodata/OrderItem
    Ideally, the XSOData should implement a logic that a Dependent entity cannot be created without a Principal entity.
    For e.g. using a Sales order BAPI you cannot create a sales order item alone !
    Similarily, since XSOData is the end point service for the consumer, the XSOData should have the logic to ensure that both principal and dependent entities are created together.
    Otherwise, in the UI the developer has to ensure that the post body is build correctly...

  • [JPA] Manually instantiating entities with lazy associations. How?

    Hi,
    I need to construct a dynamic native query.
    (I can't use JPQL, because I need to call stored procedures. I can't use a named native query because I'm working on a Search Page and the users may enter various search criteria. A static named query won't be flexible enough for me. I must generate a query on-the-fly.)
    So, I don't know how to make the dynamic native query to produce entities for me, because I don't know how to specify resultSetMapping for it. So, I'm forced to instantiate the entities manually.
    But now I've run upon another problem. The entities have associations. I need them to be LAZY associations. So, how can I manually instantiate an entity in which the associations aren't triggered yet? I think it's not possible but I figured that it doesn't hurt to ask.
    I seem to have a HUGE problem in my hands.
    (If only JPQL could call stored procedures, I'd have constructed a JPQL dynamic query and that would be it. Come to think of it, it all boils down to generating a SQL string from the JPQL string. And generating a stored procedure call inside that SQL string shouldn't be that hard, especially having in mind how many other hurdles have already been overcome by the JPQL parsers. But alas, it's not possible. At least I don't know of a way to do it.)
    Best regards,
    Bisser

    Ooops, sorry about my post above. I just noticed that I can specify the resultClass or the resultSetMapping as a parameter to the EntityManager.createNativeQuery(...) method.

  • Weird issue with merge using JPA...?

    Hi all,
    I have the following code snippet (HsTrans has a manytoone relation with Hss), Hss is the parent
                HsTrans hsTrans = new HsTrans();
             Hss hss=em.find(Hss.class, studyId);
             hsTrans.setStudy(studyId);
             hsTrans.setState(state.toString());
             hsTrans.setTimestamp(timeOfState);
             hss.getHsTrans().add(hsTrans); //Add child to aprent
             hsTrans.setHss(hss);                //Child Parent
                em.merge(hss);  // Does not work Throws a Unique Key violation error
    Whereas replacing the same with this
             Hss hss2=hsStudyTrans.getHsStudy(); 
                em.merge(hss2); // Works fine
       Does anyone know if this is a JPA bug or some other issue.
    Thx
    VR

    RainaV wrote:
    Does anyone know if this is a JPA bug or some other issue.JPA is a specification, so it has no bugs (only design flaws). If there is a bug somewhere it is in the persistence provider you are using, but most likely it is just you not understanding how merge and transaction management in general works. I've written dozens of applications now that use JPA and I think I really needed merge a grand total of once.
    In this snippet you provide, you are apparently making the 'hss' object managed through the em.find() method. This means that any changes you make to it will be made persistent as soon as the transaction is committed. You don't need to call merge() at all, you only call that on entities that are detached.
    Now for the actual problem of unique key violation, I don't even see you committing hsTrans. Change the code to this:
    HsTrans hsTrans = new HsTrans();
    Hss hss=em.find(Hss.class, studyId);
    hsTrans.setStudy(studyId);
    hsTrans.setState(state.toString());
    hsTrans.setTimestamp(timeOfState);
    hsTrans.setHss(hss); // set managed hss object
    em.persist(hsTrans); // persist hsTrans and make it managed
    hss.getHsTrans().add(hsTrans); // add the new managed hsTrans to the hss mapped collection

  • Deployment of SCA composite with Spring and JPA fails on WLS 10.3.3

    Hi,
    We want to use JPA as Persistence Layer (EclipseLink as Persistence Provider) in a Spring managed Bean in a SOA Composite (SCA).
    We configured our persistence.xml and spring configuration as described below.
    We are using JDeveloper 11.1.1.3 and WLS 10.3.3 with SOA Suite 11.1.1.3.
    The Deployment fails with the following Exception
    +Could not instantiate bean class [org.springframework.instrument.classloading.weblogic.WebLogicLoadTimeWeaver]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Could not initialize WebLogic ClassLoader because WebLogic 10 API classes are not available+
    We are not sure how to deal with the "WebLogic 10 API classes are not available" message. Is there a lib we have to add to the SCA composite or do we have to change the WLS configuration somehow?
    We already tried a lot of configurations of persistence.xml and spring but nothing worked so far.
    Exception
    Caused By: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loadTimeWeaver' defined in URL [oramds:/deployed-composites/default/ProjectBServiceSCA_rev1.0/ProjectBServiceSCA.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.instrument.classloading.weblogic.WebLogicLoadTimeWeaver]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Could not initialize WebLogic ClassLoader because WebLogic 10 API classes are not available
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
            at java.security.AccessController.doPrivileged(Native Method)
            Truncated. see log file for complete stacktrace
    Caused By: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.instrument.classloading.weblogic.WebLogicLoadTimeWeaver]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Could not initialize WebLogic ClassLoader because WebLogic 10 API classes are not available
            at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
            at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
            Truncated. see log file for complete stacktrace
    Caused By: java.lang.IllegalStateException: Could not initialize WebLogic ClassLoader because WebLogic 10 API classes are not available
            at org.springframework.instrument.classloading.weblogic.WebLogicClassLoader.<init>(WebLogicClassLoader.java:70)
            at org.springframework.instrument.classloading.weblogic.WebLogicLoadTimeWeaver.<init>(WebLogicLoadTimeWeaver.java:57)
            at org.springframework.instrument.classloading.weblogic.WebLogicLoadTimeWeaver.<init>(WebLogicLoadTimeWeaver.java:46)
            at sun.reflect.GeneratedConstructorAccessor768.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
            Truncated. see log file for complete stacktrace
    Caused By: java.lang.NoSuchMethodException: oracle.classloader.PolicyClassLoader.addInstanceClassPreProcessor(weblogic.utils.classloaders.ClassPreProcessor)
            at java.lang.Class.getMethod(Class.java:1605)
            at org.springframework.instrument.classloading.weblogic.WebLogicClassLoader.<init>(WebLogicClassLoader.java:62)
            at org.springframework.instrument.classloading.weblogic.WebLogicLoadTimeWeaver.<init>(WebLogicLoadTimeWeaver.java:57)
            at org.springframework.instrument.classloading.weblogic.WebLogicLoadTimeWeaver.<init>(WebLogicLoadTimeWeaver.java:46)
            at sun.reflect.GeneratedConstructorAccessor768.newInstance(Unknown Source)
            Truncated. see log file for complete stacktracepersistence.xml
    <?xml version="1.0" encoding="Cp1252" ?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
                 version="1.0">
        <persistence-unit name="SCASpringJPATest">
        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
        <jta-data-source>performanceTestDS</jta-data-source>
        <class>de.prototype.entities.Mainproject</class>
        <class>de.prototype.entities.Project</class>
        <properties>
          <property name="eclipselink.target-server" value="WebLogic_10"/>
          <property name="javax.persistence.jtaDataSource"
                    value="performanceTestDS"/>
        </properties>
      </persistence-unit>
    </persistence>spring.xml
    <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:util="http://www.springframework.org/schema/util"
           xmlns:jee="http://www.springframework.org/schema/jee"
           xmlns:lang="http://www.springframework.org/schema/lang"
           xmlns:aop="http://www.springframework.org/schema/aop"
           xmlns:tx="http://www.springframework.org/schema/tx"
           xmlns:sca="http://xmlns.oracle.com/weblogic/weblogic-sca"
           xmlns:context="http://www.springframework.org/schema/context"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/tool http://www.springframework.org/schema/tool/spring-tool-2.5.xsd http://xmlns.oracle.com/weblogic/weblogic-sca META-INF/weblogic-sca.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
      <!--Spring Bean definitions go here-->
      <bean id="entityManagerFactory"
            class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
        <property name="persistenceUnitName" value="ProjectBServiceSCA"/>
        <property name="loadTimeWeaver">
          <bean class="org.springframework.instrument.classloading.weblogic.WebLogicLoadTimeWeaver"/>
        </property>
        <property name="jpaVendorAdapter">
          <bean class="org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter">
            <property name="showSql" value="true"/>
            <property name="generateDdl" value="true"/>
            <property name="database" value="ORACLE"/>
          </bean>
        </property>
      </bean>
      <bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"/>
      <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/>
      <tx:annotation-driven transaction-manager="txManager"/>
      <bean id="txManager"
            class="org.springframework.transaction.jta.WebLogicJtaTransactionManager">
        <property name="entityManagerFactory" ref="entityManagerFactory"/>
      </bean>
      <bean class="de.prototype.service.ProjectBServiceSCAImpl"
            id="projectBService">
        <property name="entityManagerFactory" ref="entityManagerFactory"/>
      </bean>
      <sca:service target="projectBService" name="projectBServiceSCA"
                   type="de.prototype.service.IProjectBServiceSCA"/>
    </beans>

    We solved the problem by using the org.springframework.instrument.classloading.oc4j.OC4JLoadTimeWeaver. But we are not sure if this is correct. It at least works so far without any problems...

  • Problem With Booleans and Threads

    Since using the .stop() and .resume() properties of a thread are dangerous, I resorted to using Booleans....
    I can get it to stop just fine by setting "keepGoing" to false. That works...
    But when I set the boolean to true... nothing happens. I think the while loop is broken when I set it to false and can't be fixed when the boolean is set back to true.
    There's some deep process I'm not getting with while loops and/or threads.
    Thanks for any help. The first segment of code is what's wrong. Post if it would help to see the rest.
    class startUpdatingThread extends Thread {
          public void run() {
              System.out.println("THREAD STARTING TO RUN!");
            while (keepGoing == true) {
                if (keepGoing == true) {
                Long nextGoAbout = imgTime + 5000;//five seconds more
                if ( ((nextGoAbout - connection.getDate()) < 10000) ) {
                    getnewPicture();
                    imgCanvas.repaint();
    }

    Still a missing }, and you'll still fall out the end of the thread. Something like this:
    class StartUpdatingThread extends Thread
         private volatile boolean     keepGoing = true;
         public void run()
              System.out.println("THREAD STARTING TO RUN!");
              for (;;)
                   synchronized (this)
                        while (!keepGoing)
                             try
                                  this.wait();
                             catch (InterruptedException exc)
                   Long nextGoAbout = imgTime + 5000;//five seconds more
                   if ( ( (nextGoAbout - connection.getDate()) < 10000) )
                        getnewPicture();
                        imgCanvas.repaint();
         public void pause()
              this.keepGoing = false;
         public synchronized void unpause()
              this.keepGoing = true;
              notifyAll();
    }//<--end of StartUpdatingThread()

  • Problem with Booleans and events

    I have an event structure inside a while loop. I have several buttons each of which triggers one event. Now no matter what latch action I try with these at any point of time only one of the events run. So if I want to run another event I have to stop the main vi run it again and then go to the next event. I guess what this means is that the events are not being terminated by value change. But I have tried to reset the value of the boolean as well in order to terminate but event this doesnt seem to work.There is some fundamental problem somewhere but I am unable to figure it out. Can somebody please help me.
    I am attaching a sample vi and sub vis that demonstrate this problem. In this case I need to have the booleans h
    ave the switch when released action. i.e as long as the button is pressed the camera i control moves left and as soon as I release it it shud stop.
    Attachments:
    CamInte.vi ‏108 KB
    Left.vi ‏190 KB
    Right.vi ‏190 KB

    You need to decide whether you want things controlled by events, or by loop polling.
    Some things to consider:
    Inside each event you have a loop where you read the booleans the events react to. That means the events will be fired over and over again inside the loop, and you'll have a stack of old events to be fired when the while loop has exited...events you don't really want to do anything about (use events for all the button clicks, or loops - not a mix).
    Events are still flow controlled so when the left event fires and it enters the while loop it won't handle any other events until that while loop has finished.
    When an event fires the button value if read at the same time is not the value the event fired on. So when you have an event that fires when
    you press the button, if you wire the button value to something inside that even it won't be true, it will be false. Use the new value output of the event case to read the value you really want.
    MTO

  • How do I create an alarm indicator with boolean control?

    I'm trying to create an alarm with a boolean indicator. I don't know how to hide the text when the condition is false.
    I'd like to be able to have information that appears at a specific moment of my programme. For exemple, to a message that say that the programm is waiting a confirmation to continue running.
    Thank you
    Amelie

    Have you tried under Functions->Time & Dialog->One Button Dialog? This is a wonderful way of pausing until a user presses a button.
    If you wanted, you could use a textbox and just wire a string to it. Then clear it (or hide it using a property node) when done.
    If you want to use a boolean indicator, there is a property (in the property node) called "Strings". This is a 1D array of strings for False, True, Transition True->False and Transition False->True. You can programmatically change the strings.
    Rob

Maybe you are looking for

  • How can i copy text from web link title in safari

    Hi. How can i copy text to clipboard from web link title in safari in ios 7? Thank you Like this: http://photouploads.com/images/01wkw.jpg

  • Which version I should use

    Hi, I got this Java 1.5.0_03 or later is required for installing Oracle Solaris Studio. Make sure that Java is properly installed and run installer again. You can specify valid Java location using --javahome installer argument. Can anyone tell me whi

  • Why is a fillable, savable form on iPad taking 4ever to move from field to field when data entered?

    How can I get my fillable, savable, calculated fields PDF form to move from field to field more quickly when entering data on an iPad/iPhone/handheld using the Adobe Reader app? I have tried everything I can find to reduce the file size, but to no av

  • SAPSCRIPT appears with blank fields

    Hello Guys, I am finding a problem with a SAPscript. Running directly my program Z(SE38) , it select the P.O.tables(EKKO, EKPO,...) correctly, calls my ZSAPSCRIPT correctly and I can preview, It's OK. It Has made the parameterization and calling via

  • Can't  sync numbers to icloud - os 10.7.5

    I am pretty confused at the moment.  There is no documentation that I can find about syning my Mac based Numbers documents to iCloud so I can access them on my iPhone.  The manual doesn't make any reference to it and Apple's website shows a Macbook a