SQL Injection when using Search by Example on a View Object

It seems that the SQL queries generated by "Search by Example" pattern (When you drop a view object as a Search Form) are not using bind parameters, and will be vulnerable to SQL injection attacks. This pattern is very handy and could be very useful to create search pages. Is there a way to avoid SQL Injection and still use this feature in ADF?
Chandresh

Hi,
from a training slide developed by Duncan Mills:
When the user is in Find mode and enters some information, he or she is constructing a ViewCriteria row. Each attribute in the View object exists in this row and any values that the user enters into the fields are mapped into these attributes.
In most circumstances, you will only ever have one criteria row, although the developer can allow multiple rows if the Create operation is called during Find mode.
To parse the entered query values, you need to look at each row, and then at each attribute. Calling getAttribute() returns the value the user entered (if any) for that field. You can then pass that string to a filter routine (shown in the next slide), which inspects this value for errors.
The filter routine can then change the example value if required and reset the criteria.
import java.util.regex.Matcher;
import java.util.regex.Pattern;
protected String detectInjection(String criteria) {
  boolean reject = false;
  String testPattern =       "^(>=|<=|=<|=>|<|>|<>|!=|=|BETWEEN|IN|LIKE|IS)";
  String testCriteria = criteria.trim().toUpperCase();
    if (testCriteria != null && testCriteria.length() > 0) {
      Pattern pattern = Pattern.compile(testPattern);
      Matcher matcher = pattern.matcher(testCriteria);
      if (matcher.find())
        reject = true;
    return reject?null:criteria;
  }Frank

Similar Messages

  • Just switched from safari on my imac. when using search menu safari gave me the option to "find on this page," which was an incredible help while doing research. Is there any way to have this feature using firefox?

    Just switched from safari on my imac. When using search menu in safari I had the option to "find on this page," which was an incredible help while doing research and looking for specific phrases/words. Is there any way to have this feature using firefox?

    I think Safari has the same keyboard shortcut as Firefox "command+F" on a Mac or "Ctrl+F" on Windows.
    Look in the lower left corner for the Find. There are more likely to be differences in Find Next and Find Previous in the keyboard shortcuts, but continuing at the Find bar at the bottom doesn't matter what browser you use. There is an "X" there to dismiss the Find bar. In Windows the "Esc" key will dismiss the bar if you are within the find text entry area.
    Keyboard shortcuts:
    * [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts?s=keyboard&amp;r=0&amp;as=s Keyboard shortcuts | How to | Firefox Help], from Mozilla very limited number of shortcuts but will show correctly for your system
    * [http://dmcritchie.mvps.org/firefox/keyboard.htm Firefox and other Browser Keyboard Shortcuts (Comparison Table)], more comprehensive but is oriented to Windows users with some guidelines for Mac and Linux users.
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • When using "search" i find emails already deleted. How can i definitively delete them from iPad?

    When using "search" i find emails already deleted. How can i definitively delete them from iPad?

    Many thanks James, I have deleted emails from Deleted Items folder in Mail but they are still stored in iPad.
    I do not know how can I do to definetively delete them.

  • How to encode sql string for SQL Server when using JDBC?

    in code, dynamically generate sql stirng like:
    String sqlstring = "select column from table where column=' " + var + " ' ";
    Question is: if var include char ' , it will cause error becuase ' is reserved by SQL Server for string reference.
    So how to encode string for dynamic sql string? for example, following sql(when var =" I'm tester"):
    select column from table where column like ' I'm tester '
    Edited by: KentZhou on Jun 17, 2009 3:10 PM

    Use PreparedStatement. Use it all the way. It not only saves you from SQL injections, but also eases setting non-standard Java objects like Date and InputStream in a SQL statement.
    Prepare here: [http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html].

  • Spotlight shows triple copies of all contacts when using search

    I am having an extremely annoying issue where all my contacts are displayed three times when I use spotlight. For example, when I search for a contact. i.e "Apple", the first three results displayed will be Apple. Also, when I go to send a text message to a contact, i.e "Apple", the list displays the name and number three times. This goes for all of my contacts.
    I would consider myself an expert Mac user and have troubleshooted all the basics already. There are no triple copies of contacts in my iPhone or Mac address book. Nor are there triple copies of my MobileMe address book.
    Anyone else with the same issue?

    BasKoeln wrote:
    This occours on every user, not only system root. All privileges are default. I've found some google-results of users having the same problem just after a fresh install.
    You have the root user enabled? I think that is generally frowned upon - it can cause all sorts of permissions errors. I'd expect Spotlight to obey whatever the local permissions dictate (if it is working as designed).
    I would try resetting the user permissions for the home folders and then follow Linc's tip for rebuilding the index again.
    Backup before you begin just in case…
    Boot holding cmd+R. Recovery mode should startup (assuming you have a recovery partition).
    Select Terminal from the Utilities menu.
    Enter the word…
    resetpassword
    … & hit return.
    The GUI app will open, select the main boot HD.
    Select your user account in the popup menu.
    Then click the 'Reset' button at the bottom right. It will "Reset Home Folder Permissions & ACL's"
    Repeat for the other users.
    Quit ResetPassword from the menu,
    Quit Terminal
    Reboot

  • How to set fetchsize of sql Query when using Database Adapter.

    Hi All,
    I am using DatabaseAdapter to connect to database and retriving huge amount of data.For improvement in the performance I want to set the "fetchsize" of sql query. I know fetchsize can be preset in Java using Jdbc 2.0 API.Please let me know how to set this value in BPEL when using DBAdapter?
    Thanks
    Chandra

    I talked to the developer of the db adapter - and he told me this feature will be available in BPEL PM 10.1.3 (which is supposed to be production later this year, and a public beta soon). If this is an emergency I would recommend going throug Oracle support and have them file an enhancement for 10.1.2.0.2
    hth clemens

  • Error message when using search

    why do i keep getting an error message when using the "search" tabe in iTunes. This happend whe i upgraded t the latest version of itunes.

    Well, I believe JHeadstart does not really have this functionality.
    One way is use a Query Operator 'startsWith', but then you always query like LIKE '<entered search value>%'
    This is probably not what you want...
    But you could hack it into advancedSearch in YourApplicationModuleImpl
    try {
    if (viewCriterium.getQueryValue() != null) { //This is where exception JHS-00116 is raised...
    value = viewCriterium.getQueryValue().toString();
    } else {
    value = null;
    catch (NumberFormatException ex) {
    //insert check for wildcard
    value = viewCriterium.getValue().toString();
    if (value.indexOf('%')>=0) {          
    sLog.debug("Ja, een wildcard!!!");
    operator = "LIKE";
    } else {//original exceptionhandling code here...
    ...and a bit later, add test for "LIKE":
    if (viewCriterium.isDate() || viewCriterium.isString() || "LIKE".equals(operator)) {
    value = "'" + value + "'";
    very nasty code, and does not raise an exception for searches like '%xxx'
    Good luck,
    HJH
    Edited by: HJHorst on Mar 5, 2009 12:03 AM

  • Robohelp 9: Error when using search terms including the word "not"

    We are moving from Robohelp 7 to Robohelp 9.  We realize that Boolean operators such as NOT are supposed to be working now, but we do have times when we might find ourselves using search terms that include the word "not" on its own.
    The problem that we are finding is that if we search for something like "office not installed", because that phrase is part of a specific error message we might be trying to locate, we are getting the error, "The words you typed is not a valid expression" [sic].
    We have tried making modifications to the Stop Words and Always Ignore words and can't seem to find a solution.  We do need to be able to search using the word "not" as a regular search term.  Even as a Boolean operator (NOT), we are getting the same error.  Searching for "office installed" will get us the result that we want, but we have a team of users who will definitely instinctually search using the word "not" since it's part of the error they are searching for.
    Thoughts?

    Hi Benjamin
    First, I don't believe the Always Ignore has anything to do with Searching. That particular list is used when you instruct RoboHelp to build an index using the Smart Index Wizard.
    Actually, something like "Office Not Installed" is a perfect use of the Index. But I'm guessing here that your system doesn't include an index in favor of trawling through the pile of words in the project.
    If you aren't using an index yet, I'd highly suggest you investigate it. In a properly indexed system your users will find what they are looking for infinitely faster and easier than they ever will by using Search.
    Just a thought... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • ODP bug with generated SQL script when using DateTime

    With EF5, I'm getting some really weird SQL scripts when dealing with DateTime.
    THe follow script works fine.
    var a = db.MOTOR_POOL_RESERVATION
    .Where(o => o.DEPART_DT > new DateTime(2013, 1, 1))
    .Select(o => o.RESERVATION_ID)
    .ToList();
    SELECT "Extent1"."RESERVATION_ID" AS "RESERVATION_ID"
    FROM "MOTORPOOL"."MOTOR_POOL_RESERVATION" "Extent1"
    WHERE ("Extent1"."DEPART_DT" > TO_TIMESTAMP('2013-01-01 00:00:00.000', 'YYYY-MM-DD HH24:MI:SS.FF'))
    But as soon as I create DateTime with year, month or day values forming from a variable, then generated scripts become incorrect.
    var year = 2013;
    var month = 3;
    var dt = new DateTime(year, month, 1);
    var c = db.MOTOR_POOL_RESERVATION
    .Where(o => o.DEPART_DT > dt)
    .Select(o=>o.RESERVATION_ID)
    .ToList();
    see the date is treated a string.
    SELECT "Extent1"."RESERVATION_ID" AS "RESERVATION_ID"
    FROM "MOTORPOOL"."MOTOR_POOL_RESERVATION" "Extent1"
    WHERE ("Extent1"."DEPART_DT" > '2013-03-01 00:00:00')
    var b = db.MOTOR_POOL_RESERVATION
    .Where(o => o.DEPART_DT > new DateTime(year, month, 1))
    .Select(o => o.RESERVATION_ID)
    .ToList();
    same problem with this one.
    SELECT "Extent1"."RESERVATION_ID" AS "RESERVATION_ID"
    FROM "MOTORPOOL"."MOTOR_POOL_RESERVATION" "Extent1"
    WHERE ("Extent1"."DEPART_DT" > '2013-03-01 00:00:00')

    It turns out that the sql is valid since I'm using bind parameters.

  • Run time error when using search

    I get a run time error when using the search in iTunes store. Running current iTunes version.

    Duplicate post -- Client ADI display A runtime error in Office 2010

  • Can a web service be used as the datasource for a View Object?

    Has anyone used a web service as the datasource for a View Object?
    I am trying to do the same thing as "Publishing BC4J Components as a Web Service" example, except I want to recreate the View Objects on the client so that I can iterate through them and display them on a web page.
    I probably have two choices:
    1. Use the web service as the datasource.
    2. Use a file as the datasource with no data and then populate the View Objects from the XML from the Web Service.
    Please advise.
    Thank you.
    Richard Catlin
    SAIC

    You can adapt the examples provided in the BC4J Toy Store demo for how to build a programmatically-populated view object to create a view object that fetches its data from a web service.
    The methods that you need to override are the same for any kind of programmatically-populated view object.

  • Error when i run any page with any view object

    jdevloper 11.1.2
    version 64
    i create menu from task flow and template  and its ok .
    after create  model from database.
    when i run any page not have any view object its successful and run
    but when i drag any table  object from data control  to the page and run  its show error
    Error 500--Internal Server Error
    oracle.jbo.domain.DataCreationException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25029 at oracle.jbo.common.JBOClass.findDataClass(JBOClass.java:243) at oracle.jbo.server.AttributeDefImpl.initFromXML(AttributeDefImpl.java:3904) at oracle.jbo.server.AttributeDefImpl.loadFromXML(AttributeDefImpl.java:3855) at oracle.jbo.server.EntityDefImpl.loadAttribute(EntityDefImpl.java:4935) at oracle.jbo.server.EntityDefImpl.loadAttributes(EntityDefImpl.java:4899) at oracle.jbo.server.EntityDefImpl.loadFromXML(EntityDefImpl.java:3808) at oracle.jbo.server.EntityDefImpl.loadFromXML(EntityDefImpl.java:3422) at oracle.jbo.server.EntityDefImpl.loadFromXML(EntityDefImpl.java:3406) at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:525) at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:1202) at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:585) at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:507) at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:489) at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:753) at oracle.jbo.server.EntityDefImpl.findDefObject(EntityDefImpl.java:644) at oracle.jbo.server.ViewDefImpl.doAddRowReference(ViewDefImpl.java:7076) at oracle.jbo.server.ViewDefImpl.loadEntityReference(ViewDefImpl.java:7357) at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:4003) at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:3773) at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:3721) at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:529) at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:1202) at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:585) at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:507) at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:489) at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:753) at oracle.jbo.server.ViewDefImpl.findDefObject(ViewDefImpl.java:739) at oracle.jbo.server.AMViewUsage.createViewObject(AMViewUsage.java:112) at oracle.jbo.server.ApplicationModuleDefImpl.loadViewObject(ApplicationModuleDefImpl.java:655) at oracle.jbo.server.ApplicationModuleDefImpl.loadComponents(ApplicationModuleDefImpl.java:916) at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:489) at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:86) at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:158) at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:73) at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2908) at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580) at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2468) at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2342) at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3241) at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571) at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:234) at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504) at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499) at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517) at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867) at oracle.adf.model.binding.DCDataControl.setErrorHandler(DCDataControl.java:486) at oracle.jbo.uicli.binding.JUApplication.setErrorHandler(JUApplication.java:261) at oracle.adf.model.BindingContext.put(BindingContext.java:1318) at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:247) at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1020) at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1645) at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:1514) at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:1474) at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:1150) at oracle.adf.model.BindingContext.get(BindingContext.java:1103) at oracle.adf.model.binding.DCParameter.evaluateValue(DCParameter.java:82) at oracle.adf.model.binding.DCParameter.getValue(DCParameter.java:111) at oracle.adf.model.binding.DCBindingContainer.getChildByName(DCBindingContainer.java:2748) at oracle.adf.model.binding.DCBindingContainer.internalGet(DCBindingContainer.java:2796) at oracle.adf.model.binding.DCExecutableBinding.get(DCExecutableBinding.java:115) at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:329) at oracle.adf.model.binding.DCBindingContainer.evaluateParameterWithElCheck(DCBindingContainer.java:1478) at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1608) at oracle.adf.model.binding.DCIteratorBinding.initDataControl(DCIteratorBinding.java:2542) at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2477) at oracle.jbo.uicli.binding.JUCtrlActionBinding.getDataControl(JUCtrlActionBinding.java:583) at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:316) at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296) at oracle.jbo.uicli.binding.JUCtrlActionBinding.getEnabled(JUCtrlActionBinding.java:1824) at oracle.jbo.uicli.binding.JUCtrlActionBinding.internalGet(JUCtrlActionBinding.java:1918) at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.internalGet(FacesCtrlActionBinding.java:367) at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:749) at javax.el.MapELResolver.getValue(MapELResolver.java:164) at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) at com.sun.el.parser.AstValue.getValue(Unknown Source) at com.sun.el.parser.AstNot.getValue(Unknown Source) at com.sun.el.ValueExpressionImpl.getValue(Unknown Source) at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109) at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:73) at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.getDisabled(GoLinkRenderer.java:585) at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.isDisabled(GoLinkRenderer.java:760) at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.handleInaccessibility(GoLinkRenderer.java:663) at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.encodeAll(GoLinkRenderer.java:146) at oracle.adfinternal.view.faces.renderkit.rich.CommandLinkRenderer.encodeAll(CommandLinkRenderer.java:170) at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452) at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:493) at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:913) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659) at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:606) at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201) at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeHorizontalChild(PanelGroupLayoutRenderer.java:525) at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$1200(PanelGroupLayoutRenderer.java:30) at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:698) at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:637) at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:187) at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:318) at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:283) at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:360) at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452) at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:493) at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:913) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659) at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:606) at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201) at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer.encodeFacet(DecorativeBoxRenderer.java:440) at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer._encodeCenterPane(DecorativeBoxRenderer.java:704) at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer.encodeAll(DecorativeBoxRenderer.java:380) at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452) at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:493) at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:913) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659) at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:606) at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201) at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:623) at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062) at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:274) at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452) at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:493) at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:913) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659) at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:606) at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201) at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:623) at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062) at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1277) at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452) at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:493) at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:913) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655) at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:91) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399) at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:350) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273) at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:165) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1027) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:334) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:232) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:121) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111) at java.security.AccessController.doPrivileged(Native Method) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:178) Caused by: java.lang.ClassNotFoundException: BigInteger at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270) at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64) at java.lang.ClassLoader.loadClass(ClassLoader.java:305) at java.lang.ClassLoader.loadClass(ClassLoader.java:246) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:35) at oracle.jbo.common.JBOClass.forName(JBOClass.java:174) at oracle.jbo.common.JBOClass.findDataClass(JBOClass.java:239) ... 176 more

    Thanks for u replay
    yes it show same error when i run new page without template
    but i close jdevloper and open it again and  page come but   appear others error
    in message popup  in page like this
    ""Messages for this page are listed below.ErrorBigIntegerErrorBigInteger   ""
    And in log  file it appear like this
    - http://localhost:7101/MenuWebApp-ViewController-context-root/faces/TaskStuts
    <ViewHandlerImpl> <_checkTimestamp> Apache Trinidad is running with time-stamp checking enabled. This should not be used in a production environment. See the org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: BigInteger
    java.lang.ClassNotFoundException: BigInteger
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
      at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)

  • Using EL to get values from View Objects

    Hello again!
    I' m using jdev 11.1.1.4.0, with adf and business components
    Is there any way i can get a value to an af:outputText from a view object's field without
    a) having to expose all fields that I need in bindings tab?
    b) having to declare all fields to a backing bean
    I have a statistical table with about 30 numbers in a record and it would make my project impossible to follow!
    Some EL on the af:outputText with a parameter to a function on my backing bean, would sound perfect, but I've read that it's impossible...
    Any clues?
    Thank you for your efforts!
    Nikos

    I did not understand you.
    will the drag and drop your attribute on your page will solve your problem?
    or do you need to create attributeValues biding for single attribute? if yes do the following:
    1- From your page, right click and select Go to Page Definition.
    2- From the binding section, click the plus green icon to create a new control biding, and choose attributeValues from the list.
    3- select your data source from the list or create a new one, then select the attribute you need.
    4- now you have a biding, and you can set the value for your output text.
    value =#{biding.yourAttribute.inputValue}

  • Mitigating SQL injection when forced to use substitution variables

    The 3rd party software that I use has exactly one way of allowing users to specify runtime parameters: Substitution variables.
    The scripts are executed using SQL*Plus. I'm looking for ways to secure this.
    Please don't say "Don't use substitution variables" - read above, it's the only way this software works.
    My first thought was something like this:
    var myvar varchar2(30)
    exec :myvar := '&user_input';That's no good. What if the user specifies "X'; execute immediate 'drop table sometable" Then we get
    exec :myvar := 'X'; execute immediate 'drop table sometable';Again, no good.
    I thought perhaps something like the following would work:
    exec :myvar := dbms_assert.noop('&user_input');but then again, a malicious user could specify "'); execute immediate 'drop table sometable'; dbms_assert.noop('"
    I'm open to suggestions.
    What can I do to sanitize substitution variables?
    Thank you!
    Edited by: krissco on Jan 30, 2013 3:02 PM

    You could use:
    var myvar varchar2(30)
    exec :myvar := DBMS_ASSERT.ENQUOTE_LITERAL('&user_input');For example:
    SQL> exec :myvar := '&user_input';
    Enter value for user_input: X';execute immediate 'begin dbms_output.put_line(''XXXX'');end;
    XXXX
    PL/SQL procedure successfully completed.
    SQL> exec :myvar := DBMS_ASSERT.ENQUOTE_LITERAL('&user_input');
    Enter value for user_input: X';execute immediate 'begin dbms_output.put_line(''XXXX'');end;
    BEGIN :myvar := DBMS_ASSERT.ENQUOTE_LITERAL('X';execute immediate 'begin dbms_output.put_line(''XXXX'');end;'); END;
    ERROR at line 1:
    ORA-06550: line 1, column 48:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ) , * & = - + < / > at in is mod remainder not rem =>
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec as between from using || multiset member
    submultiset
    The symbol ")" was substituted for ";" to continue.
    ORA-06550: line 1, column 110:
    PLS-00103: Encountered the symbol ")" when expecting one of the following:
    * & = - + ; < / > at in is mod remainder not rem return
    returning <an exponent (**)> <> or != or ~= >= <= <> and or
    like like2 like4 likec between into
    SQL>SY.
    Edited by: Solomon Yakobson on Jan 30, 2013 8:28 PM

  • [Solved] How to adjust parameters of an SSIS package in SQL Server when using an SSISDB execution Script (=SP)

    Hello,
    I created a package in Visual Studio Integration Services, where it runs successfully.
    I then deployed it to SQL server 2012. Here to it runs successfully, too.
    Then I changed the script in that I exchanged two variables for two parameters - doing the same thing.
    I noticed that in VS no dialog window comes up where I could change the value of the parameters; here obviously I am expected to set them in Visual Studio.
    However, in SQL Server 2012 the dialog window does come up when I execute the package. I can then change the value of my two parameters and the package runs OK, giving me the expected results.
    Now I created a script in SQL Server from which to execute the package. Do I have to change the script every time when I want it to run with different values for the parameters?
    So far I have not even found how to feed different values for the parameters into the package by using the script. Or could I tell the script somehow to bring up the dialog window for changing the parameters?
    How can I set/change the package parameters by using an SSIS execution script in SQLserver?
    Or how could I bring up the dialog window thru the script?
    Would s.o have an example?
    Help is greatly appreaciated. 
    Thank you
    Andreas

    Hi,
    I found out by myself and leave the answer here should s.b. else wonder about the same issue.
    Look at this:
    Declare
    @var0 sql_variant
    = 1
    Exec
    [SSISDB].[catalog].[set_execution_parameter_value]
    @execution_id,
    @object_type=30,
    @parameter_name='MaxPosition',
    @parameter_value=@var0
    Declare
    @var1 nvarchar
    = 'x'
    Exec
    [SSISDB].[catalog].[set_execution_parameter_value]
    @execution_id,
    @object_type=30,
    @parameter_name='NameContains',
    @parameter_value=@var1
    Now, what is important and was not evident to me is:
    1) The variable you use for the parameters - here var0 and var1 must match in their data type the corresponding parameter used in the package.
    2) The @parameter_name must match the corresponding parameter name in the package.
    3) The value that is being passed to the respective package parameter is the value you specify in the Declare statement. So in my case a string x and an int 1 is used.
    4) Of course the @object_type must be set to 30 for package parameters 
    Then the script runs the package with adjusted parameters.
    To many this might be evident, to me it was not.
    Cheers
    Andi
    Andreas

Maybe you are looking for

  • Error message when Sync from itunes.

    I have 2 TVs, both have the latest update, iTunes 8, using AE for WIFI and both streaming. Both units have been working great for over a year now. One of the unit is now freezing up after about 1hr of use... I get this error message from iTunes when

  • An error in Script Logic

    Hi Experts, I have a problem with one of the FXTranslation logicu2019s in one of my report can u please help me on that. The logic works fine for 2 reports out of 3, for the 3rd report I donu2019t know why itu2019s not doing the translation to USD. A

  • 7.x Workbook BroadCasting questions

    Hello Gurus, We are currently upgrading from BW 3.5 to 7.01 and migrating several Reporting Agent settings to the BroadCaster 7. We need your assistance on a particular requirement for which we cannot find a clear answer online (either on SDN, OSS or

  • Reset Officejet 7110 Wide

    Hello, I bought an OfficeJet7110 Wide, The guy that install it, used the claim code on his ePrint account. How do I reset this printer, in order to get new Claim Code ? So, I can register it on my ePrint ("HP Connected") ? Thanks,

  • Oracle WebCenter Adapter for MS SharePoint is not working

    Can anyone please help me? I have downloaded the SharePoint adapter off of the oracle web site and followed the configuration from http://download-uk.oracle.com/docs/cd/B32110_01/webcenter.1013/b31074/jpsdg_content.htm#BABBCIEH. I have also downloade