Exception raised using JComboBox with JUComboBoxBinding in a JTable

Hello,
I am using JDeveloper 9.0.3.1035.
I have a JTable bound to a bc4j view object. Now I want to use a JComboBox to select the value for a foreign key column in that Table. For this I have followed the HOWTO posted by Arno van der Kolk in Thread JClient - JTable and JComboBox which extends the OTN example "How to Add a JComboBox to a Cell in a JTable". This almost works fine except for one thing:
In the the ComboBox I display a String value but the view attribute is of type Number. Now when I edit the column using the ComboBox and the value of the selected entry cannot be converted to Number I get an exception like the following:
oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Number with value:030522 001
Even after this exception is raised the database record is updated with the correct number value corresponding to the selected entry when the changes are commited. The only w/a I have found so far is to display the foreign key attribute as the first column of the JComboBox but this is not what I want. This behaviour also occurs using the aforementioned OTN example with my JDev version but the sample works with JDev 9.0.2.
How can I get this to work using JDev 9.0.3?
Any help is greatly appreciated.
Regards,
Christof Breker

The Thread I was really referring to is:
[JClient] HOWTO: Using databound comboboxes (for foreign keys) in a JTable
The OTN sample can be found under:
http://otn.oracle.com/sample_code/products/jdev/jclient/jclient_table_combo_sample.html

Similar Messages

  • XMLStreamReader exception when using webservice with security access denied

    Hi,
    I'm using CXF webservices generated from a WSDL with SOAP document style. Under normal conditions, the client and server work fine, and can I read info back from the the server (SOAP http messages passed between both)
    However, for some servers, I am using SUNs Policy Agent, which checks for an authentication token in the http header cookie before allowing access to the web service. I set up the cxf service port as follow:
    Service service = Service.create(serviceName);
    service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, address);
    servicePort = (IMyService)service.getPort(portName, IMyService.class);
    I also add the authentication token to the http header cookie in the service's request context.
    If the token is correct, everything works fine. However, if the token is incorrect, and access is denied, the policy agent does not return a SOAP http message. In this case, the web service method throws a low-level XMLStreamReader exception i.e. it can't read the SOAP message response - so I can't get the actual response from the policy agent.
    Would anyone have an idea on this? Should I configure the CXF port differently, or should I try to get the policy agent to return a SOAP message even if access is denied.
    There is already a browser that can access the policy agent - and this needs to be redirected if access is denied. So in effect, we need the redirect functionality for the browser, and the returned SOAP message for the application using the web service.
    Any help would be greatly appreciated!
    Rob

    Thanks for your answer.
    I eventually found a workaround for this problem.
    Actually you don't need to provide an SSO cookie the first time you connect to the webgate server, you just need to provide basic credentials and the webgate will provide you an SSO cookie that you can use for the next call.
    The problem is that this doesn't work out of the box with the .NET/WSDL framework for some reason (with Java + the HTTPClient library I had no problem).
    I had to had manually the following headers to the HTTP request to make it work:
    Authentication: Basic XXXXXXXX
    Cookie: OBBasicAuth=fromDialog
    Where XXXXXXXX is a base64 encoded string containing "login:password"
    Thanks,
    Franck

  • Exception while using struts with jsf

    Hi
    Iam trying to integrate struts with jsf. when iam trying to load jsf page ...getting the following error
    Unable to initialize jsf interceptors probably due missing JSF implementation libraries
    Please help me to fix this .

    this is my web.xml
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>appstruts2</display-name>
    <filter>
    <filter-name>struts2</filter-name>
    <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    </web-app>

  • Problem of JComboBox as cell editor in JTable

    Hi,
    I use JComboBox as cell editor in JTable. If the drop-down menu of the JComboBox out of the JTable area (as the editable cell is near the bottom of the JTable), the item in JComboBox can not be selected with mouse, in this situation there is no MouseEvent to be received in JTable. But it works when I use the keyboard to choose an item in JComboBox.

    Works fine for me.
    If you need further help then you will need to provide [url http://www.physci.org/codes/sscce.jsp]Simple Demo Code that demonstrates the problem.

  • I can use iMessage with all iPhone uses except for ONE person.  That person can use iMessage with all other users, but not with ME.  What's the problem???

    I can use iMessage with all other iPhone users that I communicate with, except for ONE person.  When I send to that person, it always goes through as a text message.  This person can use iMessage with pther people, but when they send me a message, it always goes as a text.  Why can we both communicate with other people using iMessage, but not with one another?

    Hi Russell,
    1) If you have OD set up and "editor" has UID 1111, then when they log in to any machine that's bound to OD as editor, they will get UID 1111. Therefore, there won't be any of these permission errors. This is typically the recommended approach.
    2) I assume you mean "You'd prefer to not using open directory?" Whatever the case, OD isn't mandatory with Xsan -- it's just that with multiple user accounts, managing them centrally tends to be easier. For 3 or 4 accounts and 3 or 4 machines maybe it's no big deal. If you go larger, it could get a lot more complicated. That said, if you set it up such that each machine has the exact same set of users (as you said, Mary = UID 502, Fred = UID 503, William = UID 504), then you can do what you want. Mary can log in from multiple machines at the same time, and in general you won't have permissions problems. Of course, if you try and read and write the same file from multiple workstations at the same time, you will get file locking issues, which will prohibit somebody from successfully writing the file.
    File locking issues are different from general permissions errors. The former basically says "hey, someone else is editing this file. Therefore I won't let you edit it right now... you can read it if you want though." Permissions means somebody saves it, and Xsan thinks you saved it and own the file, when you really don't.
    Quad-Core PMG5, 4 GB RAM, 7800 GT, 1 TB disk.   Mac OS X (10.4.4)  

  • Using StartTLS with IMAP connection to Exchange is giving me different certificates for machines different to the IMAP server, security exception each time

    I'm using Thunderbird with my work email account, which is using Exchange, this is not officially supported but access is allowed via IMAP.
    The problem is when I'm using StartTLS or SSL I'm getting multiple different self signed certificates being returned, seeming depending on which specific backend server is handling the request, each time it causes the Confirm Security Exception dialog to be displayed. If I confirm the exception I get the dialog being displayed again until eventually I get a certificate that seems to match the first certificate I confirmed, at which point I can download or send my pending mail.
    Thus is seems that there is only one certificate being stored as an exception for each server connection. Is there some way round this?
    Thanks.

    What is the reason for the exception prompt in the first place?

  • Ipod Touch 16gb wont connect to my wifi anymore. Others can connect to mine and my Ipod can connect to all other locations except mine. It used to with no problem. I have restarted my Mac, my router and Ipod many times and nothing works. Help

    Ipod Touch 16gb wont connect to my wifi anymore. Others can connect to mine and my Ipod can connect to all other locations except mine. It used to with no problem. I have restarted my Mac, my router and Ipod many times and nothing works. Help

    My paper work for my linksys says WEP 64 bits. I've tried changing my IPOD to that and it will say put in password and when I do I get "invalid password" or can not connect. This has been in the last few weeks. I have researched this for the last 2 weeks, called apple and they said it's not my IPOD, called Linksys and they want to charge $30 to fix it. How do I change my router without totaly not messing it up?

  • Using JCheckBox/JComboBox with JDBC

    hello.
    i was just wondering does any of you have links to web pages that include tutorials (and source code) on using JCheckBox with JDBC. would any of you who have experience with using JCheckBox and JDBC together be able to give me a few tips on how to select certain data from a table using JCheckBox and JButton? (examples of such data could be CD/DVD/Game data - i want users of my video library system to be able to view CD/DVD/Game information by name, age category, type and year)
    thank you very much for your help.

    hello.
    Thanks for the replies. I�m wondering do any of you
    have links to web pages that include tutorials and
    source code on using JCheckBox, JButton and JTextArea
    with JDBC. Wow, another person who's never heard of Google. Amazing!
    would any of you who have experience with
    using JCheckBox, JButton, JTextArea and JDBC together
    be able to give me a few tips on how to select
    certain data from a table using JCheckBox + JButton
    and display the data in a JTextArea? examples of such
    data could be CD/DVD/Game data - i want users of my
    video library system to be able to view CD/DVD/Game
    information by name, age category, type and year.
    Users should be able to click on a check box (e.g.
    view by name, age category, type or year) and press a
    button. What would happen then is that data would
    appear in the text area (which could be placed
    beneath the check box + button inside a frame).
    thanks for the help.Find the tutorials, go through them, then come back here when you have a specific problem you need help with. Yes we have experience in these areas, but we're not going to post links and code here just because you're too lazy to use Google and find it yourself.

  • RSAR_TRFC_DATA_RECEIVED Function module does not exist or EXCEPTION raised

    Dear All,
            We have 2 production systems one is a APO server & the other being BW server.
            While checking in SM58 of our APO production server we found that so many entries were in error saying "ERROR REQU_<number> PG# 12 In BW" with target system as BWCLNT<CLIENT NO>.
    We checked in both the production systems for any job failure w.r.t same time span but could find nothing.
    When we tried to solve this by using F6 option to re-execute the LUW it says "Functional Module doesnot exists or Exception Raised". After doing checks it was found out that the Functional Module (RSAR_TRFC_DATA_RECEIVED) was existing . So we need to know about how we can solve this EXCEPTION RAISED issue.
    Thanks & Regards,
    SAPAPO
    Edited by: SAP-APO on Dec 30, 2009 8:38 AM

    Hi,
    This migth be problem with not catching exact exception in the code.There might be data you are passing which not getting caught by the exception.
    If you are using any code add this FM in the code or else try to debug where exactly u r facing this problem.
    Regards,
    Shiva Kumar G.C

  • XSL transformation exception when using it in a subprocess

    Hi all
    I want to use a service task in sub-process that call a function with ref_cursor return type, when i map data association from output parameters to data object with xsl transformation an exception raise.
    in other hand my sub-process properties are : multiInstance, parallel , collection ,loop data input use an array , which create instances according to items of given array like http://www.avioconsulting.com/blog/simultaneous-creation-instances-array-oracle-bpm-11g
    by the way this feature works on service task that placed out of sub-process correctly.
    2.

    Hi Fazel,
    XSLT mapping is not working in the unpatched version of Oracle BPM 12c currently available.
    This work around is not great or even close to it, but the only way I've heard of anyone getting it to work is to right mouse click each of the individual children nodes.
    Know this bug has been reported by many people and has had a significant impact to all of us so it might be worth contacting Support to see if there might be a patch.
    Dan

  • Raise an event with no arguments

    In VB.net I can declare and raise an event like this
    Public Event SomeEvent()
    Public Sub SomeMethod
    RaiseEvent SomeEvent()
    End Sub
    I need to work out how to do this in c# however all of the examples of raising events include event handlers.  This won't work for me as I am raising this event over a COM interface, and so I can't send eventargs or non basic types through the interface
    to the client application.

    OK, Action doesn't work as I end up with the following error
    An exception of type 'System.InvalidCastException' occurred in AdtakerInterfaceSampleCsharp.exe but was not handled in user code
    Additional information: Unable to cast object of type 'System.__ComObject' to type 'System.Action'.
    You asked how to raise an event with no arguments in C# and I gave you the solution for this. You could certainly use an Action to raise an event with no arguments as my sample code clearly demonstrates.
    How to call your specific COM interface is a totally different topic.
    Please start a new thread if you have a new question. You may also want to provide some more details if you want anyone to be able to help you with this. Remember that the forums are for helping solving specific issues though, they are not for anyone to
    write an entire application, class or module for you :)

  • Help needed with JUComboBoxBinding

    Hi!
    Please, don't laugh, but I have some trouble using the JUComboBoxBinding.
    To test it, I've created a small test project (just a JClient panel with frame to run in) and I added a JComboBox, with an EnumerationBinding. This is what JDev9i produced:
    public void jbInit()
    this.setLayout(null);
    jComboBox1.setBounds(new Rectangle(105, 60, 275, 20));
    jComboBox1.setModel(JUComboBoxBinding.createNavigationBinding(panelBinding, jComboBox1, "OrtView", null, "OrtViewIter", new String[] { "Plz" }, null, null));
    this.add(jComboBox1, null);
    When I run it, then the first value is displayed in the JComboBox but the box is not enabled. I cannot pull down the list of values. Why?
    When I modify (one attribute added to attribute names) the line to:
    jComboBox1.setModel(JUComboBoxBinding.createNavigationBinding(panelBinding, jComboBox1, "OrtView", null, "OrtViewIter", new String[] { "Plz", "Name" }, null, null));
    then the ComboBox IS enabled, only one attribute (the first one) is displayed though. Could someone please explain this behaviour to me?
    Second question: when I further try to use this JComboBox later as a cell editor in a JTable by:
    JComboBox box = new JComboBox();
    box.setModel( JUComboBoxBinding.createNavigationBinding(panelBinding, box, "OrtView", null, "OrtViewIter", new String[] {"Plz", "Name"}, null, null) );
    tableColumn.setCellEditor( new DefaultCellEditor( box ));
    then the JComboBox is used as editor alright, but it is empty. Why?
    Thanks in advance
    Sascha Herrmann

    Hi,
    I think we are hitting code that is not (yet) finished!
    Here are my conclusions:
    JCombox has two methods, setEditor(...) to set the editor when the combobox is enabled, and setRenderer() to set the renderer that renders the selected value when the combobox is disabled.
    Now, the createNavigationBinding(...) method's last two arguments can be used to provide your own implemntation for each of them. A look inside this method shows this:
    <pre>
    public static MutableComboBoxModel createNavigationBinding(JUFormBinding juformbinding, JComboBox jcombobox, String s, String s1, String s2, String as[], ListCellRenderer listcellrenderer, ComboBoxEditor comboboxeditor)
    JUIteratorBinding juiteratorbinding = juformbinding.getRowIterBinding(s, s1, s2);
    JUComboBoxBinding jucomboboxbinding = new JUComboBoxBinding(jcombobox, juiteratorbinding, as, JUCtrlListBinding.LIST_OPER_NAVIGATE);
    jucomboboxbinding.refreshControl();
    if(!jucomboboxbinding.isSingleAttrList())
    if(listcellrenderer == null)
    listcellrenderer = new JUMultiAttrListCellRenderer(jucomboboxbinding.getAttributeDefs());
    if(comboboxeditor == null)
    comboboxeditor = new JUMultiAttrListEditor(jucomboboxbinding, jucomboboxbinding.getAttributeDef(0).getIndex());
    if(listcellrenderer != null)
    jcombobox.setRenderer(listcellrenderer);
    if(comboboxeditor != null)
    jcombobox.setEditor(comboboxeditor);
    jcombobox.setEditable(false);
    </pre>
    As you can see, if you pass null's for these two parameters, and if more than one attribute is passed, a JUMultiAttrListCellRenderer renderer and a JUMultiAttrListEditor editor are created for you.
    <b>Problem 1:</b>
    the isSingleAttrList() method just returns this mSingleAttrList variable you mentioned, which is always initialized to true (see the constructor):
    <pre>
    public JUCtrlListBinding(Object obj, JUIteratorBinding juiteratorbinding, String as[], int i)
    mSingleAttrList = true;
    // mSingleAttrList = as.length <= 1;
    </pre>
    In my opinion, it should read as the line that is commented out.
    <b>Problem 2:</b>
    When a combobox editor is provided, the control is disabled:
    <pre>
    jcombobox.setEditable(false);
    </pre>
    Should it not be 'enabled' (setEditable(true))?
    <b>A test</b>
    In the demo, I replaced the line
    <pre>
    // mId.setModel(JUComboBoxBinding.createNavigationBinding(panelBinding, mId, "InventoryItemView", null, "InventoryItemViewIter", new String[] {"Id", "Name"}, null, null));
    </pre>
    by
    <pre>
    mId.setEditable(false);
    JUIteratorBinding juiteratorbinding = panelBinding.getRowIterBinding("InventoryItemView", null, "InventoryItemViewIter");
    JUComboBoxBinding jucomboboxbinding = new JUComboBoxBinding(mId, juiteratorbinding, new String[] {"Id", "Name"}, JUCtrlListBinding.LIST_OPER_NAVIGATE);
    jucomboboxbinding.refreshControl();
    ListCellRenderer listcellrenderer = new JUMultiAttrListCellRenderer(jucomboboxbinding.getAttributeDefs());
    mId.setRenderer(listcellrenderer);
    </pre>
    to bypass both of the problems mentioned above.
    Result: no data is visible, neither in the control itself, neither in the drop down list. So the implementation of the JUMultiAttrListCellRenderer is either not correct, or not yet fully implemented.
    You can provide your own implementation of a MultiAttribute cell renderer (maybe taking the JUMultiAttrListCellRenderer as a start).
    But I think that the Oracle JDev team should help us on this one! A default cell renderer for multi attribute bindings should be provided and should work.
    Luc

  • Javax.servlet.ServletException: exception raised while creating Advisor

    I am adding some personalization to a jsp in portal 7.0 which worked fine in 4.0.
    I am importing the pz.tld and using the pz:div tag '<pz:div rule="admin">'. We
    have 'admin' set up as a segment in the EBCC just like in 4.0. When the jsp compiles,
    I get a 'javax.servlet.servletexception: exception raised while creating advisor'
    exception.
    I'm just really unfamiliar with the Advisor and am not sure where to start. Any
    help would be much appreciated.

    It appears this error might occur on JNDI lookup failure. If you do a
    diff between the web.xml and weblogic.xml files between 4.0 and 7.0 in
    your webapp's web-inf directory what differences do you find? Are the
    ejb-ref and ejb-reference entries for the Advisor and other EJB's present?
    Is the ejbadvisor.jar deployed in your application? Is it present in
    the application directory? Is there a ejb component entry in config.xml?
    Is there a module entry in application.xml?
    If you find that this is not the right direction to look for the problem
    please post the full stack trace and a pz:div code snippet.
    -- Jim
    chris wrote:
    I am adding some personalization to a jsp in portal 7.0 which worked fine in 4.0.
    I am importing the pz.tld and using the pz:div tag '<pz:div rule="admin">'. We
    have 'admin' set up as a segment in the EBCC just like in 4.0. When the jsp compiles,
    I get a 'javax.servlet.servletexception: exception raised while creating advisor'
    exception.
    I'm just really unfamiliar with the Advisor and am not sure where to start. Any
    help would be much appreciated.

  • Uncaught exception raised in Server Client-side plugin

    When I try to connect to my XServe from the Server Admin on my desktop computer. I get the following error:
    Uncaught exception raised in Server Client-side plugin
    Sorry but the feature you tried to access cannot be used. Exception is:
    In updateConfigurationViewFromDescription: NSInvalidArgumentException * -[NSCFNumber count]: unrecognized selector sent to instance 0x18819ee0 .
    There is a second error with similar wording.
    If I say ok to the warnings I can make changes but they do not save.
    I can access the Server Admin on the XServe
    Anyone know of a solution so that I can login and edit the settings for my XServe from a remote computer?

    I'm getting this too, server is XServe running 10.6.6, remote Server Admin is on a 10.5.8 PPC iMac. No errors with same remote against a PowerMac server running 10.5.8. No errors with 10.6.6 remote against either server.
    Unlike the OP, however, the changes I've tried "take." The pop-ups are annoying though.
    Another issue with the 10.5 Server Admin/10.6 Server, if it isn't a thread hijack, disk volumes do not show up in the File Sharing pane, Share Points appear OK.

  • 9.0.5.2: Problems with JUComboBoxBinding (range size wrong)

    This worked in 9.0.3.3:
    We have a simple JComboBox with a navigation binding.
    In 9.0.5.2 the navigation binding doesn't navigate anymore.
    The cause for this is that ADF somewhere for whatever reasons sets the range size of the underlying RSI to 1.
    This is done when DCBindingContainer.executeIfNeeded() is called.
    Why?
    If ADF sets the range size to 1, how is then the instruction rsi.setCurrentRowAtRangeIndex( selIndex ) in JUComboBoxBinding.actionPerformed() supposed to work?
    This is urgent.
    Sascha

    Sascha, are you using a migrated 903 JClient panel or a new 905 created panel?
    In ADF (all 905x), rangesize is managed at the iteratorBinding level by the setting in it's definition. You may set this value to 0, so that iterator binding assumes whatever the current range setting is.

Maybe you are looking for

  • DTW : Business Partner without PAN No.

    Dear All, client having lots of customer with having PAN No. When i Data Trasnfer from DTW of Business Partner then its giving me an error : PAN No. must be provided with the business partner if the subject to withholding Tax Checkbox is selected. af

  • Issues Adding MobileMe Gallery to Site Pages

    Hello, I am trying to add a number of MobileMe Galleries to my site, from my online MobileMe galleries that are currently online. However, when I go to chose a gallery, it tells me there are no galleries to choose from. I have 8 or so galleries on my

  • Handling digest output

    Please consider the following code. It seems to work fine. However, the output clearly includes unusual characters such as squares and characters from printed languages other than English (I recognized some as being used in German - many others I hav

  • PO: Combining repeating line item info with individual line item detail.

    I want to simplify the display PO t-code ME23N (and ultimately create and change) and I want to have a scrollable table with the line item info but I want to include in that scrollable table details that are only available on the item detail sub-area

  • Error IN and Error OUT

    Is error in and error out important? If I leave out error in & out can I VI still run. What is the purpose of errir in & out?