NPE setting properties with CustomEvent

Hello, I am trying out CustomEvents, but there is something strange setting properties. I try to do a
public class CustomEvents extends VBean {
   private ID myEvent = ID.registerProperty("MY_EVENT");
   private ID myData = ID.registerProperty("MY_DATA");
   private IHandler handler = null;
   private void log(String message) {
      System.out.println(message);
   public CustomEvents() {
      log("Constructor");
   public final void init(IHandler handler) {  
      this.handler = handler;
      super.init(handler);
      log("Init");
      try {
         CustomEvent customEvent = new CustomEvent(handler, myEvent);
         if ( (myEvent == null) || (myData == null) || (handler == null) || (customEvent == null) ) {
            log("There be nulls");
         handler.setProperty(myData, "hep");
         dispatchCustomEvent(customEvent);
      } catch (Exception e) {
         e.printStackTrace();
      log("done");
}but end up with an
Constructor
Init
java.lang.NullPointerException
     at oracle.forms.handler.JavaContainer.setProperty(Unknown Source)
     at fi.affecto.webmarela.forms.CustomEvents.init(CustomEvents.java:31)
     at oracle.forms.handler.UICommon.instantiate(UICommon.java:2984)
     at oracle.forms.handler.UICommon.onCreate(UICommon.java:1040)
     at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
     at oracle.forms.engine.Runform.onCreateHandler(Runform.java:2254)
     at oracle.forms.engine.Runform.processMessage(Runform.java:3347)
     at oracle.forms.engine.Runform.processSet(Runform.java:3491)
     at oracle.forms.engine.Runform.onMessageReal(Runform.java:3099)
     at oracle.forms.engine.Runform.onMessage(Runform.java:2857)
     at oracle.forms.engine.Runform.sendInitialMessage(Runform.java:5635)
     at oracle.forms.engine.Runform.startRunform(Runform.java:1207)
     at oracle.forms.engine.Main.createRunform(Unknown Source)
     at oracle.forms.engine.Main.start(Unknown Source)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
done
*/any suggestions? myData is not null but has it failed to hook on to something during initialization? I decompiled JavaContainer and it only has null checks for top-level incoming parameters and the stack trace doesn't give any more detail. Or am I misunderstanding the usage of Custom Events completely?
Thankful for help,
-Nik

Nicklas,
the problem is that Forms does not have a property
handler.setProperty(myData, "hep");
You need to override
public boolean setProperty(ID ID, Object object)
in your Java implementation. Then within this method you evaluate if the ID is "myData" and if, do something. If no ID match can be found then you call
return super.setProperty(_ID, _object);
Thsi way all custom properties are handled by you and all Forms properties are passed to Forms.
Frank

Similar Messages

  • Setting properties with parameter values in templates

    I'm using templates with JSF. I'd also like to acquire the value of a request parameter and pass it to a setter method in a ManagedBean so that I can derive the page body from it. My simplified template looks like this :
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:utils="http://java.sun.com/jsf/composite/utils" xmlns:f="http://java.sun.com/jsf/core">
    <!-- General Meta -->
    <f:metadata>
         <f:viewParam name="myparameter" value="#{myBean.someProperty}" />
    </f:metadata>
    <h:head>
              <title>No title here.</title>
    </h:head>
    <h:body>
         <div id="page">
              <div id="main">
                    <ui:insert name="body" />
              </div>
              <utils:navigation />
         </div>
    </h:body>
    </html>The "body", created with ui:composition, is using "myBean". But it doesn't matter because the "set" method isn't being called on the bean. Where should I put "f:viewParam" code
    to set the property of a ManagedBean if I'm using templates?
    Thank you in advance for any help.

    Problem solved.
    Found the solution to my general problem by making use of the Annotation "ManagedProperty". It only applies to request scope apparently but that is the scope where I need it.
    I found these two pages helpful.
    http://stackoverflow.com/questions/4888942/viewparam-vs-managedpropertyvalue-param-id
    http://download.oracle.com/javaee/6/api/javax/faces/bean/ManagedProperty.html

  • "Message from Webpage (error) There was an error in the browser while setting properties into the page HTML, possibly due to invalid URLs or other values. Please try again or use different property values."

    I created a site column at the root of my site and I have publishing turned on.  I selected the Hyperlink with formatting and constraints for publishing.
    I went to my subsite and added the column.  The request was to have "Open in new tab" for their hyperlinks.  I was able to get the column to be added and yesterday we added items without a problem. 
    The problem arose when, today, a user told me that he could not edit the hyperlink.  He has modify / delete permissions on this list.
    He would edit the item, in a custom list, and click on the address "click to add a new hyperlink" and then he would get the error below after succesfully putting in the Selected URL (http://www.xxxxxx.com), Open
    Link in New Window checkbox, the Display Text, and Tooltip:
    "Message from Webpage  There was an error in the browser while setting properties into the page HTML, possibly due to invalid URLs or other values. Please try again or use different property values."
    We are on IE 9.0.8.1112 x86, Windows 7 SP1 Enterprise Edition x64
    The farm is running SharePoint 2010 SP2 Enterprise Edition August 2013 CU Mark 2, 14.0.7106.5002
    and I saw in another post, below with someone who had a similar problem and the IISreset fixed it, as did this problem.  I wonder if this is resolved in the latest updated CU of SharePoint, the April 2014 CU?
    Summary from this link below: Comment out, below, in AssetPickers.js
    //callbackThis.VerifyAnchorElement(HtmlElement, Config);
    perform IISReset
    This is referenced in the item below:
    http://social.technet.microsoft.com/Forums/en-US/d51a3899-e8ea-475e-89e9-770db550c06e/message-from-webpage-error-there-was-an-error-in-the-browser-while-setting?forum=sharepointgeneralprevious
    TThThis is possibly the same information that I saw, possibly from the above link as reference.
    http://seanshares.com/post/69022029652/having-problems-with-sharepoint-publishing-links-after
    Again, if I update my SharePoint 2010 farm to April 2014 CU is this going to resolve the issue I have?
    I don't mind changing the JS file, however I'd like to know / see if there is anything official regarding this instead of my having to change files.
    Thank you!
    Matt

    We had the same issue after applying the SP2 & August CU. we open the case with MSFT and get the same resolution as you mentioned.
    I blog about this issue and having the office reference.
    Later MSFT release the Hotfix for this on December 10, 2013 which i am 100% positive should be part of future CUs.
    So if you apply the April CU then you will be fine.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • The document could not be saved. The server said: "The operation failed because an unexpected error occurred. (Result code 0×80020005)" Please ensure you have completed all required properties with the correct information and try again.

    I am having problems  saving documents back to SharePoint when any of the document properties (metadata columns) are set to be "managed metadata". The check-in/save fails with error:
    The document could not be saved. The server said:
    “The operation failed because an unexpected error occurred. (Result code 0×80020005)”
    Please ensure you have completed all required properties with the correct information and try again.
    I have seen similar threads that suggest this is a known issue with this version of Acrobat but I would like conformation from Adobe that this is a known issue and whether it is fixed in a newer version?
    Adobe Acrobat version 10.1.13
    SharePoint 2010

    Hi quodd,,
    We are sorry for the issue being faced by you. I need some information from you so that I take further steps:
    1. Which Adobe product are you using Acrobat or Adobe reader- what is the complete version?
    2. How are you opening and saving the PDF, the exact workflow?
         Are you doing it from within Adobe Reader/Acrobat application or opening it from browser, doing changes and saving it using browser itself.
    3. Can you try to save a PDF to library with Custom template and managed metadata columns using browser directly.
    4. Please verify that columns name do not contain spaces or some other special characters.
       Can you try to save PDF to library with Custom template and just a single managed metadata column  with a simple name
    Thanks,
    Nikhil Gupta

  • TDMS Set Properties in a loop?

    I am using LV 8.5 and am trying to apply TDMS properties to multiple channels in one fell swoop, with the idea of being able to automate it for the number of channels currently active.  I know how to do this, except for one step I'm struggling with.  I keep getting the error:
    "LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    =========================
    NI-488:  Command requires GPIB Controller to be Controller-In-Charge."
    coming from the tdms set properties.  I'm feeding it an an indexing array of strings, which I believe are C-strings so null terminator as the help files says it struggles with such, and no addresses.  I've attached a partially completed VI that is otherwise working.
    Thanks for your assistance,
    Bret Dahme
    Solved!
    Go to Solution.
    Attachments:
    Multiple_inputs.vi ‏102 KB

    Bingo!  Glad that it was a quick and easy solution.  The help file says group or channel and nothing that i can see of requireing either.
    Thanks for the help!
    Attachments:
    Multiple_inputs.vi ‏98 KB

  • General class and setting properties vs specific inner class

    This is a general question for discussion. I am curious to know how people differentiate between instantiating a standard class and making property adjustments within a method versus defining a new inner class with the property adjustments defined within.
    For example, when laying out a screen do you:
    - instantiate all the objects, set properties, and define the layout all within a method
    - create an inner class that defines the details of the layout (may reference other inner classes if complex) that is then just instantiated within a method
    - use some combination of the two depending on size and complexity.
    - use some other strategy
    Obviously, by breaking the work up into smaller classes you are simplifying the structure since each class is taking on less responsibility, as well as hiding the details of the implementaion from higher level classes. On the other hand, if you are just instantiating an object and making some SET calls is creating an inner class overkill.
    Is there a general consensus for an approach? I am curious to hear the approach of others.

    it's depends on your design..
    usually, if the application is simple and is not expected to be maintain (update..etc..) than I just have all the building of the gui within the same class (usually..the main class that extends JFrame).
    if the application follows the MVC pattern, than I would have a seperate class that build the GUI for a particular View. I would create another class to handle the ActionEvent, and other event (Controller)
    I rarely use inner class...and only use them to implements the Listerner interface (but only for simple application)..

  • SETTING PROPERTIES FOR A MAPPING VIA OMBPLUS ISN'T WORKING

    Hi, i have a problem with OMBPLUS:
    I have a script which creates a mapping and then is supposed to change properties for the mapping and seems to do so via OMBRETRIEVE. But when looking in OWB the properties aren't changed.
    If I change any of the properties inside OWB and then run the script again, then the properties are changed. Does anyone know why the behavior is like this?
    /thanx Joel
    When running the script the output looks like this:
    CREATE MAPPING 'XXX_1_IN'... DONE
    DEFAULT_OPERATING_MODE={SET BASED FAIL OVER TO ROW BASED}
    ALTER MAPPING PROPERTIES FOR 'T_A_TEST_XXX_1_IN'... DONE
    DEFAULT_OPERATING_MODE={SET BASED}
    -- ALL DONE --
    The script:
    set temp_module "TMP"
    set tmp_table1 "XXX_1"
    set tmp_table2 "XXX_2"
    set map_name "XXX_1_IN"
    puts -nonewline "CREATE MAPPING '$map_name'... "
    OMBCREATE MAPPING '$map_name' \
    ADD TABLE OPERATOR '$tmp_table1' BOUND TO TABLE '../$temp_module/$tmp_table1' \
    ADD TABLE OPERATOR '$tmp_table2' BOUND TO TABLE '../$temp_module/$tmp_table2' \
    ADD CONNECTION \
    FROM GROUP 'INOUTGRP1' OF OPERATOR '$tmp_table1' \
    TO GROUP 'INOUTGRP1' OF OPERATOR '$tmp_table2'
    OMBCOMMIT
    puts "DONE"
    set prop [OMBRETRIEVE MAPPING '$map_name' GET PROPERTIES (DEFAULT_OPERATING_MODE) ]
    puts "DEFAULT_OPERATING_MODE=$prop"
    puts -nonewline " ALTER MAPPING PROPERTIES FOR '$map_name'... "
    OMBALTER MAPPING '$map_name' \
    SET PROPERTIES (DEFAULT_OPERATING_MODE) \
    VALUES ('SET BASED')
    OMBCOMMIT
    set prop [OMBRETRIEVE MAPPING '$map_name' GET PROPERTIES (DEFAULT_OPERATING_MODE) ]
    puts "DEFAULT_OPERATING_MODE=$prop"
    puts "-- ALL DONE --"
    puts ""
    OMBDISCONNECT

    Thanks for your idea Roman, but it doesn't solve my problem.
    The problem is regardless of which property (Runtime parameters in OWB) I try to change. Before ANY property is changed via OWB (GUI) the changes via OMB doesn't come to effect (even if RETREIVE after OMBCOMMIT says so).
    Regards, Joel

  • SETTING PROPERTIES FOR A MAPPING VIA OMBPLUS ISN'T WORKING (OWB10gR2)

    Hi, i have a problem with OMBPLUS:
    I have a script which creates a mapping and then is supposed to change properties for the mapping. The script worked in previous releases of OWB but after upgrading to 10gR2 I get an error that DEFAULT_OPERATING_MODE property does not exist.
    Does anyone know why I get the error?
    /thanx Joel
    When running the script the output looks like this:
    CREATE MAPPING 'XXX_1_IN'... DONE
    DEFAULT_OPERATING_MODE={SET BASED FAIL OVER TO ROW BASED}
    ALTER MAPPING PROPERTIES FOR 'T_A_TEST_XXX_1_IN'...
    OMB02902: Error setting property DEFAULT_OPERATING_MODE of T_A_TEST_XXX_1_IN: MMM1034: Property DEFAULT_OPERATING_MODE does not exist.
    -- ALL DONE --
    The script:
    set temp_module "TMP"
    set tmp_table1 "XXX_1"
    set tmp_table2 "XXX_2"
    set map_name "XXX_1_IN"
    puts -nonewline "CREATE MAPPING '$map_name'... "
    OMBCREATE MAPPING '$map_name' \
    ADD TABLE OPERATOR '$tmp_table1' BOUND TO TABLE '../$temp_module/$tmp_table1' \
    ADD TABLE OPERATOR '$tmp_table2' BOUND TO TABLE '../$temp_module/$tmp_table2' \
    ADD CONNECTION \
    FROM GROUP 'INOUTGRP1' OF OPERATOR '$tmp_table1' \
    TO GROUP 'INOUTGRP1' OF OPERATOR '$tmp_table2'
    OMBCOMMIT
    puts "DONE"
    set prop [OMBRETRIEVE MAPPING '$map_name' GET PROPERTIES (DEFAULT_OPERATING_MODE) ]
    puts "DEFAULT_OPERATING_MODE=$prop"
    puts -nonewline " ALTER MAPPING PROPERTIES FOR '$map_name'... "
    OMBALTER MAPPING '$map_name' \
    SET PROPERTIES (DEFAULT_OPERATING_MODE) \
    VALUES ('SET BASED')
    OMBCOMMIT
    puts "-- ALL DONE --"
    puts ""
    OMBDISCONNECT

    Hi, don't look at the script it was copied and pasted from an old thread. The problem is the error I get when trying to execute:
    OMBALTER MAPPING 'map_name' \
    SET PROPERTIES (DEFAULT_OPERATING_MODE) \
    VALUES ('SET BASED')
    OMB02902: Error setting property DEFAULT_OPERATING_MODE of map_name: MMM1034: Property DEFAULT_OPERATING_MODE does not exist.
    //Joel

  • Mojarra doesn't implement setting properties on declared converters?

    Hi,
    I tried to register a custom converter in faces-config, by means of the following declaration:
    <converter>
              <description>Formats a number with exactly two fractional digits.</description>
              <converter-id>numberformat.two</converter-id>
              <converter-class>javax.faces.convert.NumberConverter</converter-class>
              <property>
                   <property-name>maxFractionDigits</property-name>
                   <property-class>java.lang.Integer</property-class>
                   <default-value>2</default-value>
              </property>
              <property>
                   <property-name>minFractionDigits</property-name>
                   <property-class>java.lang.Integer</property-class>
                   <default-value>2</default-value>
              </property>
         </converter>I've used this kind of code before a long time ago when using MyFaces, and this always Just Worked. However, with Mojarra it just doesn't work.
    I used the converter on my view like this:
    <h:outputText value="#{bb.someVal}">
         <f:converter converterId="numberformat.two"/>
    </h:outputText>By putting a breakpoint in javax.faces.convert.NumberConverter, I can check that the converter is being called, but the properties just aren't set on the instance.
    I hunted the Mojarra source code, but I also can't find any code that is supposed to set these properties.
    For instance, the ApplicationImp.createConverter method consists of this code:
    public Converter createConverter(String converterId) {
            if (converterId == null) {
                String message = MessageUtils.getExceptionMessageString
                    (MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID, "convertedId");
                throw new NullPointerException(message);
            Converter returnVal = (Converter) newThing(converterId, converterIdMap);
            if (returnVal == null) {
                Object[] params = {converterId};
                if (logger.isLoggable(Level.SEVERE)) {
                    logger.log(Level.SEVERE,
                            "jsf.cannot_instantiate_converter_error", converterId);
                throw new FacesException(MessageUtils.getExceptionMessageString(
                    MessageUtils.NAMED_OBJECT_NOT_FOUND_ERROR_MESSAGE_ID, params));
            if (logger.isLoggable(Level.FINE)) {
                logger.fine(MessageFormat.format("created converter of type ''{0}''", converterId));
            return returnVal;
        }So without all the error checking, the method basically boils down to just this:
    return (Converter) newThing(converterId, converterIdMap);The heart of newThing consists of this:
    try {
                result = clazz.newInstance();
            } catch (Throwable t) {
                throw new FacesException((MessageUtils.getExceptionMessageString(
                      MessageUtils.CANT_INSTANTIATE_CLASS_ERROR_MESSAGE_ID,
                      clazz.getName())), t);
            return result;So there's no code that's supposed to set these properties in sight anywhere.
    Also the converter tag (com.sun.faces.taglib.jsf_core.ConverterTag) nor any of its base classes seems to contain such code.
    Either I'm doing something very wrong, or Mojarra has silently removed support for setting properties on custom converters, which would seem awkward.
    Any help would be greatly appreciated.

    rlubke wrote:
    Mojarra has never supported such functionality, so it hasn't been silently removed.Thanks for explaining that. Like I said, the silently removed option thus was the less likely of the two ;)
    The documentation for this converter sub-element states:
    <xsd:element name="property"
    type="javaee:faces-config-propertyType"
    minOccurs="0"
    maxOccurs="unbounded">
    <xsd:annotation>
    <xsd:documentation>
    Nested "property" elements identify JavaBeans
    properties of the Converter implementation class
    that may be configured to affect the operation of
    the Converter.  This attribute is primarily for
    design-time tools and is not specified to have
    any meaning at runtime.
    </xsd:documentation>
    </xsd:annotation>
    </xsd:element>
    That documentation is quite clear indeed. I now notice that the project I was working on still had a JSF 1.1 faces-config DTD, and that documentation said this:
    Element : property
    The "property" element represents a JavaBean property of the Java class represented by our parent element.
    Property names must be unique within the scope of the Java class that is represented by the parent element,
    and must correspond to property names that will be recognized when performing introspection against that
    class via java.beans.Introspector.
    Content Model : (description*, display-name*, icon*, property-name, property-class, default-value?,
    suggested-value?, property-extension*)So there it actually says nothing about the design time aspect.
    I do have to mention that I think this entire difference between design time and run time could maybe have been a bit more officially formalized. Don't get me wrong, I think JSF and the whole of Java EE is a really good spec that has helped me tremendously with my software development efforts, but this particular thing might be open for some improvements. A similar thing also happens in the JPA spec, where some attributes on some annotations are strictly for design time tools and/or code generators, but it's never really obvious which ones that are.
    More on topic though, wouldn't it actually be a good idea if those properties where taken into account at run-time? That way you could configure a set of general converters and make them available using some ID. In a way this wouldn't be really different in how we're configuring managed beans today.

  • [JS CS3]setting properties of inline rectangle

    Hi,
    This doesn't seem to work for somes reason...
    myLibItem = myLib.assets.item("Steunvraag");
    var myIP = myFrame.texts.item(0).insertionPoints.item(-1);
    myLibItem = myLibItem.placeAsset(myIP);
    myLibItem.anchoredObjectSettings.anchoredPosition = AnchorPosition.anchored;
    So I've placed a library asset in an insertion point - so far so good - but when i want to set properties of the result (a rectangle), I get an error about the object not supporting the method anchoredObjectSettings. I use the same construction elsewhere in the script with a textframe created from scratch, and that works fine.
    Any suggestions?
    thnx

    placeAsset returns an array (even for this case where there can only ever be one item). So:
    myLibItem = myLibItem.placeAsset(myIP)[0];
    Dave

  • Setting unscaled with on class extending LinkButton?

    I have a class I made that extends LinkButton so that you can put HTMLText in as the label.
    it works but the background/highlist that shows is way too big because the unscalled with is setting as though it is regular text not htmlText, but I cannot override/set the unscaled width because it is private.
    Anyone have any ideas?
    here is my class:
    package com.kranichs.components
    import mx.controls.LinkButton;
    public class HTMLLinkButton extends LinkButton
    protected var _isHTML:Boolean;
    public function HTMLLinkButton()
    super();
    [Bindable]
    public function set isHTML(value:Boolean):void
    _isHTML = value;
    public function get isHTML():Boolean
    return _isHTML;
    override protected function updateDisplayList(unscaledWidth:Number,
                                                      unscaledHeight:Number):void
            super.updateDisplayList(unscaledWidth, unscaledHeight);
            if(_isHTML)
            textField.htmlText = label;

    Parents size their children based on either explicitWidth/Height or measuredWidth/Height.  You'll probably need to override measure()
    You generally don't want to set properties in updateDisplayList that might invalidate measurement so you should probably apply the label in commitProperties() override.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Coding Multiple TDMS Set Properties Efficientl​y

    I am trying to save some test settings as TDMS properties.  I have figured out the mechanics of saving individual properties to the file, but I have 25 or so properties to write to the file.  What is the most efficient way to code this in LV, so that I don't have to use the "TDMS Set Properties" block 25 different times?  I have tried sending the block arrays, but it doesn't like that.  Is there some kind of loop I can use?
    Steve
    Solved!
    Go to Solution.

    Another idea is this:
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Oracle9i Intermedia cannot set properties

    hai, i want to ask why Oracle9i in my server cant set properties for mp3 or wav (audio length can be recognized, but the value of mimetype and format is ???). but when i use another Oracle9i in another computer, i can. when i check with System.out.println (Java), the file uploaded with servlet, i use method OrdHttpUploadFile.getMimeType() its work (the output is "audio/mpeg") but when OrdAudio.getMimeType() its output is "???"
    any idea

    no exception at all
    i'm using Java servlet for upload and retrieve media, with JBoss as Application Server,
    this code is for upload:
    oracle.jdbc.driver.OracleCallableStatement insertAudio =
    (oracle.jdbc.driver.OracleCallableStatement)
    conn.prepareCall("BEGIN "+
    "INSERT INTO audiotab VALUES(1,:1,:2,:3,:4,:5,SYSDATE," +
    "ORDSYS.ORDAudio.init(),:6,:7,:8) " +
    "RETURN audioid INTO :9 ; END;");
    ... (fill bind variable)
    insertAudio.executeUpdate();
    oracle.jdbc.driver.OraclePreparedStatement selectAudio=
    (oracle.jdbc.driver.OraclePreparedStatement)
    conn.prepareStatement(
    "SELECT * FROM audiotab WHERE audioid=? FOR UPDATE ");
    ... (fill bind variable)
    oracle.jdbc.driver.OraclePreparedStatement updateAudio=
    (oracle.jdbc.driver.OraclePreparedStatement)
    conn.prepareStatement(
    "UPDATE audiotab SET audiofile=:1 WHERE audioid=:2");
    .... (fill bind variable)
    OracleResultSet rs=(OracleResultSet)selectAudio.executeQuery();
    if(rs.next())
    OrdAudio ord=(OrdAudio)rs.getCustomDatum(8,OrdAudio.getFactory());
    data.loadAudio(ord);
    formData.release();
    updateAudio.setCustomDatum(1,ord);
    updateAudio.setLong(2,audioid);
    updateAudio.executeUpdate();
    conn.commit();
    there is one thing that maybe weird (for me), when i'm using Toad from Quest Software, i look the ORDAudio, THERE IS audio/mpeg as its MIME type, and other properties was right, so what happen with this?? is it because of Java, Oracle, or web server, i'm using tomcat 4 before JBoss 4, and the result was same.
    and there is one thing that disturbing me, why method getCustomDatum() from OracleResultSet was deprecated, although it works but its annoying, is there other method to get the ORDAudio and other ORD.

  • Setting properties to applets...

    hi This is a new comer to developing applets.
    Can i set properties to an applet? i mean i have an applet running and for that applet the user shoud be able to right clik on it and see set of properties scroll down like change font color etc.....how can i make it possible.
    I'd appreciate if anybody can help me with some links so that i can get to work more on it or some sample code.
    Thanks in advance..

    hai
    hope the below link find some solution
    rajesh
    http://java.sun.com/docs/books/tutorial/uiswing/components/list.html

  • HT204053 I have another Apple ID from when I originally set up this iPod, now I can't reset it as I am also set up with Find My iPhone which may have been doen by mistake I have been in contact with Apple itself and they can't fix the problem so far

    i have originally forgotten my pass code for a new iPod Touch, now I have with Apple's help reset it to factory, my issue is due to the change in my Apple ID , the iPod will not  let me set it up under the new Id or the old one.I also have been set up with find my iPhone and I don't remember if I did this or not, could have been the grand children trying to help out. Any ideas or suggestions, I haven't even used this yet and I have owned it for 6months already. Really am disappointed that the process is so difficult to navigate.

    I have also noticed the same "problem".  I do not fully understand the impact of using the same ID on multiple computers and devices if I want to keep them all in sync.

Maybe you are looking for

  • Payroll PCR : IF THEN ELSE based on WT

    Hi, I need to get a decision based on the specific value of a WT. I created a PCR which I call using the IF - function. However, whenever entering the PCR it looks like I got no access to the stored wage types. Anyone knows the specific operand to ge

  • What is the max RAM I can have installed?

    I have a MBP 13" that is running extremely slow and the dang pinwheel of death shows up all the time. Can anyone tell me how much I can put in it?  For that matter - what kind of RAM should I put in? Thanks for all help.

  • Idoc - File, file name sent in IDOC

    Hi All, Scenario is : IDOC to File Name of the file to be created at receiver is sent in an IDOC that is, a field in IDOC contains file name. And the requirement is , this file name should be copied in the message mapping to the corresponding adapter

  • Cannot export video from iphoto to other location

    Hello , i could not move video from iphoto to external hard disk or desktop. I'm using Mac Pro with RD. The steps I did as below: 1. Select the video 2. File, export , select origin, ok 3.  error message appear stated that video could not be prepared

  • How to get YYYY-MM-DD

    Hi, I am trying to get a format of YYYY-MM-DD from 10/1/2005 and cannot get from the below program. any help in this regard is appreciated. Thanks Chat import java.util.*; import java.text.*; public class GetSampleDate {      public static void main(