Underscore causing an exception in a toolbar

//  I'm using Netbeans 7.4 release candidtate 2
//  1)  Start the JavaFx Ensemble program - thank you very much.  It has saved me many hours.
//  2)  In Ensemble Click on "Hidden Split Pane".
//  3)  Click the "Source Code" tab.
//  4)  Click the "Save Netbeans project".
//  5)  Replace HiddenSplitPaneSample.java with this code (see below).
//  6)  After starting: click the "double arrow" twice (maybe three times) to display the options in the center pane.
//  7)  The second time you should get the exception.  (See Netbeans output window.)
//  8)  You get the double arrow because dividerPositions() is set too small; but that may be the way some user
//      would have things "split".
//  Why this is important to me.  I included a phony getWord() method (see below).  In my app getWord() will
//  actually go to disk and get a word, in the human language that the user has selected somewhere else.
//  Example:    if they have English selected then getWord( "Add_One" ) will return "Add One" and display it as the buttons text.
//              if they have Chinese selected then getWord( "Add_One" ) will return "Chinese equivalent of Add One" and display it as the buttons text.
//              If there is no replacement in the file then getWord( "Add_One" ) will return "Add_One".
//  The question is why does the underscore cause an exception?  I could easily replace the under score with
//  a dash (see below) because that doesn't cause the exception. But that begs the question what will happen
//  when I'm using Chinese, Japanese, or Hindi?  Is there a stray character here and there that will cause
//  this exception?
//  Notice also that it has removed my underscore: "Add_One" becomes "AddOne".
* Copyright (c) 2008, 2012 Oracle and/or its affiliates.
* All rights reserved. Use is subject to license terms.
import javafx.application.Application;
import javafx.geometry.HPos;
import javafx.geometry.VPos;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.ScrollPane;
import javafx.stage.Stage;
import javafx.scene.control.SplitPane;
import javafx.scene.control.SplitPaneBuilder;
import javafx.scene.control.ToolBar;
import javafx.scene.control.ToolBarBuilder;
import javafx.scene.layout.Pane;
import javafx.scene.layout.RegionBuilder;
import javafx.scene.layout.VBox;
public class HiddenSplitPaneSample extends Application {
    ToolBar     standardToolbar     = null;
    ScrollPane  scrollPane          = new ScrollPane    ();
    class MyPane extends Pane   {
        @Override
        protected void layoutChildren() {
            super.layoutChildren   ();
            double  w   = getWidth  ();
            double  h   = getHeight ();
            double  ph  = standardToolbar.getHeight();
            layoutInArea    ( standardToolbar,  0,  0,  w, ph,    0,  HPos.CENTER,    VPos.CENTER );
            layoutInArea    ( scrollPane,       0,  0+ph,   w, h-ph,    0,  HPos.LEFT,    VPos.CENTER );
    private String  getWord ( String wordToGet )    {
        return  wordToGet;
    private void init(Stage primaryStage) {
        MyPane  pane1   = new MyPane    ();
                pane1   .setPrefWidth   ( 400 );
                pane1   .setPrefHeight  ( 400 );
        standardToolbar = ToolBarBuilder.create().build();
            standardToolbar     .setPrefHeight      ( 30 );
            standardToolbar     .setMinHeight       ( 30 );
            standardToolbar     .setMaxHeight       ( 30 );
            pane1.getChildren() .add( standardToolbar );
            Button  addOneButton    = new Button    ( getWord( "Add_One"    ) );
            Button  addTwoButton    = new Button    ( getWord( "Add_Two"    ) ); 
            Button  addThreeButton  = new Button    ( getWord( "Add_Three"  ) );
            Button  addFourButton   = new Button    ( getWord( "Add_Four"   ) ); 
            //Button  addOneButton    = new Button    ( getWord( "Add-One"    ) );
            //Button  addTwoButton    = new Button    ( getWord( "Add-Two"    ) ); 
            //Button  addThreeButton  = new Button    ( getWord( "Add-Three"  ) );
            //Button  addFourButton   = new Button    ( getWord( "Add-Four"   ) ); 
            standardToolbar .getItems().add ( addOneButton      );
            standardToolbar .getItems().add ( addTwoButton      );
            standardToolbar .getItems().add ( addThreeButton    );
            standardToolbar .getItems().add ( addFourButton     );
        VBox    vbox    = new VBox  ();
        scrollPane  .setContent     ( vbox );
        scrollPane  .setFitToWidth  ( true );
        pane1   .getChildren().add     ( scrollPane );
        Group root = new Group();
        primaryStage.setScene(new Scene(root));
        String hidingSplitPaneCss = HiddenSplitPaneSample.class.getResource("HiddenSplitPane.css").toExternalForm();
        final SplitPane splitPane = SplitPaneBuilder.create().id("hiddenSplitter").items(
                RegionBuilder.create().styleClass("rounded").build(),
                pane1,//RegionBuilder.create().styleClass("rounded").build(),
                RegionBuilder.create().styleClass("rounded").build()).dividerPositions(new double[]{0.33, 0.50}).build();
        splitPane.getStylesheets().add(hidingSplitPaneCss);
        root.getChildren().add(splitPane);
    @Override public void start(Stage primaryStage) throws Exception {
        primaryStage.setX      ( 0 );
        primaryStage.setY      ( 0 );
        primaryStage.setWidth  ( 500 );
        primaryStage.setHeight ( 500 );
        init(primaryStage);
        primaryStage.show();
    public static void main(String[] args) { launch(args); }

The underscore is being parsed as an indicator that the next character should be a mnemonic, and the underscore is then stripped. This happens by default on Buttons, but not on Labels.
See the API in the Labeled class. You can either turn parsing off, or you can use two underscores to represent one underscore.

Similar Messages

  • The niFPui.mxx plug-in caused an exception in the CmxAggregateItemUI::InvokeCommand function in the NIMax process. When saving *.iak file in MAX4.6

    The niFPui.mxx plug-in caused an exception in the CmxAggregateItemUI::InvokeCommand function in the NIMax process. When saving *.iak file in MAX4.6
    Hi There,
    The subject header just about says it all. This is the first action I took with MAX - it is a fresh install. The file I wanted to save was still written and the FP seems to be working ok. However, I need to know what happened.
    I can't post the whole log file due to the amount of characters allowed on this post. I can cut and paste sections if there is a specific part of the file you need. Below is the first section and last section.
     Context where exception was caught:
    Func:
    CmxAggregateItemUI::InvokeCommand Args: plugin=niFPui.mxx Item=0107EAB1
    cmdID.cmdId={4A36174B-EC0C-4D73-A23D-F15D164542DE} cmdID.index=0
    Application   : C:\Program Files\National Instruments\MAX\NIMax.exe
    User Name     : slaney
    OS Version    : 5.1.2600 (Service Pack 3)
    Exception Code: C000001E
    Exception Addr: 457BC448
    Return Address: 457BC448
    Function Name : nNIFPServer::tFpLinearScaleRange::`vftable'
    Module Name   : FieldPoint71
    Parameters    : F001008E 7800FDDD C5100DFC EC0107EA
    Source File   : (not available)
    Return Address: 481000C3
    Function Name : (not available)
    Module Name   : (not available)
    Parameters    : 00000000 00000000 00000000 00000000
    Source File   : (not available) 

    Hi,
    I did a research on your error message and it seems this problem was introduced with MAX 4.6. This version switched to a new error reporting mechanism and reports even errors that are which are not critical to your task.
    These errors typically show up as "unexpected" and if your error falls into this category have a look to this KB for further assistance.
    If it doesn't fall into this category, your could try to go back to the MAX 4.5 or 4.4.. Of course you would need to reinstall some components and might not be able to use newer drivers at all.
    Let me know.
    DirkW

  • Error in crawl log "Error while crawling LOB contents. ( Error caused by exception: Microsoft.BusinessData.Infrastructure.BdcException The shim execution failed unexpectedly - The method or operation is not implemented..; SearchID "

    Hi 
    I get the following error in my crawl logs
    "Error while crawling LOB contents. ( Error caused by exception: Microsoft.BusinessData.Infrastructure.BdcException The shim execution failed unexpectedly - The method or operation is not implemented..; SearchID "
    Because of this i suspect, the search results are not including those aspx pages marked as "Hide physical urls from search".
    This error is not available in the another environment where the aspx pages are coming in the results.
    Thanks
    Joe

    Hi Joe,
    Greetings!
    Reset the index and re-crawl. That usually clears it
    If you are using NTLM authentication, then make sure that you specified the PassThrough authentication for crawling
    Probably you need to debug the BDC code that underlies the external content types.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/41a86c43-151d-47cd-af73-967a4c940611/lotus-notes-connector-error-while-crawling-lob-contents?forum=sharepointsearch
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Error while crawling LOB contents (Error caused by exception: Microsoft.BusinessData.Infrastructure.BdcException)

    Everytime when I perform a Full Crawl on the Central Administraion page, this error will appear and the crawl process will run into an infinite loop and nothing crawl success. I have tried delete and re-create the crawling content sources, start/stop
    the search services but this error still appear.
    Please help. Thanks a lot.
    Error Message:
    topicpages://
    Error while crawling LOB contents.
    ( Error caused by exception: Microsoft.BusinessData.Infrastructure.BdcException
    The shim execution failed unexpectedly - Exception has been thrown by the target of an invocation..:
    System.Net.WebException The request failed with HTTP status 404: Not Found.;
    SearchID = EFE3FAA4-12C3-40AD-B410-51D6189FC720 )

    Tried scheduled an incremental every 10 minutes
    Still getting error on crawling LOB contents. The incremental crawl ran into an infinite loop and nothing crawl success
    Thanks for help.
    Error Message:
    topicpages://(servername)
    Error while crawling LOB contents.
     ( Error caused by exception: Microsoft.BusinessData.Infrastructure.BdcException
    The shim execution failed unexpectedly - Exception has been thrown by the target of an invocation..:
    System.Net.WebException The request failed with HTTP status 404: Not Found.;
    SearchID = B801BC11-8138-453F-AB4D-AA4BE4F5B57A )

  • MAX error, niGPIBsys.dll plug-in caused an exception

    Trying to connect to hardware via the local network to send ASCII strings. I can ping the static IP address successfully, but can't get anything from it in LabVIEW.
    VISA resource at the moment is TCPIP0::xxx.xxx.xxx.xxx::INSTR, which I think is right.
    MAX returns this error on startup:
    The niGPIBsys.dll plug-in caused an exception in the CmxSysExpertManager::FinalizeExpert function in the NIMax process.
    See these files for details:
    C:\ProgramData\National Instruments\MAX\Logs\20130709_091257-NIMax-00001848.log
    C:\ProgramData\National Instruments\MAX\Logs\20130709_091257-NIMax-00001848.dmp
    Then won't make new devices.
    VISA and 488 have both been reinstalled, and the nearest error I could find was number 6 here:
    http://digital.ni.com/public.nsf/allkb/6CA56E2DDBCCA06086257591006141EE?OpenDocument
    ... but PAE is definitely not enabled.
    Thanks in advance for any suggestion.
    (LabVIEW version 11.0 32-bit, windows 7, hardware is a Votsch Industrial Oven with static IP address)

    Sorry, I'm confused myself.
    LabVIEW communication with one instrument works when I manually entered TCPIP0::xxx.xxx.xxx.xxx::INSTR, so over the local network. It also worked when I connected it to my computer with a USB cable because the USB::<something> option came up in the drop down list of the VISA resource name panel straight away.
    With the other instrument, it has both USB and ethernet sockets, I couldn't get a response using the same TCPIP format as above, even though I know the IP address (and I tried all combinations of w/ wout/ INSTR) and I could ping it. Haven't been able to plug it into anything with USB directly as I can't get a computer near it at the moment. Tried LabVIEW's VISA serial read write example programme... does that not make sense then? I got error -1073807343.
    So I tried to use MAX according to tutorials and encountered the above problems. I suspect the MAX problem is seperate to my VISA connection problems. Can MAX not be used to find and configure connections both USB (is this the same as GPIB?) and TCPIP?

  • Adobe Photoshop Elements 6 causes an exception

    I installed APE 6 on my Windows Vista computer and it works ok but now when I open some other programs it causes an exception.  These are important programs too, my EOS Utility program for Remote Capture from my camera, gone.  My program for transferring data to my calculator, gone.  My Monopoly game, gone.  What happened and how can I fix this?

    This may have happened due to insufficient RAM. Try running these programs on a system with greater RAM.

  • Adding new constant value to an 'enum' used in a field causes an exception

    We are using the DPL. I added a new constant to an enum that is used as a field on an entity called Booking (this field is not a key). This seems to cause an exception during onForeignKeyDelete when we delete an object from a related entity. The constraint is a "NULLIFY" on a "MANY_TO_ONE" relationship, so the effect should be just to nullify the Booking foreign key, but for some reason the fields are being checked and causing this exception. Shouldn't it be possible to add a new constant value to an enum without having to do some sort of migration? The stack is below. Note that the two types mentioned in the exception message are in fact the same (this is the enum). For the moment we can truncate our database, because we are still in development, but this would present a problem in production.
    IllegalArgumentException: Not a subtype of the field's declared class com.chello.booking.model.BookingStatus: com.chello.booking.model.BookingStatus
    at com.sleepycat.persist.impl.RawAbstractInput.checkRawType(RawAbstractInput.java:142)
    at com.sleepycat.persist.impl.RecordOutput.writeObject(RecordOutput.java:75)
    at com.sleepycat.persist.impl.RawAccessor.writeField(RawAccessor.java:232)
    at com.sleepycat.persist.impl.RawAccessor.writeNonKeyFields(RawAccessor.java:148)
    at com.sleepycat.persist.impl.ComplexFormat.writeObject(ComplexFormat.java:528)
    at com.sleepycat.persist.impl.PersistEntityBinding.writeEntity(PersistEntityBinding.java:143)
    at com.sleepycat.persist.impl.PersistKeyCreator.nullifyForeignKeyInternal(PersistKeyCreator.java:170)
    at com.sleepycat.persist.impl.PersistKeyCreator.nullifyForeignKey(PersistKeyCreator.java:137)
    at com.sleepycat.je.SecondaryDatabase.onForeignKeyDelete(SecondaryDatabase.java:1082)
    at com.sleepycat.je.ForeignKeyTrigger.databaseUpdated(ForeignKeyTrigger.java:37)
    at com.sleepycat.je.Database.notifyTriggers(Database.java:2016)
    at com.sleepycat.je.Database.deleteInternal(Database.java:800)
    at com.sleepycat.je.Database.delete(Database.java:714)
    at com.sleepycat.persist.BasicIndex.delete(BasicIndex.java:133)
    at com.sleepycat.persist.PrimaryIndex.delete(PrimaryIndex.java:206)
    at com.sleepycat.persist.BasicIndex.delete(BasicIndex.java:124)
    at com.sleepycat.persist.PrimaryIndex.delete(PrimaryIndex.java:206)
    Kind regards
    James Brook

    James,
    I've started investigating this and at first look it does appear to be a DPL bug. Over the next few days I'll look more deeply and report back here with what I find. If it is indeed a bug, we'll fix this for the next JE 4.0.x release and I'll make the fix available to you.
    You are correct that adding enum values is allowed without a conversion of any kind. The only change you should have to make, other than adding the enum value, is to bump the version of the containing entity in the @Entity annotation. I'm suspect you've already done that, but if you hadn't, it wouldn't cause the problem you're seeing.
    We have tested the addition of enum values, but not in combination with foreign key deletion and the NULLIFY constraint, I'm afraid.
    If I'm correct about it, the bug is specific to adding enum values and deleting a secondary key with the NULLIFY constraint, prior to re-writing the entity in some other way. So if the entity is updated (written) before the secondary key is deleted, then the problem should not occur. Therefore, one workaround is to call EntityStore.evolve after adding the enum value, and before using the store in other ways.
    Thanks for reporting this, and I hope this is not blocking your development.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Toplink Exception: caused by EXCEPTION [TOPLINK-125]

    Hi,
    Sorry i can't provide much info at the moment, but this has just been passed on from a colleague at work.
    The following error has occurred now that we have temporarily set all descriptors to use noIdentityMap().
    It does not happen when caching is switched on.
    Jul 01, 2003 06:32:36 PM com.aon.ame.quotation.ejb.QuotationBean updateSectionQuotation
    INFO: Toplink Exception: caused by EXCEPTION [TOPLINK-125] (3.6.4 (build 245)): TOPLink.Public.Exceptions.DescriptorException
    EXCEPTION DESCRIPTION: The mapping for the attribute [underwritingCompany] uses indirection, and so must be initialized to a new ValueHolder. Currently the value is: [null].
    MAPPING: TOPLink.Public.Mappings.OneToOneMapping[underwritingCompany]
    DESCRIPTOR: Descriptor(com.aon.ame.entities.UnderwritingBranch --> [DatabaseTable(AME2DATA.UNDERWRITING_BRANCH)]):
    EXCEPTION DESCRIPTION: The mapping for the attribute [underwritingCompany] uses indirection, and so must be initialized to a new ValueHolder. Currently the value is: [null].
    MAPPING: TOPLink.Public.Mappings.OneToOneMapping[underwritingCompany]
    DESCRIPTOR: Descriptor(com.aon.ame.entities.UnderwritingBranch --> [DatabaseTable(AME2DATA.UNDERWRITING_BRANCH)])
    LOCAL EXCEPTION STACK:
    EXCEPTION [TOPLINK-125] (3.6.4 (build 245)): TOPLink.Public.Exceptions.DescriptorException
    EXCEPTION DESCRIPTION: The mapping for the attribute [underwritingCompany] uses indirection, and so must be initialized to a new ValueHolder. Currently the value is: [null].
    MAPPING: TOPLink.Public.Mappings.OneToOneMapping[underwritingCompany]
    DESCRIPTOR: Descriptor(com.aon.ame.entities.UnderwritingBranch --> [DatabaseTable(AME2DATA.UNDERWRITING_BRANCH)])
         at java.lang.Throwable.fillInStackTrace(Native Method)
         at java.lang.Throwable.fillInStackTrace(Compiled Code)
         at java.lang.Throwable.<init>(Compiled Code)
         at java.lang.Exception.<init>(Compiled Code)
         at java.lang.RuntimeException.<init>(Compiled Code)
         at TOPLink.Public.Exceptions.TOPLinkException.<init>(Compiled Code)
         at TOPLink.Public.Exceptions.ValidationException.<init>(Compiled Code)
         at TOPLink.Public.Exceptions.DescriptorException.<init>(DescriptorException.java:176)
         at TOPLink.Public.Exceptions.DescriptorException.<init>(DescriptorException.java:183)
         at TOPLink.Public.Exceptions.DescriptorException.valueHolderInstantiationMismatch(DescriptorException.java:1363)
         at TOPLink.Private.Indirection.BasicIndirectionPolicy.validateAttributeOfInstantiatedObject(Compiled Code)
         at TOPLink.Public.Mappings.ForeignReferenceMapping.getAttributeValueFromObject(Compiled Code)
         at TOPLink.Public.Mappings.ForeignReferenceMapping.buildClone(Compiled Code)
         at TOPLink.Private.Descriptors.ObjectBuilder.populateAttributesForClone(Compiled Code)
         at TOPLink.Public.PublicInterface.UnitOfWork.cloneAndRegisterObject(Compiled Code)
         at TOPLink.Public.PublicInterface.UnitOfWork.checkExistence(Compiled Code)
         at TOPLink.Public.PublicInterface.UnitOfWork.internalRegisterObject(Compiled Code)
         at TOPLink.Public.PublicInterface.UnitOfWork.registerObject(Compiled Code)
         at com.aon.ame.quotation.ejb.QuotationBean.updateSectionQuotation(Compiled Code)
         at com.aon.ame.quotation.ejb.EJSRemoteQuotation.updateSectionQuotation(EJSRemoteQuotation.java:2418)
         at com.aon.ame.quotation.ejb._Quotation_BaseStub.updateSectionQuotation(_Quotation_BaseStub.java:4146)
         at com.aon.ame.quotation.ejb._Quotation_Stub.updateSectionQuotation(Compiled Code)
         at com.aon.ame.quotation.struts.action.ViewSpecialEndorsementsAction.doUpdateBrokerSpecialEndorsement(Compiled Code)
         at com.aon.ame.quotation.struts.action.ViewSpecialEndorsementsAction.doUpdateWording(ViewSpecialEndorsementsAction.java:551)
         at com.aon.ame.quotation.struts.action.ViewSpecialEndorsementsAction.amePerform(ViewSpecialEndorsementsAction.java:127)
         at com.aon.ame.struts.action.AmeBaseAction.aonPerform(AmeBaseAction.java:48)
         at com.aon.struts.action.BaseAction.perform(Compiled Code)
         at org.apache.struts.action.ActionServlet.processActionPerform(Compiled Code)
         at org.apache.struts.action.ActionServlet.process(Compiled Code)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
         at javax.servlet.http.HttpServlet.service(Compiled Code)
         at javax.servlet.http.HttpServlet.service(Compiled Code)
         at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(Compiled Code)
         at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(Compiled Code)
         at com.ibm.servlet.engine.webapp.IdleServletState.service(Compiled Code)
         at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(Compiled Code)
         at com.ibm.servlet.engine.webapp.ServletInstance.service(Compiled Code)
         at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(Compiled Code)
         at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(Compiled Code)
         at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(Compiled Code)
         at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(Compiled Code)
         at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(Compiled Code)
         at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(Compiled Code)
         at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(Compiled Code)
         at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(Compiled Code)
         at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Compiled Code)
         at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(Compiled Code)
         at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(Compiled Code)
         at com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(Compiled Code)
         at com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(Compiled Code)
         at com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(Compiled Code)
         at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(Compiled Code)
         at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(Compiled Code)
         at com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(Compiled Code)
         at java.lang.Thread.run(Compiled Code)
    Jul 01, 2003 06:32:36 PM com.aon.struts.action.BaseAction perform
    SEVERE: com.aon.ame.quotation.struts.action.ViewSpecialEndorsementsAction.aonPerform() threw an exception: RemoteException occurred in server thread; nested exception is:
         com.ibm.ejs.container.UncheckedException: ; nested exception is:
         EXCEPTION [TOPLINK-125] (3.6.4 (build 245)): TOPLink.Public.Exceptions.DescriptorException
    EXCEPTION DESCRIPTION: The mapping for the attribute [underwritingCompany] uses indirection, and so must be initialized to a new ValueHolder. Currently the value is: [null].
    Can anyone shed any light on why this might have happened?
    Many thanks.

    I don't see how caching is affected by this, but the exception is complaining that you have a relationship that uses indirection and have not instantiated the value holders.
    I.e.,
    Customer has 1-1 to Address, and you're using ValueHolderInterface for the type. Either in the constructor or in the declaration of the attribute, you need to init the value holder. You should do the same for 1-M's also (unless you're using transparent indirection) For example:
    public class Customer {
    String name;
    String title;
    ValueHolderInterface address = new ValueHolder();
    ValueHolderInterface orders = new ValueHolder(new Vector());

  • What cause fatal exception screen of death

    what causes fatal exception screen (curtain comes down and message in 5 languages tell you to turn off the computer) of death and can it be cured

    That is a kernel panic.
    If your data is backed up, you can examine the directory to see if that caused it:
    https://discussions.apple.com/docs/DOC-6412
    If you have no peripherals attached and the hardware test is unrevealing, and no installed third party drivers, it usually indicates the RAM is bad.

  • NISE virtual device causes LabVIEW exception error

    I can't delete a virtual device because when selected it causes an exception error in LabVIEW. I'm running MAX 4.1 with DAQmx8.3. Do I need to uninstall everything and then reinstall to correct this error?
    kph

    Okay here is what I remember...
    I had MAX 4.0 installed on the computer (not sure of the DAXmx version but probably 8.1) and I went to export a NISE virtual device to a network drive. At that time MAX froze up and I had to kill it with task manager. When I reopened MAX the virtual device gave me a LabVIEW error when I selected it. I was able to rename it and replace it with a backed up version. I then went to delete it but MAX continued to lock up. I read in the discussion forums about the export to network drive issue and the fix with MAX 4.1 so I downloaded DAQmx 8.3 with MAX 4.1 and installed it. Afterwards MAX seemed more stable but I still get the LabVIEW error when I try to select the renamed (broken) virtual device. Also since this started I've been getting weird exception errors when I run my TestStand/LabVIEW code.
    Any help will be greatly appreciated.
    kph

  • Thunderbird updated yesterday and now nothing is displayed except the top toolbars.What do I do?

    My address book is still there, and it still showed that it downloaded my new messages, but there is no way to access them. The whole screen is blank except for the toolbars at the top. No Inbox, folders, nothing. Guess I shouldn't have updated.

    Nope. "&hellip;after upgrading to TB31 on a Windows 7 system&hellip;"
    The similarity led me to wonder if this was a TB31 issue rather than Windows version related.
    This below is from the system where it all happened, though now of course I have reverted to an older TB:
    Name Thunderbird
    Version 24.6.0
    User Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
    Application Build ID 20140610001341
    Elsewhere it says "Windows 7 Professional" and "Service Pack 1" though of course all that is displayed the traditional perverse Microsoft way in a non copy-and-pastable format. :-S
    I now use gContactSync which also wanted to do some some reformatting, but the one bit that's survived intact is the Address Book. It would be odd for different contact sync tools to have trashed the mailstore and settings files, eh?
    I've also seen reports that MoreFunctionsForAddressBooks breaks auto-completion in TB31, but I don't see that happening on my trusty Linux box.
    I'm back at work this work after a break and some illness, and in that time away I was using exclusively Android and Linux. I'm not a big fan of the tablet and Android, but I'd forgotten just how painful and awkward it has become to use Windows. People, look around. There are free alternatives and they let you do it as you want, not as dictated by Redmond!
    I'm currently copying my important work stuff over to Outlook. I'm scared of what might happen next time if I inadvertently let TB "upgrade" again. :-(

  • NOWAIT causes no exception

    I am using 9i Developer Suite forms application.
    I have a doubt that a NOWAIT in a statement like this causes no exception:-
    Begin
    ---(statement-1) SELECT TOTAL_OUTSTANDING INTO TEMP_OUTSTANDING FROM PPBS_DISTRIBUTOR_MASTER where distributor_id=
    :rh.distributor_id FOR UPDATE OF TOTAL_OUTSTANDING NOWAIT;
    end;
    (statement-2)
    UPDATE PPBS_distributor_master set total_outstanding = total_outstanding - to_number(:RH.instrument_amount)
                        where distributor_id = :RH.distributor_id;
    commit;
    So, statement-1 raises no exception from front-end Developer 2000 code except a message in the status bar & hence Statement-2 gets executed. Is the behaviour as i have written?
    I hope, my question is clear. Please help in solving the doubt.
    regards.

    If a NOWAIOT lock fails then an ORA-54 will be raised. If youo want to capture this as a PL/SQL exception so as to alter what your code does then you'll have to use: pragma exception_init to convert the error to an inline exception. This is documented in the PL/SQL doc.

  • Rpt.ReportClientDocument.DatabaseController.SetTableLocation causes an exception

    I've tried installing CR 2013 then CRforVS_13_0_8.exe and vice versa.
    When rpt.ReportClientDocument.DatabaseController.SetTableLocation(table, updatedTable) is called, an exception is thrown, even when the value in table and updateTable are the same.
    Any ideas?

    Here's a code snippet
    CrystalDecisions.ReportAppServer.DataDefModel.Tables tables = rpt.ReportClientDocument.DatabaseController.Database.Tables;
    for (int i = 0; i < tables.Count; ++i)
       var table = tables[i];
       var updatedTable = table;
       rpt.ReportClientDocument.DatabaseController.SetTableLocation(table, updatedTable);
    Causes the exception:
    The table 'ARW91_Company_Profile' could not be found. Error in File CRCOMP {27B3ECF0-E6B8-42DF-BB90-E883BA83CD09}.rpt: The table could not be found.
    And a dump of the table info:
    Table #0
       Name:  Company Profile__crarw91glb
       QName: Company Profile__crarw91glb
       Alias: ARW91_Company_Profile
    New Table
       Name:  Company Profile__crarw91glb
       QName: Company Profile__crarw91glb
       Alias: ARW91_Company_Profile
    This report works in Crystal Reports.

  • Invoke stored procedure cause strange exception

    Hi, I'm using JDev 11.1.2, the use case is: add a new row to the VO iterator filtered by some view criteria and call a stored procedure before commit.
    The application runs fine without calling the stored procedure, however, following exception will occur if it's called.
    The stored procedure will do some update to a remote DB2 via DB link. Though the exception stack trace shows that the SP has error, but if I run it separately in some SQL tool, it is ok.
    The "BO_SP" problem seems not to be caused by the 'new row state'.
    Does any one have any tips for this problem? Thanks!
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
    oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Savepoint": SQL Statement "BO_SP".
         at oracle.jbo.server.DBTransactionImpl.setSavepoint(DBTransactionImpl.java:3184)
         at oracle.jbo.server.DBTransactionImpl.saveTmpPostState(DBTransactionImpl.java:1791)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2065)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
         at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
         at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:173)
         at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:163)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:1035)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:926)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:824)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:554)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:158)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:115)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:84)
         at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:50)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:159)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.sql.SQLException: ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Oracle][ODBC DB2 Wire Protocol driver][UDB DB2 for iSeries and AS/400]ILLEGAL SYMBOL <END-OF-STATEMENT>; VALID SYMBOLS ARE ON UNIQUE. {42000,NativeErr = -104}[Oracle][ODBC DB2 Wire Protocol driver][UDB DB2 for iSeries and AS/400]EXECUTE STATEMENT DOES NOT IDENTIFY A VALID PREPARED STATEMENT. *N {HY000,NativeErr = -518}
    ORA-02063: preceding 2 lines from TGBPSU
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1079)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1466)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3937)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1535)
         at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:99)
         at oracle.jbo.server.OracleSQLBuilderImpl.setSavepoint(OracleSQLBuilderImpl.java:1548)
         at oracle.jbo.server.DBTransactionImpl.setSavepoint(DBTransactionImpl.java:3172)
         ... 83 more
    Edited by: codeplay on Oct 17, 2011 5:17 PM

    Look like the calling of the other DB is the root of your problem:
    Caused by: java.sql.SQLException: ORA-28500: connection from ORACLE to a non-Oracle system returned this message:[Oracle][ODBC DB2 Wire Protocol driver][UDB DB2 for iSeries and AS/400]ILLEGAL SYMBOL <END-OF-STATEMENT>; VALID SYMBOLS ARE ON UNIQUE. {42000,NativeErr = -104}[Oracle][ODBC DB2 Wire Protocol driver][UDB DB2 for iSeries and AS/400]EXECUTE STATEMENT DOES NOT IDENTIFY A VALID PREPARED STATEMENT. *N {HY000,NativeErr = -518}
    ORA-02063: preceding 2 lines from TGBPSU
    >
    Test your app with -Djbo.debugoutoup=console as a java option, this will generate lots of output but you may see the actual sql passed to the db.
    Where and how do you call the SP?
    Timo

  • SQL Query works in MS Access but caused SQL exception

    Hi all,
    I've got this query that works if I run it in MS Access but caused an SQL Exception if I run in my Java programme.
    The query
    SELECT Count(*) AS countPlayerMax FROM (SELECT Count(*) AS countSent, sent.mobileno FROM sent WHERE (((sent.date_sent) Between #2002-3-1# And #2002-3-8#)) GROUP BY sent.mobileno HAVING (((Count(*))>100)))
    The exception is
    [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.
    I've done nested queries before but this one doesn't work. Any ides why??
    thanks

    Thanks for your suggestion
    I tried it but it still gives the same error, now the SQL looks like this
    SELECT Count(*) AS countPlayerMax FROM (SELECT Count(*) AS countSent, sent.mobileno FROM sent WHERE sent.date_sent Between #2002-3-1# And #2002-3-8# GROUP BY sent.mobileno HAVING Count(*)>100)
    the exception is the same
    [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.

Maybe you are looking for

  • How do I get the Data useage Icon/widget back on my Stratosphere?

    Some how I deleted this Icon/widget that showed my Verizon data useage and I can't figure out how to get it back. I'm sure it's simple, but I can't find it. Thanks

  • Motion on an external drive?

    I don't have a lot of room on my G4's internal "applications" drive but I've got much more room on a LaCie external drive that I have my project on. This project will continue to grow as the series of episodes grow. Plus I will occasionally be moving

  • Licens chart library VS datavisualization licens library

    Hi I am Carlo and this is my first time that write here. Recently I up grade my application from flex2 to flex3. The passage it was quite simple but I have a problem with the new chart library datavisualization.swc. I have the license of the old libr

  • Unable to Open Photos - JPEG, TIFF, etc... HELP!

    I have been using PS CS4 for well over a year and, until this week, it has been flawless. Now, all of a sudden, when I try to open a photo file from PS nothing happens. Ditto for selecting "Edit In" (Photoshop) from within LightRoom... In this case P

  • Numbers doc disappeared, again!

    I have been using Numbers as a job list document. It is saved externally to a G-Tech G-safe RAID 1 drive with access to it via a Mac Mini Server. Twice the file has disappeared. After the first time I thought that it was possible, but unlikely that e