Handling '\' in reg exp query while integrating it in phython

Hi,
I am using the oracle 10g . I am trying to write a below mention sql regular expression in Python script. This query is working fine when I am running this in the sql developer (using it independently) However when I am trying to integrate the same inside Python script it doesn't do the required job. As per my Initial analysis this may be because in my regex query I have use '\' (in bold) which it is escaping because in log it is getting replaced by ^
Actual Query_
query = "UPDATE "+self.schema+";."+table_name+" SET SSR_FREE_TEXT=REPLACE(REGEXP_REPLACE(:1,'(\d{6})(\d{2,9})(\d{4})','\1X\3'), 'X', LPAD('X',LENGTH(SSR_FREE_TEXT) - LENGTH(REGEXP_REPLACE(SSR_FREE_TEXT,'(\d{6})(\d{2,9})(\d{4})','\1\3')),'X')) WHERE SSR_ID=:2"
In log_
UPDATE OWNADSSMOHANTHY_AIR_AY.SSR SET SSR_FREE_TEXT=REPLACE(REGEXP_REPLACE(:1,'(\d{6})(\d{2,9})(\d{4})','^AX^C'), 'X', LPAD('X',LENGTH(SSR_FREE_TEXT) - LENGTH(REGEXP_REPLACE(SSR_FREE_TEXT,'(\d{6})(\d{2,9})(\d{4})','^A^C')),'X')) WHERE SSR_ID=:2
The use of this regexp is IF I have a value of IDCCCA5475129999998943 it should be replaced to IDCCCA547512XXXXXX8943
Whereas when using in python it replaced the value to IDCCCAXXXXXXXXXXXXXXXX
Could you please help me in resolving this
Regards

I do not know much about Python but can you look into this line:
Other programming languages like .NET languages, Java, and Python instead provide regular expressions through standard libraries.
Please refer:
http://en.wikipedia.org/wiki/Regular_expression

Similar Messages

  • User license query while integrating with SAP HR system

    One of our clients wants to develop  web based employee self service applications (web enabled modules) on their existing SAP HR suite.
    Currently they are on SAP HR , ECC 5.0
    Would they need to buy extra licenses for integration with the existing system or can the existing licenses be used concurrently?
    I am not sure where to look for this piece of information. In case this question is inappropriate to this forum my apologies for the same.
    Best Regards
    Yuvaraj

    Yuvaraj,
    The best thing would be for your client to contact their SAP account representative and check how many and what type of users their existing licensing agreement with SAP includes.
    Best Regards,
    Alexandra

  • Over query limit while integrating google maps

    Hi
    I am getting over query limit error when i want to display more than 11 records while integrating google maps in obiee. I can display upto 11 records in the map.If i increase the row limit its throwing the error.
    Error: Geocode was not succesfull for the following reason: Over_query_limit
    How to overcome this error,in order to fetch more than 11 records in the map?
    I have only two columns in the report
    state code || No.Of Customers
    In narrative view i have the following code
    Replace ?!? with <
    Prefix part
    ?!?script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false">
    ?!?/script>
    ?!?script type="text/javascript">
    var geocoder;
    var map;
    function initialize() {
    geocoder = new google.maps.Geocoder();
    var latlng = new google.maps.LatLng(37.4219720, -122.0841430);
    var myOptions = {
    zoom: 8,
    center: latlng,
    mapTypeId: google.maps.MapTypeId.ROADMAP
    map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
    GetMapAdress ();
    function showAddress(address,comment) {
    if (geocoder) {
    geocoder.geocode( { 'address': address}, function(results, status) {
    if (status == google.maps.GeocoderStatus.OK) {
    map.setCenter(results[0].geometry.location);
    var marker = new google.maps.Marker({
    map: map,
    position: results[0].geometry.location
    var infowindow = new google.maps.InfoWindow({
    content:comment
    google.maps.event.addListener(marker, 'click', function() {
    infowindow.open(map,marker);
    } else {
    alert("Geocode was not successful for the following reason: " + status);
    function GetMapAdress (){
    Narrative:
    showAddress('@1', ' No Of customers are @2');
    Postfix part:
    ?!?/script>
    ?!?script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript">?!?/script>
    ?!?script type="text/javascript">
    $(document).ready( function(){initialize();return false;});
    ?!?/script>
    ?!?body onunload="GUnload()">
    ?!?div id="map_canvas" style="width: 800px; height: 700px" > ?!?/div>
    ?!?/body>
    This gives the count as per the state in the google map, if we click a state it will show us the count, but its holding good only for 11 records in the map
    Appreciate your response

    I haven't yet used the tag. It looks quite interesting.
    I had a look at the
    cf_googleMap
    Documentation out of curiosity. Apparently, putting
    <cf_googlemapshow/> at the end, just before the closing body
    tag, solves a number of Javascript issues.

  • Issue while integrating  OID and BPEL.

    Issue while integrating OID and BPEL.
    We followed steps mentioned in for integration. WE have two SoA instances, home, oc4j_soa.
    http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28982/service_config.htm#BABIBGFF
    Before running configure_oid.bat script, we changed jazn.xml to include the contents that are available in home\jazn.xml.
    The contents we replaced contain
    <jazn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/jazn-10_0.xsd" schema-major-version="10" schema-minor-version="0" provider="LDAP" location="ldap://myhost:389" default-realm="my-realm" >
         <property name="custom.sso.url.login" value="/jsso/SSOLogin" />
         <property name="ldap.user" value="orclApplicationCommonName=jaznadmin2,cn=JAZNContext,cn=products,cn=OracleContext" />
         <property name="ldap.password" value="{903}dA0r1HydR5qIhjAn2OCLMSWlFXeLdV//sCLFNwSfWhE=" />
         <property name="custom.sso.key.alias" value="ssoSymmetricKey" />
         <property name="idm.token.asserter.class" value="oracle.security.jazn.sso.SSOCookieTokenAsserter" />
         <property name="idm.token.collector.class" value="oracle.security.jazn.sso.SSOCookieTokenCollector" />
         <property name="idm.token.type" value="HTTP_COOKIE" />
         <property name="idm.token.collector.cookie.1" value="ORA_OC4J_SSO" />
         <property name="custom.sso.url.logout" value="/jsso/SSOLogout" />
         <property name="ldap.protocol" value="no-ssl" />
         <property name="idm.authentication.name" value="JavaSSO" />
    </jazn>
    configure_oid.bat ran successfully.
    But when we try restarting SoA, it gives error. If we replace the above to point to XML-based jazn then SoA starts succcessfully.
    Please let us know if we are missing anything.
    Regards
    Yatan

    *1.) No I am not able to complete 2.1.3.3 step 3 the*
    work list application is showing "authentication fail"
    user look up is showing "unable to find the realm with name my-realm "
    *2.) After 2.1.3.3 step 2, if I try restarting the SOA suite, it throws following error.*------------------------------------------------------------------------------------------------------------------------------------------------------------
    Configuration information
    Running in C:\product\10.1.3.1\OracleAS_1
    Operation mode:Startup, App Server, No Enterprise Manager, Single Instance
    Oracle home:C:\product\10.1.3.1\OracleAS_1
    Oracle home name:Unnamed
    Instance name:ias_soa.myhost
    Instance type:allProducts
    Version:10.1.3.1.0
    Uses infrastructure:false
    Not an infrastructure instance, no infrastructure information available
    Components:[j2ee, apache, orabpel, oraesb, owsm, Wsil]
    2009-06-29 04:10:49.962--Begin log output for Mid-tier services (ias_soa.myhost)
    2009-06-29 04:10:49.962--Processing Step: starting OPMN
    2009-06-29 04:10:57.493--Processing Step: starting OPMN managed processes
    2009-06-29 04:11:22.806--End log output for Mid-tier services (ias_soa.myhost)
    An unknown OPMN error has occured
    oracle.appserver.startupconsole.model.ConsoleException: An unknown OPMN error has occured
         at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:140)
         at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
         at oracle.appserver.startupconsole.control.GroupController.doStart(GroupController.java:47)
         at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
         at oracle.appserver.startupconsole.view.controller.ControllerAdapter.start(ControllerAdapter.java:30)
         at oracle.appserver.startupconsole.view.controller.MasterControlAdapter.run(MasterControlAdapter.java:94)
         at oracle.appserver.startupconsole.view.Runner.main(Runner.java:39)
    Caused by: oracle.appserver.startupconsole.model.ConsoleException: There are some errors while stopping the following components. Refer to the generated error report for more details.
    ==================================================
    ias-component: default_group
    process-type: oc4j_soa
    process-set: default_group
    Error Message:failed to start a managed process after the maximum retry limit
    ==================================================
         at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:139)
         ... 6 more
    Caused by: oracle.ias.opmn.optic.OpticControlException: Error from opmn during process control operation
         at oracle.ias.opmn.optic.AbstractOpmnEntity.runCommand(AbstractOpmnEntity.java:174)
         at oracle.ias.opmn.optic.AbstractOpmnEntity.start(AbstractOpmnEntity.java:110)
         at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:97)
         ... 6 more
    Exception caused by
    There are some errors while stopping the following components. Refer to the generated error report for more details.
    ==================================================
    ias-component: default_group
    process-type: oc4j_soa
    process-set: default_group
    Error Message:failed to start a managed process after the maximum retry limit
    ==================================================
    oracle.appserver.startupconsole.model.ConsoleException: There are some errors while stopping the following components. Refer to the generated error report for more details.
    ==================================================
    ias-component: default_group
    process-type: oc4j_soa
    process-set: default_group
    Error Message:failed to start a managed process after the maximum retry limit
    ==================================================
         at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:139)
         at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
         at oracle.appserver.startupconsole.control.GroupController.doStart(GroupController.java:47)
         at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
         at oracle.appserver.startupconsole.view.controller.ControllerAdapter.start(ControllerAdapter.java:30)
         at oracle.appserver.startupconsole.view.controller.MasterControlAdapter.run(MasterControlAdapter.java:94)
         at oracle.appserver.startupconsole.view.Runner.main(Runner.java:39)
    Caused by: oracle.ias.opmn.optic.OpticControlException: Error from opmn during process control operation
         at oracle.ias.opmn.optic.AbstractOpmnEntity.runCommand(AbstractOpmnEntity.java:174)
         at oracle.ias.opmn.optic.AbstractOpmnEntity.start(AbstractOpmnEntity.java:110)
         at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:97)
         ... 6 more
    <?xml version='1.0' encoding='WINDOWS-1252'?>
    <response>
    <msg code="-82" text="Remote request with weak authentication.">
    </msg>
    <opmn id="bg1ws0008:6201" http-status="206" http-response="2 of 3 processes started.">
    <ias-instance id="ias_soa.myhost">
    <ias-component id="default_group">
    <process-type id="home">
    <process-set id="default_group">
    <process id="91427687" pid="4148" status="Alive" index="1" log="C:\product\10.1.3.1\OracleAS_1\opmn\logs\\default_group~home~default_group~1.log" operation="request" result="success">
    <msg code="0" text="">
    </msg>
    </process>
    </process-set>
    </process-type>
    <process-type id="oc4j_soa">
    <process-set id="default_group">
    <process id="91427688" pid="5856" status="Init" index="1" log="C:\product\10.1.3.1\OracleAS_1\opmn\logs\\default_group~oc4j_soa~default_group~1.log" operation="request" result="failure">
    <msg code="-21" text="failed to start a managed process after the maximum retry limit">
    </msg>
    </process>
    </process-set>
    </process-type>
    </ias-component>
    <ias-component id="HTTP_Server">
    <process-type id="HTTP_Server">
    <process-set id="HTTP_Server">
    <process id="91427686" pid="5140" status="Alive" index="1" log="C:\product\10.1.3.1\OracleAS_1\opmn\logs\\HTTP_Server~1.log" operation="request" result="success">
    <msg code="0" text="">
    </msg>
    </process>
    </process-set>
    </process-type>
    </ias-component>
    </ias-instance>
    </opmn>
    </response>
    *3.) opmnctl status -all ?*
    C:\product\10.1.3.1\OracleAS_1\opmn\bin>opmnctl status -all
    Usage:
    opmnctl [<scope>] status [<options>] [host port]
    Notes:
    - if host,port is specified, contact opmn on host,port;
    otherwise, contact opmn in local ias instance.
    scope:
    @instance(:name)*|@cluster
    scope specifies how far to apply the query. To apply the query to
    all known iAS Instances, specify "cluster". To apply the query
    to a specific set of 1 or more iAS Instances, specify
    "instance(:instname(:instname...))". If no names are supplied
    in an instance scope string then the request is applied to the
    "local" instance. In this context, "local" means the instance
    containing the opmn server handling the request.
    Default: local iAS Instance.
    Options:
    [ias-component|oc4j-group]=id
    - filter output by ias-component name
    - i.e. filter output by oc4j-group name
    -l - pre-selected long output format:
    %cmp32%prt18%pid7R%sta8%uid10R%mem8R%utm9R%por
    -fmt <fmtlist> - output format (see details below)
    Option "-fmt <fmtlist>" and "-l" are mutually exclusive
    -fsep <string> - field separator (default:" | ")
    -rsep <string> - record separator (default:"\n")
    -noheaders - don't print a header
    -c <count> - number of times to print status (default:1)
    -i <nsecs> - seconds between each print (default:5)
    -app [-l] - application status (optional long format)
    -port - opmn "request" host and port (scope
    argument invalid)
    Format String Syntax:
    <fmtlist> - A single string containing one or more statistic
    identifiers concatenated together where each identifier has
    the following format: %<statname>[<width>[<justification>]]
    default: %cmp32%prt18%pid7R%sta8
    <statname> - Must be one of the following:
    ins - iAS Instance Name
    cmp - iAS Component Id
    prt - Process Type Id
    prs - Process Set Id
    idx - Index of process in Process Set
    pid - OS Process Identifier
    uid - Opmn Unique Id
    typ - Name for this kind of process
    sta - Process status
    stm - start time (ms)
    utm - up time (ms)
    cpu - cpu time (ms)
    mem - memory used (Kb)
    pme - private memory (Kb)
    sme - shared memory (Kb)
    hpz - heap size (Kb)
    por - Port List
    <width> - The number of columns to use for this field. Output
    less than this value will receive padding according to the
    specified justification. Output more than this value will
    be truncated and terminated with '~'.
    default: the width of each datum
    <justification> - How to justify output when less than the width.
    Must be L, R, or C (left, right, or center justification).
    default: L
    4.) SOA Suite version ? *10.1.3.1.0*
    5.) Did you manually tweak some configuration file or followed the documentation as it is ? I have followed the document as it is.
    I have changed only jazn.xml available in ..j2ee/oc4j_soa suite to have the below section:  This section was copied from jazn.xml of ..j2ee/home directory that has been automatically updated after running configure_oid.bat file
    <jazn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/jazn-10_0.xsd" schema-major-version="10" schema-minor-version="0" provider="LDAP" location="ldap://myhost:389" default-realm="myrealm" >
         <property name="custom.sso.url.login" value="/jsso/SSOLogin" />
         <property name="ldap.user" value="orclApplicationCommonName=jaznadmin2,cn=JAZNContext,cn=products,cn=OracleContext" />
         <property name="ldap.password" value="{903}dA0r1HydR5qIhjAn2OCLMSWlFXeLdV//sCLFNwSfWhE=" />
         <property name="custom.sso.key.alias" value="ssoSymmetricKey" />
         <property name="idm.token.asserter.class" value="oracle.security.jazn.sso.SSOCookieTokenAsserter" />
         <property name="idm.token.collector.class" value="oracle.security.jazn.sso.SSOCookieTokenCollector" />
         <property name="idm.token.type" value="HTTP_COOKIE" />
         <property name="idm.token.collector.cookie.1" value="ORA_OC4J_SSO" />
         <property name="custom.sso.url.logout" value="/jsso/SSOLogout" />
         <property name="ldap.protocol" value="no-ssl" />
         <property name="idm.authentication.name" value="JavaSSO" />
    </jazn>
    instead of
    <jazn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/jazn-10_0.xsd" schema-major-version="10" schema-minor-version="0" provider="XML" location="./system-jazn-data.xml" default-realm="jazn.com">
    <!-- properties to configure the 3rd party IDM framework -->
         <property name="idm.authentication.name" value="JavaSSO"/>
         <property name="idm.token.asserter.class" value="oracle.security.jazn.sso.SSOCookieTokenAsserter"/>
         <property name="idm.token.collector.class" value="oracle.security.jazn.sso.SSOCookieTokenCollector"/>
         <property name="idm.token.type" value="HTTP_COOKIE"/>
         <property name="idm.token.collector.cookie.1" value="ORA_OC4J_SSO"/>
    <!-- properties for the out of the box Java SSO -->
         <property name="custom.sso.url.login" value="/jsso/SSOLogin"/>
         <property name="custom.sso.url.logout" value="/jsso/SSOLogout"/>
         <property name="custom.sso.key.alias" value="ssoSymmetricKey"/>
    </jazn>

  • A doubt on REG EXP

    Hi friends,
    Please clarify the following doubt in Reg Exp.
    Table EMP has following EMP_NAMEs:
    ============
    Anand
    Bala_G
    Chitra
    David_C
    Elango
    Fathima
    ============
    We have a set of characters as "abcdefghijklmnopqrstuvwxyz0123456789".
    Now we need to find the count of EMP_NAMES whose characters (any) are not in the list of characters in the above list. In this example, the result should be 2. i.e., 'Bala_D' and 'David_C'. The query should be like:
    Declare
    v_string varchar2(50) := 'abcdefghijklmnopqrstuvwxyz0123456789';
    v_count number(6);
    Begin
    select count(*)
    into v_count
    from emp
    where regexp_like(emp_name, v_string);
    dbms_output.put_line(v_count);
    end;
    ========================
    Thanks in advance!

    Hi,
    Welcome to the forum!
    To use REGEXP_LIKE, you could say:
    WHERE     REGEXP_LIKE ( emp_name
                  , '[^abcdefghijklmnopqrstuvwxyz0123456789]'
                  )However, it will be faster not to use regular expressions:
    WHERE   LTRIM ( emp_name
               , 'abcdefghijklmnopqrstuvwxyz0123456789'
               )          IS NOT NULLEdited by: Frank Kulash on Oct 10, 2012 4:18 PM
    Removed extra single-quote, after DAMorgan, below.

  • Getting Error while integrating Crystal reports with Java

    Hi All,
    I am getting below error while integrating crystal report with java
    [java] os.arch = x86
    [java] java.lang.NoSuchMethodError: com.crystaldecisions.Utilities.d.<init>
    (Ljava/awt/Image;I)V
    [java] at com.crystaldecisions.Utilities.af.try(Unknown Source)
    [java] at com.crystaldecisions.Utilities.af.a(Unknown Source)
    [java] at com.crystaldecisions.Utilities.af.<init>(Unknown Source)
    [java] at com.businessobjects.crystalreports.viewer.applet.g.a(Unknown
    Source)
    [java] at com.crystaldecisions.ReportViewer.ReportViewer.start(Unknown
    Source)
    [java] at ReportViewerFrame.<init>(ReportViewerFrame.java:51)
    [java] at JRCViewReport.launchApplication(JRCViewReport.java:29)
    [java] at JRCViewReport$1.run(JRCViewReport.java:50)
    [java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:
    178)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
    spatchThread.java:190)
    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
    atchThread.java:144)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
    ava:138)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
    ava:130)
    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    Any help can be appreciated
    Kalyan

    Hi All,
    For got to mention i am using crystal reports XI release 2 with JDK1.4.
    Kalyan

  • EC-CS -Error G00022 while integrating Cons Units and Company in CXNT

    Hi,
    The question is related to EC-CS ( Enterprise controlling - Consolidation.)
    While integrating the Consolidation units with Company in t code CXNT,  the system gives an error message as below:
    Default value to char. Partner unit does not exist for value CO from char. Dimension
    Message no. G00022
    Diagnosis
    Default values must be maintained for the characteristic Partner unit. Numerous consolidation functions use this default value.
    The characteristic Partner unit is in a compounding relationship with the characteristic Dimension and is dependent on its characteristic value. For the value CO of the independent characteristic Dimension no default value is maintained.
    Procedure
    Maintain for every value of the independent characteristic Dimension a default value for the characteristic Partner unit.
    I don't understand the configuration missing for the above eror. Any help is appreciated.
    Njoy
    Siva

    Hi,
    We need to maintain the default values in transaction - CXOAA.
    The issue is solved.
    Njoy
    Siva

  • Portal Runtime error occured while integrating WebDynpro App

    Hi all,
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    Application URL ':///webdynpro/dispatcher/local/Example_FL/ExampleFLApp' is not valid! Please check the protocol and host entries for system 'SAP_R3'..
    See the details for the exception ID in the log file
    This is the error that I got while integrating WD appl into Portal. I have Created a Folder in Content Administrator->Niew iView->com.sap.portal.appintegrator.sap
    then selected Webdynpro.
    Followed by created an iView by selecting appropriate settings. What went wrong. But the WD appl is working fine individually. Please help me
    regards,
    Ganesh

    Hi Ganesh,
    It seems that you are unable to see webdynpro application into portal for this you need to create webdynpro system and then create webdynpro iview from portals which required parameters like
    1) system : which is webdynpro system
    2) webdynpro namespace : local/yourtestproject
    3) application name : name of the webdynpro application
    I am attaching link for your reference.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3e36d690-0201-0010-cd99-bfbb81bd33d9
    Regards,
    Hemant
    Award points if helpful.

  • How to handle table control in BDC while uploading item details for anorder

    How to handle table control in BDC while uploading item details for an order?
    What is the use of CTU_PARAMS structure in BDC?
    In Finance I have done some changes to the layout set by coping to a zscript(duning letter) and how can assign the print program?
    What is the process to test the finance script?
    How can I see the print preview whether it is coming correctly or not?
    Thanks in advance.
    Regards.
    Abhilash.

    hi,
    for the bdc control refer the following link:
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    ctu_params:
    refer to the link
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/dataTransfers-LSMW%2CALE%2C+BDC
    reward if useful,
    thanks and regards

  • Error while integrating Struts1.2.9 with Hibernate on WEBLOGIC 8.1 sp2

    Hi,
    I am trying to use Hibernate in my application but while integration struts with Hibernate i m getting the following error
    <Error> <HTTP> <BEA-101216> <Servlet: "action" fail
    ed to preload on startup in Web application: "DefaultWebApp".
    javax.servlet.UnavailableException
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:399)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(Servl
    etStubImpl.java:1094)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
    pl.java:970)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
    Impl.java:949)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
    mpl.java:888)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
    ervletContext.java:3430)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
    ServletContext.java:3375)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
    pServletContext.java:3356)
    at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServl
    etContext.java:6208)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:864)
    at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer
    .java:2134)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
    ner.java:2175)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
    ner.java:2122)
    at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivat
    ion(SlaveDeployer.java:3099)
    at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForA
    llApplications(SlaveDeployer.java:1768)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.j
    ava:351)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
    e(DeploymentManagerServerLifeCycleImpl.java:229)
    at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
    at weblogic.Server.main(Server.java:32)
    >
    Please help me
    Regards,
    Arun

    That appears to be a bug in the console. You might try the command-line tool java weblogic.Deployer for deploying apps. java weblogic.Deployer -examples will give detailed usage info.
    -- Rob
    WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • Need to write a query while configuring Database Adapter

    Hi,
    I am working in BPEL.i need to write a query while configuring the DB adapter. i need to query a table which contains five rows each row containing 7 columns. my query should be like if i give the first column name(for eg:Title) it should return the complete row(i.e all the 7 columns in a row).
    So after deploying during testing when i give the Column name(Title) in the BPEL console it should return the row.
    How to write a query such tht if i give any title name in the five rows it should return the respective row
    please help me out.
    Regards,
    Mohamed

    Hi,
    I got the answer for this.its working fine now.
    the query is: select TITLE,..... from movie where (TITLE =#title);
    The second "title" will be the one which i am going to give in bpel console
    so it wil check with the "TITLE" in the table and execute the query.
    Regards,
    Mohamed

  • Runtime error occured while integrating WD appl into Portal?!@#

    Hi all,
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    Application URL ':///webdynpro/dispatcher/local/Example_FL/ExampleFLApp' is not valid! Please check the protocol and host entries for system 'SAP_R3'..
    See the details for the exception ID in the log file
    This is the error that I got while integrating WD appl into Portal. I have Created a Folder in Content Administrator->Niew iView->com.sap.portal.appintegrator.sap
    then selected Webdynpro.
    Followed by created an iView by selecting appropriate settings. What went wrong. But the WD appl is working fine individually. Please help me
    regards,
    Ganesh

    Hi,
           Have you create IView properly?.
    Here is the step-by-step procedure to create a web dynpro iView in portal:
    1. Logon to portal.
    2. Content Administration->Portal Content.
    3. Right Click on the folder 'Portal Content'.
    4. Select 'iView' ->'New'
    5. In the Template Selection, select 'SAP Web Dynpro iView' and click 'Next'
    6. In the 2nd step, Give iView Name and iView ID and a prefix. Next.
    7. Select application variant, say, 'Java' in the 3rd step. Next.
    8. In the 4th step, select the System (Your WAS System), give the project name of your webdynpro, like, local/ABC_Project in the WebDynproNameSpace. In the Application Name, enter the application name of your Web Dynpro Application, say ABC_App. Next.
    9. Finish.
    10. In the left panel, now you will see an iView has been created.
    11. Create necessary role/workset and assign this iView for an user.
    Hope this helps.
    Kind Regards,
    S.Saravanan.

  • How to make Matcher stop once a reg exp match is found

    Is there a way to make the regular expression Matcher stop reading from the underlying CharSequence once it finds a match? For example, if I have a very long String and a match for some regular expression is at the beginning of the String, can I make the Matcher object stop examining the String once it finds the match? The Matcher object seems to always examine the entire CharSequence, even if a match is very near the beginning.
    Thanks,
    Zach Cox
    [email protected]

    Nope, {1}+ doesn't work either. I know it's
    continuing because I created my own CharSequence
    implementation that just wraps a String orwhatever,
    and I print to System.out whenever Matcher callsthe
    charAt method.What about the lookingAt() method?I think lookingAt is like matches, except just the beginning of the CharSequence has to match (i.e. starting at index 0), not the entire thing. I tried it and it doesn't even find the reg exp. The find method at least finds the reg exp, it just reads too far.

  • Reg Exp - not as expected

    Not often I ask questions myself, and perhaps my mind's just gone fuzzy this morning, but I'm having trouble doing a simple replace with regular expressions...
    In the below example I just want to replace all occurences of "fred" with "freddies"...
    SQL> ed
    Wrote file afiedt.buf
      1* select regexp_replace('this freddies is fred fred record', 'fred', 'freddies') from dual
    SQL> /
    REGEXP_REPLACE('THISFREDDIESISFREDFREDRECORD'
    this freddiesdies is freddies freddies recordbut, obviously, I don't want the existing "freddies" to become "freddiesdies", it should stay as it is. So if I check for spaces either side of the search string (and take account of it maybe being at the start/end of the string...
    SQL> ed
    Wrote file afiedt.buf
      1* select regexp_replace('this freddies is fred fred record', '(^| )fred( |$)', '\1freddies\2') from dual
    SQL> /
    REGEXP_REPLACE('THISFREDDIESISFREDFRE
    this freddies is freddies fred record
    SQL>It no longer replaces the "freddies" incorrectly, BUT it only replaces the first occurence of "fred" with "freddies" and not the latter one. ?!?!?!
    If I put an extra space inbetween the two "fred"s then it works:
    SQL> ed
    Wrote file afiedt.buf
      1* select regexp_replace('this freddies is fred  fred record', '(^| )fred( |$)', '\1freddies\2',2) from dual
    SQL> /
    REGEXP_REPLACE('THISFREDDIESISFREDFREDRECO
    this freddies is freddies  freddies record
    SQL>But I'm not going to have double spaces between the words and I can't determine where to insert them to make it work like this so it's not a feasible solution, although it does seem to highlight that the regular expression parser is not taking the space after the first match in the context of being the space before the second match.
    Is that a bug in the regular expression parser, a feature of the way regular expressions work (i.e. expected) or am I doing something wrong with my search and replace reg.exp. strings?
    Cheers

    I think this will explain ..
    SQL> select regexp_replace
      2         ('this freddies is fred fred  fred record',
      3          '(^| )(fred)($| )','\1freddies\3') str
      4  from dual
      5  /
    STR
    this freddies is freddies fred  freddies record
    1 row selected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Reg Exp always returning false value

    Hi,
    Below is my code. I want to restrict the values to only alphabets and numbers and not special char.
    But the below condition fails on a positive value also. Ex: ABCD, abcd, 1234. These should be acceptable.
    Is the reg exp wrong?
    private var special_char:RegExp = /^[A-Za-z0-9]*$/;
                                  private function validateSpecialChar(inputValue:String):Boolean {
                                            if (special_char.test(inputValue))
                                                      valid = true;
                                            else
                                                      valid = false;
                                            return valid;
    Thanks,
    Imran

    Try: http://stackoverflow.com/questions/9012387/regex-expression-only-numbers-and-characters

Maybe you are looking for

  • Can you connect iPhone and iPad to iTunes at same time?

    Just received my new iPad2 and it will not show up in iTunes. I have my iPhone connected for a long time, but even if I disconnect it the iPad does not show up. Any Ideas?

  • Cheaper RAM for iMac G5

    I was searching and searching for cheap RAM for my iMac. It seems most places sale RAM for Macintosh computers but charge up the butt for it. Mac comps, or atleast the iMac G5, use what should be cheaper CAS3 memory. While searching I found most plac

  • I have a problem with the battery in my Trackpad...

    Hi, I have a problem with my trackpad... I didn't use it for 2-3 weeks and my problem is the battery in, they are oxidized.... And I can't open it to change them Do someone know if Apple replace it for free ? I get it with my iMac 1 years ago. Sorry

  • Question - Importing Flash Project into After Effects, Possible?

    Hi, Is there a way to open a Flash file (FLA) in After Effect?, cause I saw you can open an AEP that was converted to XFL in Flash... I want to be able to open my Flash project in After Effects, same way I can import a PSD as a composition, is there

  • Siri gives incorrect directions to specific addresses

    Siri has been a great tool for getting driving directions and I have always been impressed at how well the app adapts to route changes.  However, since upgrading to iOS7, I have been given incorrect directions.  In each case, given a specific address