Bug report, toplink lacks checking for required attributes

given the following code, I get an ORA-00911: invalid character error code . Instead you should expect to be getting an error from toplink saying missing argument...
final String sql = "select....where line.Da_Object_Id =#id ";
final DataReadQuery dataReadQuery = new DataReadQuery();
dataReadQuery.setSQLString(sql);
dataReadQuery.addArgument("id"); // tell it #id is a marker
dataReadQuery.bindAllParameters();
List databaseRows = (List) uow.executeQuery(dataReadQuery);
the code is wrong in the executeQuery needs to have a vector of the arguments for the query..

For Oracle TopLink customers can report bugs using a support request on metalink.oracle.com.
For TopLink Essentials customer can directly file bugs in the GlassFish system.
Doug

Similar Messages

  • Error when using a condition for required attribute

    Hi
    I have a requirement to validate the mandatory fields only when the submit button is pressed....if some other button is pressed or some how the form is submitted the validations should not be performed....
    I have used required="#{MyBB.somecondition}" for all the mandatory fields...the method that is being called for doing the condition check is given below:
    public boolean isSomeCondition() {
        // assumes submitButton is a component binding 
        FacesContext fc = FacesContext.getCurrentInstance();
        Map reqParams = fc.getExternalContext().getRequestParameterMap();
        return reqParams.containsKey(submitButton.getClientId());
      }It is same that is given at the following location
    http://wiki.apache.org/myfaces/How_The_Immediate_Attribute_Works ---Soln 3
    But the problem is if I am submitting the form using Javascript from another page(page is a popup that is opened inside the current window), this condition doesnt work and it gives me an error saying "Check some field for its value"
    Please help me sort out this problem
    Thanks

    I think the problem is not clear....my mistake
    I try to be more elaborate on this....
    I open up a popup page from my main window....Here I perform a search(lets say there is a requirement for finding the Country and pincode for a particular city that the user enters)
    Now when I select the particular row in the datatable and click the submit button...... I want the selected values to be filled inside the parent window.....
    I want to bring to your notice that the button that is clicked is in the popup page...not in the parent window.....
    So you see that when that button in popup is clicked i am submiting the form of the parent window and during that time I dont want the validation to occur..... To submit the form of the parent window I use the Javascript like this : window.opener.document.forms[0].submit();Also one more thing that I want to mention is that the method that is used for specifying the condition for required attribute for mandatory fields in the parent window works fine for any button that i click inside my parent window......
    What I mean by this is lets say I have a button to add a dynamic row into my parent page then also I have to submit the form but during that time validation should not occur and it works fine.
    So now I think its clear that the Javascript is being invoked from another page which is submitting the parent window.....
    Then you're doing something wrong. Invoking the wrong button maybe? So please enlighten me where i am wrong and how possibly would I know which button I am invoking??

  • Check for required fields before locking subforms and submitting

    Hello,
    I have a 5-page form with many questions, to be completed by the original requestor and multiple approvers.  What I'm trying to do is have the original requestor's Submit button on p. 3 lock the input on the first three pages, but first check if all those fields have some content.  I currently have all the fields on pp. 1-3 set to "Required" in the object properties, but my script still locks them when there's is one empty one.  Here's what I have:
    //Lock portions of form
    Page1.access = "readOnly"
    Page2.access = "readOnly"
    Page3.access = "readOnly"
    //Save document, allow user to change name
    app.execMenuItem("SaveAs");
    //Submit via e-mail
    Submit_REAL.event__click.submit.target = "mailto:[email protected]" +
    "?subject=Subject text" +
    "&body=Message";
    Submit_REAL.execEvent("click");
    The automatic check for required fields happens after the pages get locked.  I would like the check to stop the process before it locks the pages.  Is there any way to check all at once that all "Required" fields on those pages have some content before allowing the script to proceed?  I know how to script it to manually check the 50 or so questions on those pages, but I would like to avoid that.  Thanks for any help.

    There are a few problems that I can see from the start. First, your code is going to pick up EVERY node that exists on these pages. Some of those nodes will not have a rawValue, and some will not have an actual name. As an example, you can take your code and create a text field to dump all of the names of the nodes that you get when you pull in all of the nodes this way. Here's an example:
    The result:
    Now, the question is, do you have a consistent naming convention for your fields that might be empty? That could be text fields, radio button lists, etc. For instance, I always prefix the names of objects in order to more easily keep track of what they are in scripts. Since I'm doing that, I can check the name of the field for tf, nf, rbl, cb, or whatever I have included to make sure that I'm checking an actual field before I check for things like rawValue.
    var nodeName = oNodes.item(nNodeCount).name;
    if (nodeName.indexOf("tf")>-1 || nodeName.indexOf("rbl") > -1 || /*check other field types*/) {
      //insert your code to check for empty answers here
    As for your line 7 issue. The syntax problem is that you've put extra parentheses in your if statement. Take out the parentheses that are just before and after the or "||".
    *This is my fourth attempt to reply. Something was going on with Adobe/Jive earlier, I suppose.

  • AnyConnect hangs when checking for required updates

    Several of our customers require us to use Cisco AnyConnect to connect to their computers.  I cannot connect to any of them because AnyConnect hangs when checking for required updates.  If I start AnyConnect myself, it will eventually (after five minutes) tell me that it cannot connect to a server.  If it is started from a web page, AnyConnect hangs forever.
    In the past, this error has been random.  If I try later, or the next day, it may work.  Or it may not.
    No customer has been able to give us any support on this issue.
    Could you please give me some ideas on how to overcome this problem?
    Thank you very much.

    Disable anti virus software if installed
    Make sure the firewall is turned off in System Preferences > Security & Privacy > Firewall
    Make sure Gatekeeper is enabled
    Open System Preferences > Security & Privacy then select the General tab.
    Make sure either Mac App Store or Mac App Store and identified developers is selected. If that area is grayed out, click the padlock icon to proceed.
    OS X: About Gatekeeper

  • [Bug Report] Rhythmbox missing depedency for "tdb"

    Here's the bug report:
    https://bugs.archlinux.org/task/29310
    Just tryed to install Rhythmbox and had to track down that depedency.  Just figured I'd post it here to try to give it some more attention.  Seems like a pretty easy fix that could save some users some frustration.  Go give it a vote on the bug report so the developers will see this.

    For Oracle TopLink customers can report bugs using a support request on metalink.oracle.com.
    For TopLink Essentials customer can directly file bugs in the GlassFish system.
    Doug

  • B2B Document Editor Global Replace for Requirement attribute

    Hi Gurus,
    I am having hard time to replace requirement attribute from required to optional to all segments and fields through B2B document editor.
    Here is my scenario...
    I am building a spec for "Application A" and it is expecting HL7 structure with all segments and fields are optionanl.
    I tried with "Find & Replace" tool but when I select Segment and Field nodes it is not giving an option for "Requirement" (Search Atributes section)
    Any trick?
    Thanks,
    Datla

    Thanks Anuj,
    It would be very helpful and save lot of time for us if we have that functionality in the tool. I am wondering what stopping in the tool to replace "Requirement" and "User Option" attributes as it is allowing to replace all other (Data Type, ID, Name, Position,Purpose, Repeats) attributes.
    Thanks,
    Datla

  • Why have my bug reports not been triaged for over four months?

    https://bugzilla.mozilla.org/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&emailreporter1=1&emailtype1=exact&email1=a.vanloon%40alexandervanloon.nl&field0-0-0=bug_status&type0-0-0=notequals&value0-0-0=UNCONFIRMED&field0-0-1=reporter&type0-0-1=equals&value0-0-1=a.vanloon%40alexandervanloon.nl&list_id=9847693
    I filed five bugs in November and December last year. To my surprise and disappointment, none have been triaged or answered by the Firefox OS developers. I do know they answer other bug reports. Does anyone know why this might be? Are there not enough developers to process all bug reports? Or is there something wrong with my bug reports in particular?

    Hi AlexanderVanLoon,
    We would be very happy for help with bugs that are reported in bugzilla. However giving them a proper component and an elaborate description with clear stp (steps to reproduce)
    *[https://developer.mozilla.org/en-US/docs/Mozilla/QA/Bug_writing_guidelines]
    *[https://quality.mozilla.org/docs/bugzilla/starter-kit/how-to-write-a-proper-bug-part-2/#all Part 2]
    *[https://quality.mozilla.org/docs/bugzilla/starter-kit/how-to-write-a-proper-bug/ Quality bug notes]
    *[https://developer.mozilla.org/en-US/Firefox_OS/Developing_Firefox_OS/Firefox_OS_bugwork Specific Guidelines to Status of Firefox OS bugs]

  • XSD Validation, checking for required elements

    I'm using the FTP Adapter to retrieve a flat file in a format like this -
    H|1|1234|5-APR-2007
    L|1|33123|2
    L|1|12345|1
    L|1|6969|5
    S|1|Milton Park, Abingdon, OX142NF
    I have generated an XSD file using the built in wizard that looks like this -
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    targetNamespace="http://bpelns.corp.rmd.org/complex"
    xmlns:tns="http://bpelns.corp.rmd.org/complex"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified" nxsd:encoding="ASCII" nxsd:stream="chars" nxsd:version="NXSD">
    <xsd:element name="order">
    <xsd:complexType>
    <xsd:choice minOccurs="1" maxOccurs="unbounded" nxsd:choiceCondition="terminated" nxsd:terminatedBy="|">
    <xsd:element name="HEADER" minOccurs="1" maxOccurs="1" nillable="false" nxsd:conditionValue="H">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ORDERID" nillable="false" minOccurs="1" maxOccurs="1" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="CUSTOMERID" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="ORDERDATE" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="LINEITEM" minOccurs="1" maxOccurs="unbounded" nxsd:conditionValue="L">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ORDERID" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="PRODUCTCODE" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="QUANTITY" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="SHIPPING" minOccurs="1" maxOccurs="1" nxsd:conditionValue="S">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ORDERID" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="ADDRESS" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:choice>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    I added the various minOccurs & maxOccurs attributes. I would like to be able to state that the element HEADER is required. However, despite the min & max values it carries straight through to the next point in the BPEL flow. I cannot use the required attribute type, as JDeveloper does not recognise this.
    How can I acheive the validation I require ? Is the XSD the right place to be doing it (I thought so, as it is the schema definition) ? If I cannot do this with the XSD how else might I acheive it in a concise way, ie not using a big switch operation to test various elements.

    I have just noticed that the XSD is creating the following XML document, which explains the validation failure. After the header it is treating everything else as a line item.
    <?xml version="1.0" encoding="UTF-8" ?>
    <order xmlns="http://bpelns.corp.rmd.org/complex">
    <HEADER>
    <ORDERID>1</ORDERID>
    <CUSTOMERID>1234</CUSTOMERID>
    <ORDERDATE>5-APR-2007</ORDERDATE>
    </HEADER>
    <LINEITEM>
    <ORDERID>1</ORDERID>
    <PRODUCTCODE>33123</PRODUCTCODE>
    <QUANTITY>2</QUANTITY>
    </LINEITEM>
    <LINEITEM>
    <ORDERID>L</ORDERID>
    <PRODUCTCODE>1</PRODUCTCODE>
    <QUANTITY>12345|1</QUANTITY>
    </LINEITEM>
    <LINEITEM>
    <ORDERID>L</ORDERID>
    <PRODUCTCODE>1</PRODUCTCODE>
    <QUANTITY>6969|5</QUANTITY>
    </LINEITEM>
    <LINEITEM>
    <ORDERID>S</ORDERID>
    <PRODUCTCODE>1</PRODUCTCODE>
    <QUANTITY>65 Milton Park, Abingdon, OX142NF</QUANTITY>
    </LINEITEM>
    </order>

  • Dirty check for transient attributes in view object

    Hi,
    I am using JDeveloper 11.1.1.4 and ADF BC in my project.
    In one of my view objects,I have a transient attribute added for some business logic.
    I am doing dirty check in my project as below.
    boolean dirty = false;
    boolean amDirty = false;
    // check application module
    ApplicationModule am =
    getBindingContainer().getDataControl().getApplicationModule();
    amDirty = am.getTransaction().isDirty();
    //Check if datacontrol is dirty
    BindingContext bctx =
    oracle.adf.controller.binding.BindingUtils.getBindingContext();
    dirty =
    bctx.findDataControlFrame(bctx.getCurrentDataControlFrame()).isTransactionDirty();
    return amDirty || dirty;
    My requirement is that,I dont want the dirty check to be applied on the transient attribute in the view object.
    Is there any way to achieve this.Please advice...
    Regards,
    Praveen

    Hi Frank,
    Thanks for the suggestion.
    I followed the link.But if a transient attribute is modified,then also ((ApplicationModule)getDataProvider()).getTransaction().isDirty() is returning true and the transaction is made dirty.
    I am setting a transient attribute like this getNwOperVOIter().getCurrentRow().setAttribute("AcctNoTrans")....when I am editing a row.
    Can I get explicit handle at viewobjectimpl for this transient attribute??
    Regards,
    Praveen

  • Bug report: PL/SQL validation for page process

    It looks like that the PL/SQL code which is entered for a page process isn't validated. It's not verified in the wizard and also not when modifying an existing one.
    There is a "Do not validate PL/SQL code (parse PL/SQL code at runtime only)." checkbox on both pages, so I assume that the page is designed to do the check.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

    Yes, someone else reported this bug in Re: Validate PL/SQL code not working?
    Looks like a regression from 2.x to 3.x

  • Form Features: Checking for required fields on scrolling or moving to the next page.

    Hi! I am developing a form which will be distributed to people using Adobe Reader without the JavaScript functionality. I have a form with about 20+ pages and each page has 4 required fields. I would like to make it easy for the users to show the errors then and there when they miss a require field, instead of having a generic "required field not filled" message at the end of the document. How do I do this without JavaScript? It would be better if the document jumps to the page where there is an empty "required" field.

    This isn't possible without using JavaScript.

  • Report or Query, check for Visio versions - Standard, Professional, etc?

    Hi,
    Just wondering if anyone knows a good method with 2012 of reporting on versions of Visio - e.g. Professional, Standard, Premium etc. I can't seems to find the breakdown anyway.
    I've seen similar queries created for ConfigMrg 2007 Reports, but with the 2012 Report Builder, its not so straightforward to copy and paste a SQL query in (I've tried successfully creating other reports, via "the "edit as text" button, but
    no luck with this sort of report).
    Any help greatly appreciated!
    Thanks.

    http://social.technet.microsoft.com/Forums/office/en-US/07a859bb-d1c8-49a7-8f4c-bcf81b887221/how-can-i-tell-if-visio-standard-or-pro-are-installed?forum=visiogeneral
    if key
    HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Visio\Solution\UML Solution
    exists then you have Visio Pro.

  • Bug report with proposed solution for mounting external drives for ftp access

    Hello Guys,   I registered to inform you about something I would classify as a bug. I realized this when I used an external drive with my WD My Cloud and trying to access the drive via ftp. It simply was not visible on the ftp, but was accessible as samba share. I digged a bit in the scripts and found this:  /etc/init.d/mountDataVolume.sh   [...]
    ## initialze bind mount dir (/nfs)
    /usr/local/sbin/updateShareBindMntDir.sh --init
    [...]  /usr/local/sbin/updateShareBindMntDir.sh  [...]
    init_mounts()
    mount | grep -q "${SHARE_BIND_MNT_DIR}/"
    if [ $? -ne 0 ]; then
    # initial clean up of MNT dir
    rm -rvf ${SHARE_BIND_MNT_DIR}/*
    fi
    for D in `find /shares/ -maxdepth 1 -mindepth 1 -type d -not -name ".*"`; do
    share_name=$(basename $D)
    add_mount "${share_name}"
    done
    [...]   The init_mounts() function searches /shares for directories (find -type >d<) and bind mounts these to SHARE_BIND_MNT_DIR (default: /nfs) by calling add_mount(). This is the directory where ftp users will drop in after logging in. The problem: find -type d will not find symlinks and external drives are represented by a symlink from /shares to /var/media/EXTERNALDRIVE I propose adding the following code at the end of init_mounts()   for D in `find /shares/ -maxdepth 1 -mindepth 1 -type l -not -name ".*"`; do
    share_name=$(basename $D)
    add_mount "${share_name}"
    done That will look for symlinks in /shares and call add_mount() for each symlink to bind mount it to SHARE_BIND_MNT. I think this is not intended aka a bug because I found this comment for add_mount(): # - If <share_name> is a symlink to an external volume, then create the bind mount
    # directly to the external volume.As it seems from this comment add_mount() supports symlinks but init_mounts does not feed it any.   I tried this solution myself and it works flawlessly.   Yours sincerely,schnip

    Nice find!

  • Question on Required Attribute Behavior

    I am having difficulty understanding what the correct behavior of a "required attribute" should be. Im using 9ifs.
    Using the Java API, I created a new content type derived from DOCUMENT, named it CLASSIFIED_DOCUMENT, associated a new file extension "cla" with it, and created a new required attribute called "Security_Level". From ifsmgr, I can see the new type and see that Security_Level
    is a required attribute. When I upload a file with the "cla" extension from the Viewer, it is entered into the database and correctly associated with the CLASSIFIED_DOCUMENT content type. So far so good.
    However, I have not supplied a value for the required attribute, and nothing complains that the Security_Level field is null. It seems to me that IFS should not allow the item to be entered into the database without this required attribute having a value, or perhaps a dialog box should pop up which forces one to enter values for required attributes before the instance of CLASSIFIED_DOCUMENT is entered into the database. Lacking that, an invalid instance is silently slipped into the DB...
    So on to my specific questions:
    How does one enter required attribute data when uploading using the Viewer?
    Shouldn't IFS be complaining when a CLASSIFIED_DOCUMENT is uploaded without Security_Level being set?
    Will required attribute constraints also be "ignored" when performing a programmatic file creation
    (similar to the "Hello World" example) of an instance of CLASSIFIED_DOCUMENT?
    Do I need to do other things when creating a required attribute using Java that will actually cause the attribute to be, well, REQUIRED?
    Is there a RTFM answer to this, and if so, can some kind soul please point me to the correct FM to R? I have the Developer's Guide and the IFS javadocs. The Guide has good examples but is woefully inadequate if you want to do something different from the examples. The jovadocs are of course good reference material but have nothing in the way of "application notes". I have looked at the
    example code and it suffers from the same shortfall as the Guide: if you want to do something different from what is in the example code, you're on your own!
    Is there a document that I should be reading but have missed?
    Thank you,
    Jeff Rininger

    Hi Jeff -
    Thanks for the feedback.
    REQUIRED attributes are exactly what you describe: they are a way to ensure an attribute has a non-null value when a new object is created or when that attribute is updated in an existing object.
    From an API perspective, in creating a new object, that value can be supplied in three ways: explicitly by setting an attribute in the LibraryObjectDefinition, through a VALUEDEFAULT on the attribute, or (advanced topic) through custom server extensibility code.
    One thing to keep in mind: REQUIRED checks are (intentionally) not performed in administration mode. You might want to try creating an object as a non-admin user. That should cause the check to be performed.
    David Pitfield
    Oracle

  • Adobe forms-checking that required fields are completed-Java Script

    I have inserted two Java Scripts into my form--one for checking for required fields are completed, and then one for generating an email pulling a custom subject line, as shown below:
    var emptyFields = [];
    for (var i=0; i<this.numFields; i++) {
         var f= this.getField(this.getNthFieldName(i));
         if (f.type!="button" && f.required && f.display==display.visible) {
              if ((f.type=="text" && f.value=="") || (f.type=="checkbox" && f.value=="Off")) emptyFields.push(f.name);
    if (emptyFields.length>0) {
         app.alert("Error! You must fill in the following fields:\n" + emptyFields.join("\n"));
    this.mailDoc({bUI:false,cTo:"[email protected],[email protected],[email protected]",cSubject:"Bugzilla Form for: "+this.getField("Bugzilla Title").value+" - "+this.getField("Bugzilla ID").value})
    Issue: After the error window displays fields that have not been completed, when I click OK the email window displays.
    QUESTION: How can I stop the email window from displaying until all fields are completed?
    THANKS!

    Thank you so much for your quick response (and thank you for all the code that I am reusing!) I have another issue now.Can you see why the following is occurring....
    I placed else in and now it edits the required fields, but once they are completed, will not initiate the email prompt. Here's what I have now
    var emptyFields = [];
    for (var i=0; i<this.numFields; i++) {
         var f= this.getField(this.getNthFieldName(i));
         if (f.type!="button" && f.required && f.display==display.visible) {
              if ((f.type=="text" && f.value=="") || (f.type=="checkbox" && f.value=="Off")) emptyFields.push(f.name);
    if (emptyFields.length>0) {
         app.alert("Error! You must fill in the following fields:\n" + emptyFields.join("\n"));
    elsethis.mailDoc({bUI:false,cTo:"[email protected],[email protected],[email protected]",cSubject:"Bugzilla Form for: "+this.getField("Bugzilla Title").value+" - "+this.getField("Bugzilla ID").value})

Maybe you are looking for

  • Material de Treinamento PLD

    A todos, Existe algum material de treinamento para utilização de PLD? Já busquei em toda o portal da SAP e não encontro nada. Pode ser em inglês mesmo. Abs, Antonio Melo

  • An Open Letter To MSI - A very dis-satisfied *former* customer

    I sent this letter to as many MSI email  addresses as i could find: Sirs: I’m done with MSI. I’ve bought two MSI K8N Neo Platinum boards and two K8N Neo 4 Platinum SLI boards. My original K8N ran great without problems for nearly a year, then one nig

  • How to save  particular variable values for all users

    Hi Experts, I have variables posting period with user entry default value  and fiscal year(with entry vulaue mandataory)in 30 queries.Now user wants to set this values i.e.posting period to 0 -16 (interval) and fiscal year to 2008. whoever opnes the

  • Canon PowerShot G15 IS or Canon PowerShot S110 IS?

    I am downgrading and going from two cameras to one.  I currently have  Nikon D5100 and Canon Powershot SX260, but just want one that is small to fit in my purse or bigger bag, but high enough quality to get some great shots of the kids sports and our

  • Emailing attached HTML file with embedded applet

    Are there any mail servers that could reject emails with attached HTML file that includes embedded applet in a Java Plug-in Object tags? It has an absolute path to a server where the applet resides. I have seen very few cases where Symantec Anti Viru