Branch Validation Doesn't Work

Hi Experts,
I have a issue . My issue about branch valiadation.
I have a taxonomy table and it has attributes. ( for ex : Bulk. )
I created a validation and rigth click on this validation and select brach on opened contex.
and write this validation in new branch validation.
IF ( TYPE = "Bulk" , FALSE ) ( I selected those items on validation expression window )
I selected Bulk Attribute on main table and tried this validation .
Result is not true.
Why doesn't work validation ?
Regards
Turgut

Hi Turgut,
I created a validation and right click on this validation and select branch on opened context.
When you right click on this validation and Add Branch, Please select Property Branch Value as Category Name which is linked to this Attribute Name TYPE.
Now you need to write Expression in this Branch Validation, as per your requirement.
As you said, IF ( TYPE = "Bulk" , FALSE ), I am assuming here TYPE is your Attribute Name and BULK is your Attribute Text Value.
For this make sure that, you have selected TYPE from Attributes tab and Bulk from TextValues tab from Expression.
Regards,
Mandeep Saini

Similar Messages

  • CFMX 7 CFFORM Validation doesn't work in 7.0.1

    We have code that's been running under CF5 and CF6.1 just
    fine, but when we moved it to CF7 all of the cfform validation
    stopped working (standard cfform w/ no additional custom
    javascript, just cfinput tags w/ required attributes). We updated
    the server to the newest version, and even applied the cumulative
    hotfix .jar file, but to no avail. Seems to be some consensus out
    there that there's a bug in version 7.0.1 where the path to the
    cfform.js file (/cfide/scripts/cfform.js) is not being translated
    properly so that the browser can find that .js include. I found a
    workaround, but I had to create a virtual directory "cfide" (that
    points to the actual cfide directory in the webroot) in IIS so that
    the mappings would work properly. This isn't terribly secure and is
    kind of a silly workaround to have to do when it worked perfectly
    under the other versions of CF and the /CFIDE mapping is in place
    in the CF Administrator. Anyone else having this issue, and beyond
    that, know if macromedia/adobe has (or is working on) a fix for
    this?
    Thanks in advance.

    That could be also, but in our case, we're not even using
    custom JavaScript. We're just using the internal cf form
    validation:
    Example:
    <cfform action="default.cfm" method="post">
    <cfinput name="firstname" type="text" required="yes"
    message="enter your name">
    <input type="submit" value="submit" name="submit">
    </cfform>
    And, unless we create an IIS virtual directory mapping to the
    CFIDE folder, even though it's in the CF Administrator mappings,
    the validation doesn't work, even though it did in previous CF
    versions.
    Thanks for the idea, though.

  • Process validation doesn't work

    Hi,
    when I try to change a process on my application (APEX 3.0.1.00.07), the process validation doesn't work, although the checkbox "Do not validate PL/SQL code (parse PL/SQL code at runtime only)" is not checked.
    The process will be validate only once on create, but not on change. I think, it's a bug

    Yes, that has been noted, thanks.
    Scott

  • Entitiy Unique Pk Validation doesn't work.

    Hi everyone, I'm using JDev 10.1.2 (BC4J, Struts, UIX). I have the next issue:
    I have an UIX page to create a new entity.
    I added a unique pk validation to this entity and entered a custom message.
    I want the page to display the custom message when the Pk constraint is violated.
    Instead of that I get the next exception:
    oracle.jbo.TxnValException: JBO-27023: Fallo al validar todas las filas en una transacción.
         at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:3985)
         at oracle.adf.model.bc4j.DCJboDataControl.validate(DCJboDataControl.java:967)
         at oracle.adf.model.binding.DCBindingContainer.validateInputValues(DCBindingContainer.java:1683)
         at oracle.cabo.adf.rt.InitModelListener._doModelUpdate(InitModelListener.java:170)
         at oracle.cabo.adf.rt.InitModelListener.eventStarted(InitModelListener.java:57)
         at oracle.cabo.servlet.AbstractPageBroker._fireUIXRequestEvent(Unknown Source)
         at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
         at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle$NonRenderingPageBroker.handleRequest(StrutsUixLifecycle.java:337)
         at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle._runUixController(StrutsUixLifecycle.java:215)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.processUpdateModel(StrutsUixLifecycle.java:105)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:317)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:508)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:112)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.jbo.RowValException: JBO-27024: Fallo al validar una fila con la clave oracle.jbo.Key[null 180 ] del tipo ConstruccionApp.CasaViewCreator
         at oracle.jbo.server.EntityDefImpl.validate(EntityDefImpl.java:2065)
         at oracle.jbo.server.EntityImpl.validateEntity(EntityImpl.java:1347)
         at sorteotec.construccion.entity.CasaImpl.validateEntity(CasaImpl.java:1022)
         at oracle.jbo.server.EntityImpl.validate(EntityImpl.java:1478)
         at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:3965)
         at oracle.adf.model.bc4j.DCJboDataControl.validate(DCJboDataControl.java:967)
         at oracle.adf.model.binding.DCBindingContainer.validateInputValues(DCBindingContainer.java:1683)
         at oracle.cabo.adf.rt.InitModelListener._doModelUpdate(InitModelListener.java:170)
         at oracle.cabo.adf.rt.InitModelListener.eventStarted(InitModelListener.java:57)
         at oracle.cabo.servlet.AbstractPageBroker._fireUIXRequestEvent(Unknown Source)
         at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
         at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle$NonRenderingPageBroker.handleRequest(StrutsUixLifecycle.java:337)
         at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle._runUixController(StrutsUixLifecycle.java:215)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.processUpdateModel(StrutsUixLifecycle.java:105)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:317)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:508)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:112)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.jbo.AttrValException: JBO-27025: Fallo al validar el atributo Idciudad con el valor 7
         at oracle.jbo.AttrValException.<init>(AttrValException.java:62)
         at oracle.jbo.rules.RulesBeanUtils.validate(RulesBeanUtils.java:363)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:1769)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1033)
         at sorteotec.construccion.entity.CasaImpl.setIdciudad(CasaImpl.java:877)
         at sorteotec.construccion.entity.CasaImpl.setAttrInvokeAccessor(CasaImpl.java:770)
         at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:949)
         at oracle.jbo.server.ViewRowStorage.setAttributeValue(ViewRowStorage.java:1269)
         at oracle.jbo.server.ViewRowStorage.setAttributeInternal(ViewRowStorage.java:1174)
         at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1112)
         at oracle.jbo.server.ViewRowImpl.setAttrInvokeAccessor(ViewRowImpl.java:1087)
         at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:834)
         at oracle.adf.model.binding.DCDataControl.setAttributeInRow(DCDataControl.java:1745)
         at oracle.adf.model.bc4j.DCJboDataControl.setAttributeInRow(DCJboDataControl.java:1548)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.setAttributeInRow(JUCtrlValueBinding.java:615)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.setAttributeInRow(JUCtrlValueBinding.java:548)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setTargetAttrsFromLovRow(JUCtrlListBinding.java:1078)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.updateTargetFromSelectedValue(JUCtrlListBinding.java:1155)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setAttributeFromValueList(JUCtrlListBinding.java:1116)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setSelectedIndex(JUCtrlListBinding.java:531)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setInputValue(JUCtrlListBinding.java:1480)
         at oracle.cabo.adf.rt.InitModelListener._setInputValue(InitModelListener.java:241)
         at oracle.cabo.adf.rt.InitModelListener._doModelUpdate(InitModelListener.java:156)
         at oracle.cabo.adf.rt.InitModelListener.eventStarted(InitModelListener.java:57)
         at oracle.cabo.servlet.AbstractPageBroker._fireUIXRequestEvent(Unknown Source)
         at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
         at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle$NonRenderingPageBroker.handleRequest(StrutsUixLifecycle.java:337)
         at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle._runUixController(StrutsUixLifecycle.java:215)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.processUpdateModel(StrutsUixLifecycle.java:105)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:317)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:508)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:112)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.jbo.TooManyObjectsException: JBO-25013: Demasiados objetos coinciden con la clave primaria oracle.jbo.Key[180 7 ].
         at oracle.jbo.server.EntityDefImpl$2$JboUniqueKeyValidator.validateValue(EntityDefImpl.java:3133)
         at oracle.jbo.server.EntityDefImpl$2$JboUniqueKeyValidator.validate(EntityDefImpl.java:3070)
         at oracle.jbo.rules.RulesBeanUtils.validate(RulesBeanUtils.java:341)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:1769)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1033)
         at sorteotec.construccion.entity.CasaImpl.setIdciudad(CasaImpl.java:877)
         at sorteotec.construccion.entity.CasaImpl.setAttrInvokeAccessor(CasaImpl.java:770)
         at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:949)
         at oracle.jbo.server.ViewRowStorage.setAttributeValue(ViewRowStorage.java:1269)
         at oracle.jbo.server.ViewRowStorage.setAttributeInternal(ViewRowStorage.java:1174)
         at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1112)
         at oracle.jbo.server.ViewRowImpl.setAttrInvokeAccessor(ViewRowImpl.java:1087)
         at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:834)
         at oracle.adf.model.binding.DCDataControl.setAttributeInRow(DCDataControl.java:1745)
         at oracle.adf.model.bc4j.DCJboDataControl.setAttributeInRow(DCJboDataControl.java:1548)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.setAttributeInRow(JUCtrlValueBinding.java:615)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.setAttributeInRow(JUCtrlValueBinding.java:548)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setTargetAttrsFromLovRow(JUCtrlListBinding.java:1078)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.updateTargetFromSelectedValue(JUCtrlListBinding.java:1155)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setAttributeFromValueList(JUCtrlListBinding.java:1116)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setSelectedIndex(JUCtrlListBinding.java:531)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setInputValue(JUCtrlListBinding.java:1480)
         at oracle.cabo.adf.rt.InitModelListener._setInputValue(InitModelListener.java:241)
         at oracle.cabo.adf.rt.InitModelListener._doModelUpdate(InitModelListener.java:156)
         at oracle.cabo.adf.rt.InitModelListener.eventStarted(InitModelListener.java:57)
         at oracle.cabo.servlet.AbstractPageBroker._fireUIXRequestEvent(Unknown Source)
         at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
         at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle$NonRenderingPageBroker.handleRequest(StrutsUixLifecycle.java:337)
         at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle._runUixController(StrutsUixLifecycle.java:215)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.processUpdateModel(StrutsUixLifecycle.java:105)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:317)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:508)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:112)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 1 ##
    oracle.jbo.AttrValException: JBO-27014: Se necesita el atributo Idciudad en ConstruccionApp.CasaViewCreator
         at oracle.jbo.AttrValException.<init>(AttrValException.java:113)
         at oracle.jbo.server.JboMandatoryAttributesValidator.validate(JboMandatoryAttributesValidator.java:101)
         at oracle.jbo.server.EntityDefImpl.validate(EntityDefImpl.java:2051)
         at oracle.jbo.server.EntityImpl.validateEntity(EntityImpl.java:1347)
         at sorteotec.construccion.entity.CasaImpl.validateEntity(CasaImpl.java:1022)
         at oracle.jbo.server.EntityImpl.validate(EntityImpl.java:1478)
         at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:3965)
         at oracle.adf.model.bc4j.DCJboDataControl.validate(DCJboDataControl.java:967)
         at oracle.adf.model.binding.DCBindingContainer.validateInputValues(DCBindingContainer.java:1683)
         at oracle.cabo.adf.rt.InitModelListener._doModelUpdate(InitModelListener.java:170)
         at oracle.cabo.adf.rt.InitModelListener.eventStarted(InitModelListener.java:57)
         at oracle.cabo.servlet.AbstractPageBroker._fireUIXRequestEvent(Unknown Source)
         at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
         at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle$NonRenderingPageBroker.handleRequest(StrutsUixLifecycle.java:337)
         at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle._runUixController(StrutsUixLifecycle.java:215)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.processUpdateModel(StrutsUixLifecycle.java:105)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:317)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:508)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:112)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)In this stack trace I don't see the custom message, why? Just the TooManyObjectsException.
    If someone could help me I'd really appreciate it, thank you.

    I forgot this other notes about the entity and the issue:
    * The Pk of this entity is composed by two attributes.
    * When I test the application module to break the uniqueness of the entity I don't get the custom message either.
    So, is it that the Pk Validation works only for one-attribute Pks?

  • URGENT - Error "Unable to open file because it isn't a valid Keynote document" - and there is no index file (so the usually suggested solution doesn't work)

    Hi there,
    As you see in the heading, I am getting the error "Unable to open file because it isn't a valid Keynote document". There has been a number of threads on this and there seems to be a usual work around that works in many cases, by changing the file extension to .zip and then looking for the index file and making some more extension changes...unfortunately, in my case (and it also happened to others), there is no index file, so the usually suggested solution doesn't work...Can someone please help? I am working on a tight deadline and would like to try and recover the file.
    Thanks a lot in advance.
    Best,
    Just a regular apple user
    PS: any other presentation opens fine in Keynote (09)

    Have you tried to create a new Keynote Presentation? Do you have another previously saved Keynote file you can try to open? These will make sure it is a problem with this specific presentation and not the whole program.
    Try to delete the Keynote Preferences. They are located in the folder Macintosh HD>Users>your username>Library>Preferences and titled com.apple.iWork.Keynote.plist.
    Your profile shows that you are still on Mc OS 10.6.6, is that true? You might try to update to 10.6.7 as I believe that there was a font issue fixed in this update (I don't know for sure since I am still on 10.5.8).
    Try those and report back and we will see what we can come up with.

  • Email send/receive suddenly doesn't work ; can't change email settings as BB phone won't accept valid username and password -- what to do?

    email send/receive suddenly doesn't work (as of September 24th); I can't change email settings (one suggestion from tech) as BB phone won't accept *valid* username and password -- what to do?
    I understand from a support note that if I keep trying my password/username combination, my BB will eventually delete all data!
    I can't understand this. I'm completely lost now. I can't remember what I've done or tried to do. A plethora of usernames and passwords is swimming in my head.
    Thanks for any hints. I have always loved this BB Bold and have never had any trouble with it.

    But the real question is why for the past year did the passwords work and then all of the sudden after this anomaly the disk password doesn't work?  I'm not 100% sure of what my configuration was, but I know that most of the time it required one password -- supervisor, and occasionally it asked for 2 -- disk password as well I believe.  This may have been related to the Password on Restart setting I think -- asking for the disk password on cold vs. warm boot.  But I know both were exactly the same.  But after this incident only the Supervisor password worked.

  • HT201407 I bought my iphone 4 in the UK and I am trying to use a sim in the UAE and it doesn't work.  It says that the sim is not valid, how can I get this unlocked?

    I bought my iphone 4 in the UK and I am trying to use a sim in the UAE and it doesn't work.  It says that the sim is not valid, how can I get this unlocked?

    You are saying the phone is locked, but then you are saying there is no provider. The two situations cannot peacefully coexist. Contact Apple and they can tell you if the phone is locked and if locked to which provider the phone is locked. People on this board are not Apple employees and cannot get you that information.

  • Validation Operand. , doesn't work

    Hi experts,
    I´m workimg in SAP BPC 5.1 MS and I'm trying to create a validation rule "Account1 > Account2". However it doesn´t works fine. No difference data be record in any case (value Acc.1 > value Acc. 2 & value Acc.1< value Acc.2), and I expect validation account has data when value Acc1 < value Acc2.
    When I use "=" validation operand, it works fine. Does anyone have the same problem?
    Thank you in advance
    Regards
    gabriel

    Validation rules do not work for <> in 5.1 although they work for =.
    We had to put some script logic for it to recognize the condition that we wanted to include. 
    It works fine if the application is fully optimized.
    However, we have been running into problems with analysis services.  The sql tables have the correct values.  However, small numbers remain (like 0.000000001, etc. instead of zero).  The system then interprets these numbers as non-zero and does not allow workstatus to run.  SAP is trying to find a fix but has not as yet done so.
    If you have a large implementation, be careful with tying workstatus to Validation.

  • TS1406 I read all of this, and did each step and mine still doesn't work. It still says "iTunesSetup.exe is not a valid Win32 application". What's next?

    I read all of this, and did each step and mine still doesn't work. It still says "iTunesSetup.exe is not a valid Win32 application". What's next?

    Perhaps try downloading and saving a copy of the installer to a different PC. (If you're on a 32-bit Windows system, try to download on a different 32-bit Windows system.) Copy the iTunesSetup.exe installer to an external hard-drive, or a large-enough thumb drive or burn it to a CD-R. Carry the installer back to your PC, copy the installer to your hard drive. (Don't run the install from the ExHD, thumb or CD-R.) Start the install by doubleclicking the iTunesSetup.exe file.

  • Spry Validation on submit in Firefox doesn't work

    Hello,
    I have some forms that use spry validation, everything works
    great and as expected in IE, but in Firefox the validation fails to
    work on submit of the form, but does work onblur of the text box's?
    so it partially works just not on form submit. So if someone came
    and just clicked the submit button the form wouldn't validate, but
    if someone did what they are suppose to and fill in name, email...
    the validation works as you tab to the next form element.
    I don't have the website online, to show... any idea's, why
    this may happen only in firefox?
    Thanks,

    Hi cchauvin08,
    If you can't post your page on the web for others to see,
    then perhaps you can paste the relevant markup/code. For example,
    what type of inputs are you using? You said "text box" do you mean
    a TextArea or a TextField? What does the widget constructor for
    that particular validation field look like? What does the markup
    look like, including the markup for the <form> tag?
    We're going to need more info due to the fact that some of
    these validation widgets have multiple configurations (types of
    validation).
    --== Kin ==--

  • Validating serial number doesn't work

    I have to validate my serial number within 7 days, but it won't work (new elements 12). It sais I have to be connected to the internet, but I am. Don't know what else to do. I have already tried another browser, still doesn't work :-((

    Hi,
    Please see if the following document helps - in particular, the section on the hosts file.
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    If not, please tell us which operating system you are using.
    Brian

  • Validations won't work?

    Hi guys,
    I did a validation a few weeks ago which was simply:
    P10_DATEDATE < SYSDATE. I came back and tested it and it still worked as expected. I then tried to recreate it again and the new attempt doesn't work and I don't know why. To begin with it was making the error message show up all the time but now its saying this:
    ORA-06503: PL/SQL: Function returned without value
         Error      ERR-1023 Unable perform validations.
    I've also tried P10_DATEDATE < (SELECT SYSDATE FROM DUAL) but no luck and with the : before P10_DATEDATE.
    What's gone wrong? I've selected SQL Expression for item and page level but neither work.
    Edit: The debug page is as follows:
    0.05: A C C E P T: Request="SAVE"
    0.07: Metadata: Fetch application definition and shortcuts
    0.08: alter session set nls_language="ENGLISH"
    0.08: alter session set nls_territory="UNITED KINGDOM"
    0.08: ...NLS: Set Decimal separator="."
    0.08: ...NLS: Set NLS Group separator=","
    0.08: ...NLS: Set date format="DD-MON-RR"
    0.08: ...Setting session time_zone to +01:00
    0.08: NLS: wwv_flow.g_flow_language_derived_from=0: wwv_flow.g_browser_language=en-us
    0.08: Fetch session state from database
    0.09: ...Check session 2368278682943396 owner
    0.09: ...Metadata: Fetch Page, Computation, Process, and Branch
    0.09: Session: Fetch session header information
    0.09: ...Metadata: Fetch page attributes for application 139, page 10
    0.09: ...Validate item page affinity.
    0.09: ...Validate hidden_protected items.
    0.09: ...Check authorization security schemes
    0.09: Session State: Save form items and p_arg_values
    0.09: ...Session State: Save "P10_CUSTOMER_ID" - saving same value: "23"
    0.09: ...Session State: Save "P10_DATEDATE" - saving same value: "04/12/2008"
    0.09: ...Session State: Save "P10_DATETIME" - saving same value: "04/12/0008"
    0.09: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.09: Branch point: BEFORE_COMPUTATION
    0.09: Computation point: AFTER_SUBMIT
    0.09: Tabs: Perform Branching for Tab Requests
    0.09: Branch point: BEFORE_VALIDATION
    0.09: Perform validations:
    0.09: ...SQL Expression Validation: P10_DATEDATE < SYSDATE
    0.09: Show ERROR page...
    0.09: Performing rollback...
    0.10: Processing point: AFTER_ERROR_HEADER
    0.10: Processing point: BEFORE_ERROR_FOOTER
    0.11: ...Determine if user "G929AHE" workspace "509007105920405" can develop application "139" in workspace "509007105920405"
    0.11: Show ERROR page...
    0.11: Performing rollback...
    Mike
    Edited by: Dird on 24-Jul-2009 00:48                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Why don't you try creating a validation of type PL/SQL Function Returning Error Text and put the following there:
    BEGIN
       IF TO_DATE (NVL (:p10_datedate, SYSDATE)) > SYSDATE
       THEN
          RETURN 'Date has to be smaller than current date';
       ELSIF TO_DATE (NVL (:p10_datedate, SYSDATE)) = SYSDATE
       THEN
          RETURN 'Your item :p10_datedate is empty.';
       ELSIF TO_DATE (NVL (:p10_datedate, SYSDATE)) < SYSDATE
       THEN
          RETURN 'Everything seems to be OK.';
       END IF;
    EXCEPTION
       WHEN OTHERS
       THEN
          RETURN 'Error running validation ' || ' / ' || SQLERRM;
    END;I would like to know what your result is after running this.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • PreparedStatement.setString doesn't work with Oracle 10g.

    Hi all,
    I newbie question regarding the method setString of class java.sql.PreparedStatement. My process require to pass throught a file and check agaisnt a Oracle table if the product id of the given record exist in the table .
    I use the SQL
    select matnr from zncorart_ap where zartleg = ? and zentrleg = ?
    to do that. When i try to replace the ? with the setString method it doesn't work and the query always return no row as ? is not a valid value.
    Thx for your help.
    // Here code snippet of the caller class
    public class Inventory2SAP {
    private ETLSQL productXRef;
    private ResultSet productXRefResult;
    private String inRecord;
    private String prdCat;
    protected void acquireResource() {
      try {       
    //  Instantiate product XRef object.
        productXRef = new ETLSQL();
        productXRef.loadDriver(ch.getProperties("Inventory2SAP.JDBCDriver"));
        productXRef.connectDB(true);
        prdXRefLookup = "select matnr from zncorart_ap where zartleg = ? and zentrleg = ?";
        productXRef.createPrepared(prdXRefLookup);
      catch (SQLException sqle) {
        sqle.printStackTrace();
        System.exit(-1);            
    // Loop this method until EOF        
    protected boolean transform() {
       try {
          productXRef.setString(1, inRecord.substring(0, 8));
          productXRef.setString(2, prdCat);       
          productXRefResult = productXRef.executePrepared();
          if (productXRefResult.next()) {
             System.out.println("Nerver branch here because setString doesn't work");
          else {
             System.out.println("Always row not found");
       catch (SQLException sqle) {
          sqle.printStackTrace();
          System.exit(-1);
    protected void releaseResource() {
       try {
          productXRef.disconnectDB();
       catch (SQLException sqle) {
          sqle.printStackTrace();
          System.exit(-1);
    public class ETLSQL {
        private static Connection con;
        private PreparedStatement pstm;
        private ResultSet rs;
        protected ETLSQL() {
        protected void loadDriver(String driverID) {
           try {
              if (driverID.equals("oracle")) {
                 Class.forName(ch.getProperties("OracleDriver")).newInstance();
           catch(ClassNotFoundException cnfe) {
              cnfe.printStackTrace();
              System.exit(-1);                  
          catch (InstantiationException ie) {
             ie.printStackTrace();
             System.exit(-1);  
          catch (IllegalAccessException iae) {
              iae.printStackTrace();
             System.exit(-1);               
    protected void connectDB(boolean isReadOnly) throws SQLException {
       if (driverID.equals("oracle")) {
          con = DriverManager.getConnection(ch.getProperties("OracleURL"),
          ch.getProperties("OracleUser"), ch.getProperties("OraclePassword"));         
        else {
           System.out.println("Can't connect to the Database");
           System.exit(-1);                
    protected void createPrepared(String SQLString) throws SQLException {
       pstm = con.prepareStatement(SQLString);
    protected void setString(int pos, String s) throws SQLException {
       pstm.setString(pos, s);
    protected ResultSet executePrepared() throws SQLException {
       rs  = pstm.executeQuery();
       return rs;
    protected void disconnectDB() throws SQLException {
       if (pstm != null) {
          pstm.close();     
       if (!con.isClosed()) {
          con.close();
    }

    Ever solve this problem? Seems I'm having the same problem. I'm at a bit of a loss.
    **** Specifically, I get this
    Jan 23, 2007 12:49:51 PM test.JdbcTestHarness doItGood
    INFO: ======= doItGood =======
    Jan 23, 2007 12:49:52 PM test.JdbcTestHarness doItGood
    INFO: It worked...my name is mvalerio
    Jan 23, 2007 12:49:52 PM test.JdbcTestHarness doItBad
    INFO: ======= doItBad =======
    Jan 23, 2007 12:49:52 PM test.JdbcTestHarness doItBad
    INFO: It didn't work my name is mud
    **** When I do this
    package test;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    public class JdbcTestHarness {
         private Logger logger = null;
         * @param args
         public static void main(String[] args) {
              JdbcTestHarness jdbcTest = new JdbcTestHarness();
              jdbcTest.doItGood();
              jdbcTest.doItBad();
         public JdbcTestHarness() {
              this.logger = Logger.getLogger("test");
         public void doItGood() {
              logger.log(Level.INFO, "======= doItGood =======");
              Connection conn = null;
              PreparedStatement stmt = null;
              ResultSet rs = null;
              try {
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   conn = DriverManager.getConnection(
                             "jdbc:oracle:thin:@db1-dev.lis.state.oh.us:2521:test",
                             "dir", "dir");
                   stmt = conn
                             .prepareStatement("select username,password,'true' from account where account.username = 'mvalerio'");
                   rs = stmt.executeQuery();
                   if (rs.next()) {
                        this.logger.log(Level.INFO, "It worked...my name is "
                                  + rs.getString(1));
                   } else {
                        this.logger.log(Level.INFO, "It didn't work my name is mud");
              } catch (ClassNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } finally {
                   if (conn != null) {
                        try {
                             conn.close();
                        } catch (SQLException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
         public void doItBad() {
              logger.log(Level.INFO, "======= doItBad =======");
              Connection conn = null;
              PreparedStatement stmt = null;
              ResultSet rs = null;
              try {
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   conn = DriverManager.getConnection(
                             "jdbc:oracle:thin:@db1-dev.lis.state.oh.us:2521:test",
                             "dir", "dir");
                   stmt = conn
                             .prepareStatement("select username,password from account where account.username = ? ");
                   stmt.setString(1, "mvalerio");
                   rs = stmt.executeQuery();
                   if (rs.next()) {
                        this.logger.log(Level.INFO, "It worked...my name is "
                                  + rs.getString(1));
                   } else {
                        this.logger.log(Level.INFO, "It didn't work my name is mud");
              } catch (ClassNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } finally {
                   if (conn != null) {
                        try {
                             conn.close();
                        } catch (SQLException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
    Any help would be appriciated.......

  • Can't Add Credit Card (submit button doesn't work)

    Hey. Recently come across a problem trying to add my credit card so I could buy a Twitter app that works with Twitters new authorization.
    The submit button doesn't work. It is still there, but it is unclickable, it doesn't load up anything, or do anything. It doesn't change to being clickable at any time.
    If it helps, I have the Palm Pre, I'm with O2 (UK).
    Can anyone help?
    Post relates to: Pre p100ueu (O2)

    This sounds like a credit card related issue. Has anything about your credit card changed, like a new expiration data? You can go to App Catalog, tap the drop-down menu, select Preferences and Accounts, then choose the account name, enter your profile password, tap continue, When the Edit Credit Card screen appears, re-enter the credit card number and confirm that the remaining info is valid or enter any new information, then submit.

  • File.delete() and File.deleteOnExit() doesn't work consistently..

    I am seeing some odd behavior with trying to delete files that were opened. Usually just doing new File("file.txt").delete() would work. However, in this case, I have created an input stream to the file, read it in, saved it to another location (copied it), and now I am trying to delete it.
    The odd thing is, in my simple application, the user can work with one file at a time, but I move "processed" files to a lower pane in a swing app. When they exit it, it then archives all the files in that lower pane. Usually every file but the last one opened deletes. However, I have seen odd behavior where by some files don't delete, sometimes all of them wont delete. I tried the deleteOnExit() call which to me should be done by the JVM after it has released all objects such that they don't matter and the JVM ignores any object refs and directly makes a call (through JNI perhaps) to the underlying OS to delete the file. This doesn't work either.
    I am at a loss as to why sometimes some files delete, and other times they don't. In my processing code, I always close the input stream and set its variable to null. So I am not sure how it is possible a reference could still be held to the object representing the file on disk.

    and then, in the other class
      public int cdplayerINIToMMCD(File aDatabase, String thePassword) throws IllegalArgumentException {
         /*---------DATA---------*/
         String dbLogin, dbPassword;
         JFileChooser fc;
         INIFileFilter ff;
         int dialogReturnVal;
         String nameChosen;
         File INIFile;
         ProgressMonitor progressMonitor;
         BufferedReader inFileStream;
         String oneLine;
         int totalLines = 0;
         int linesParsed = 0;
         boolean openDBResult;
         int hasPassword;
         if ((aDatabase == null) || (!aDatabase.exists()) ||
            (FileManagement.verifyMMCD(aDatabase) == FileManagement.VERIFY_FAILED)) {
            throw new IllegalArgumentException();       
         else { 
            currentDB = aDatabase;
            if(thePassword == null) {
              dbPassword = "";
            else { dbPassword = thePassword; }
            dbLogin = dbPassword; //For MSAccess dbLogin == dbPassword
         //Ask the user for the cdplayer.ini file.
         //Create a file chooser
         if (System.getProperty("os.name").indexOf("Windows") > -1) {
            fc = new JFileChooser("C:\\Windows");
         else {
            fc = new JFileChooser();     
         fc.setMultiSelectionEnabled(false);
         fc.setDragEnabled(false);
         //Create a new FileFilter
         ff = new INIFileFilter();
         //Add this filter to our File chooser.
         fc.addChoosableFileFilter(ff);
         fc.setFileFilter(ff);
         //Ask the user to locate it.
         do {
            dialogReturnVal = fc.showOpenDialog(mainFrame);
            if (dialogReturnVal == JFileChooser.APPROVE_OPTION) {
               nameChosen = fc.getSelectedFile().getAbsolutePath();
               if(nameChosen.toLowerCase().endsWith(INIFileFilter.FILE_TYPE)) { INIFile=new File(nameChosen); }
               else { INIFile = new File(nameChosen+INIFileFilter.FILE_TYPE); }
               if (!INIFile.exists()) {
                  continue; //If the name specified does not exist, ask again.
               else { break; }
            else { //User clicked cancel in the open dialog.
               //Ignore what we've done so far.
               return(IMPORT_ABORTED);
         } while(true); //Keep asking until cancelled or a valid file is specified.
         //Determine how many lines will be parsed.
         try {
           //Open the INI for counting
           inFileStream = new BufferedReader(new InputStreamReader(new FileInputStream(INIFile)));
           while ((inFileStream.readLine()) != null) {
               totalLines++;
           //Close the INI file.
           inFileStream.close();
         } catch (IOException ex) { return(IMPORT_FAILED); }
         //Make a progress monitor that will show progress while importing.
         progressMonitor = new ProgressMonitor(mainFrame, "Importing file","", 0, totalLines);
         progressMonitor.setProgress(0);
         progressMonitor.setMillisToPopup(100);
         progressMonitor.setMillisToDecideToPopup(1);
         //Make our DatabaseHandler to insert results to the database.
         dbh = new DatabaseHandler();
         //Open the database connection.
         do {
           try {
              openDBResult = dbh.openDBConnection(currentDB, dbLogin, dbPassword);
           } catch(JDBCException ex) { return(IMPORT_JDBC_ERROR); } //OUCH! can't write anything.
             catch(SQLException ex) {
                 openDBResult = DatabaseHandler.OPNCN_FAILED;
                 //Can not open the database. Is it password protected?
                 hasPassword = JOptionPane.showConfirmDialog(mainFrame, "Could not open the database. "+
                                                "The password is wrong or you have not specified it.\n"+
                           "Do you want to enter one now?", "New password?", JOptionPane.YES_NO_OPTION);
                if (hasPassword == MMCDCatalog.DLG_OPTN_YES) {
                   dbPassword = JOptionPane.showInputDialog(mainFrame, "Please enter your "+
                                                              "password for the DataBase:");
                    dbLogin = dbPassword; //For MSAccess, login == password                                                    
                //If the password wasn't the problem, then we can't help it.
                else { return(IMPORT_FAILED); }
         } while(openDBResult != DatabaseHandler.OPNCN_OK); //If it is OK, no exception thrown.
         //Import the ini file
         try {
            //Open the INI file for parsing.
            inFileStream = new BufferedReader(new InputStreamReader(new FileInputStream(INIFile)));
            //Read and parse the INI file. Save entries once parsed.
            while ((oneLine = inFileStream.readLine()) != null) {
               parseLine(oneLine);
               linesParsed++;
               progressMonitor.setNote("Entries imported so far: "+entriesImported);
               progressMonitor.setProgress(linesParsed);
               if ((progressMonitor.isCanceled()) || (linesParsed == progressMonitor.getMaximum())) {
                  progressMonitor.close();
                  break;
            //Close the INI file.
            inFileStream.close();
         } catch (IOException ex) {
              //Make absolutely sure the progressMonitor has disappeared
                progressMonitor.close();
                if (dbh.closeDBConnection() != DatabaseHandler.CLSCN_OK) {
                 JOptionPane.showMessageDialog(mainFrame, "Error while reading the INI file.\n"+
                    "Error while attempting to close the database", "Error", JOptionPane.INFORMATION_MESSAGE);
              else {
                 JOptionPane.showMessageDialog(mainFrame, "Error while reading the INI file.",
                                                    "Error", JOptionPane.INFORMATION_MESSAGE);     
                return(IMPORT_FAILED);
         //Make absolutely sure the progressMonitor has disappeared
         progressMonitor.close();
         //Close the database connection
         if (dbh.closeDBConnection() != DatabaseHandler.CLSCN_OK) {
            JOptionPane.showMessageDialog(mainFrame, "Error while closing the database after import.",
                                          "Error", JOptionPane.INFORMATION_MESSAGE);
         //Did the user cancel?
         if (totalLines != linesParsed) {
            return(IMPORT_ABORTED);     
         //Success!
         //Everything ok. Return the number of entries imported.
         return(entriesImported);
      }

Maybe you are looking for

  • Mercedes User interface does not revert back after a call

    I had my iPhone 4 paired to my Mercedes and was happily using the bluetooth connectivity for making and receiving calls . But lately when I make a call by dialing from my phone and then disconnecting the call using the car control, the car screen doe

  • Access the file from external system which is in the same LAN

    I have created technical system as standalone and given as my server name and attached to business system When creating comm. Channel giving path as “\foldername1\ foldername2\” Filename : “test.txt”. It is giving path does not exists. Is that the co

  • Can't deactivate to transfer - "activation requires administrative rights"

    System info: Late 2009 21.5" iMac w/8GB RAM running Windows 7 Ultimate (x86.  x64 wouldn't install Acrobat PDF Printer so is pretty useless) on Bootcamp I need to deactivate Adobe Acrobat Pro 7 (Windows) so i can re-install it elsewhere but just this

  • Activating / Deactivating webcameras with actionscript

    Hi there. My customer has a small LAN and he asked me to connect them also through a webcam, so, everytime I press a button, the camera turns on at both sides (the two computers) and when conversation comes to end, you just click on another button an

  • Callibrating my Palm TX

    about a month ago my i began having trouble with callibrating my TX.  Using my stylus - i can not get to any of my information.  None of the buttons.  I replaced the palm and it still is not working.  I love  my palm and am wondering if I am going to