Regex stack overlow

Hi,
I am using regex to find the longest match between a text file and a database. Program runs fine for about 2/3 of the text file, but then I get a stack overflow error. I am using regex recursively to find the longest match.
Thanks.

I am using regex recursively to find the longest match.Thats the cause of your stack overflow. Do it iteratively instead.

Similar Messages

  • Stack Overlow Exception

    Hi
    I am using Jdeveloper 11.1.2 .
    I am getting below exception. Please help me.
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.faces.FacesException: javax.servlet.ServletException: java.lang.StackOverflowError
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:548)
         at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
         at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
         at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:44)
         at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
         at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
         at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:167)
    Thanks in Advance

    I am falling please help..Can you help with the above statement.? you will have to say from where you are falling from.. what made you to fall from that place etc.. to help you..
    so please explain clearly what are you doing in the code.. can u please elaborate..

  • Regex gurus: Intermittent stack overflow from Matcher?

    I've been using the following code to grep out links from <a> tags in html. For some pages it is throwing stack overflows from within the pattern matcher class. I am wondering, is there a better way to be doing this, or did I make some kind of mistake that is causing this to happen? Any help or advice would be greatly appreciated.
        private static final String matchATags    = "(?i)<a(.|\\n)*?>";
        private static final String matchHREFPre  = "(?i)\\A(.|\n)*HREF\\s*=\\s*\"";
        private static final String matchHREFPost = "\"(.|\n)*$";
        private static final Pattern tagPattern = Pattern.compile(matchATags);
        protected List<String>
        getLinkText(
                String text
            if (text == null)
                throw new NullPointerException("null text");
            Matcher matcher = tagPattern.matcher(text);
            ArrayList<String> linkList = new ArrayList<String>();
            while (matcher.find()){
                String link = text.substring(matcher.start(), matcher.end());
                link = link.replaceAll(matchHREFPre, "");
                link = link.replaceAll(matchHREFPost, "");
                linkList.add(link);
            return linkList;
        }Here is a trace of the exception
    Parsing error scanning site http://www.amazon.com
    Error parsing http://www.amazon.com/exec/obidos/ASIN/0201752808/xeo
    Caused by java.lang.StackOverflowError
    java.lang.StackOverflowError
            at java.util.regex.Pattern$Branch.match(Pattern.java:3998)
            at java.util.regex.Pattern$GroupHead.match(Pattern.java:4052)
            at java.util.regex.Pattern$LazyLoop.match(Pattern.java:4241)
            at java.util.regex.Pattern$GroupTail.match(Pattern.java:4111)
            at java.util.regex.Pattern$BranchConn.match(Pattern.java:3962)
            at java.util.regex.Pattern$CharProperty.match(Pattern.java:3314)
            at java.util.regex.Pattern$Branch.match(Pattern.java:3998)
            at java.util.regex.Pattern$GroupHead.match(Pattern.java:4052)
            at java.util.regex.Pattern$LazyLoop.match(Pattern.java:4241)
            at java.util.regex.Pattern$GroupTail.match(Pattern.java:4111)
            at java.util.regex.Pattern$BranchConn.match(Pattern.java:3962)
            at java.util.regex.Pattern$CharProperty.match(Pattern.java:3314)
            at java.util.regex.Pattern$Branch.match(Pattern.java:3998)
          ...

    Never do this in a regex: "(.|\n)"  // WRONG If you want to match any character including line separators, use the dot in DOTALL mode: "(?s)." If there are characters you don't want to match, you can use a negated character class. In this case, you probably don't want to match angle brackets, so you could use this: "[^<>]" The way you're doing it (alternation) is extremely inefficient. Also, you aren't allowing for other kinds of line separator, like "\r\n" (DOS) and "\r" (older Mac OS). But if you do it the right way, you don't need to worry about that.

  • Regex to parse stacktrace in log file

    Hi,
    How to parse the below stack trace in log file:-
    Below is the stack trace:-
    2012-08-10 08:19:17 java.lang.NullPointerException
    2012-08-10 08:19:17 at net.minecraft.server.World.tickEntities(World.java:1146)
    2012-08-10 08:19:17 at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:567)
    2012-08-10 08:19:17 at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
    2012-08-10 08:19:17 at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
    2012-08-10 08:19:17 at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
    2012-08-10 08:19:17 at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    How to parse only the stack trace using regex? If i have put the stacktrace to a separate log file, what config needs to be done in log4j to capture only the stack trace?
    Thanks.

    > How to parse only the stack trace using regex?
    From the entire file?  I doubt it is possible.
    Log files are normally rather large.  You would need to read the entire file into memory, then apply a multiline regex which means it is going to be scanning an rescanning multiple times.  If it doesn't just die it would probably take a long time.
    Better to just build a parser that reads each line and does it.
    And of course the given example presumes that NO threads are in use.  If they are then the it is not deterministically possible to correctly the parse the file because there is no thread indicator.

  • Non-recursion-based regex

    I'm doing some heavy duty very special case regexing. If fact I have to build them programatically as the actual regular expressions can grow to over 60,000 characters in length.
    I'm doing this in 1.3.1 and have tried a couple free/open source regex packages. As one might imagine, I get StackOverflowErrors very often in every package I've tried.
    If this is such a problem with regular expressions, it seems someone would have created a Java regexp package that doesn't rely so heavily on recursion. (In fact people have, in other languages, I just haven't found one in Java).
    Anyway, my first question is: is there a Java non-recursion-based regex package out there?
    I know I can increase the stack size, but to what?! I build my regexs on the fly, and the data they operate on is also generated on the fly.
    I think an OutOfMemoryError with a non-recursive implementation would be a lot less likely that a StackOverFlowError. ???
    It's Saturday (as you can see) and it looks more and more like I may have to write/port a regex package that fits the bill. This is really a pain.
    Another possibility is to use GNU Kawa (which implements proper tail recursion) to compile a Scheme regexp implementation into something I can use from Java. This seems really convoluted.
    Any ideas?

    Indeed, a 60,000 char regex is, to be blunt,
    ridiculous. There has to be another approach to
    whatever problem you are solving (is it biological in
    nature, perchance?). It's pattern recongition of structures of objects.
    My problem is that what I would REALLY like to do boils down to "regular expressions" over an 2-dimentional array of arbitrary objects, not characters.
    As a completely inane example: 3 Strings who's length is between 7 and 19 that don't start with "foo" or "bar", followed by any number of objects implementing Runnable but not Comparable.
    I started doing this from scratch, but I thought a faster way to get things done was to cheat.
    So I created a system to translate the objects I'm interested in to a "compact" String representation, right now it's about 32 characters long. I can specify properties I'm looking for with this representation, or specify I don't care with '.' values in the fields I don't care about. So for example a lowercase e in a particular index represents non-editable, uppercase means editable, '.' means I don't care. Some field/properties require multiple characters to represent them.
    Now the patterns I'm looking for are in a 2 dimensional array of objects.
    When you start multiplying hundreds of objects by hundreds of objects by 32 characters per object ... You get a pretty big regex.
    Another option I've started is custom, from scracth "Java Object Regular Expressions" or JOREs as I like to call them (I already started coding this and needed a package name).
    (Does anything like this already exist? I haven't found it.)
    Anyway, 60,000 is bordering on worst case scenarios. It could happen. 7000-ish is a more realistic average I'd expect, but it doesn't make worst cases go away.
    It seems even in many smaller cases I get a StackOverflowError, but there are probably more nested .{,}[^]+* type things in those to make them more complex.

  • Regex patern to remove non-ascii characters

    Hi,
    How to remove non-ascii character from input for a country france using RegEx.
    Could you please help us to contruct regex pattern from above?
    Thanks

    This isn't a complete answer, but is a good starting point:
    Regex any ascii character - Stack Overflow

  • [bug]Jdev 11g:NullPointerException at java.util.regex.Matcher.getTextLength

    Hi,
    Jdev 11.1.1.0.31.51.56
    If somebody of you get the following trace stack when running a jspx using ViewCriteriaRow.setOperator :
    There is bug 7534359 and metalink note 747353.1 available.
    java.lang.NullPointerException
    at java.util.regex.Matcher.getTextLength(Matcher.java:1140)
    at java.util.regex.Matcher.reset(Matcher.java:291)
    at java.util.regex.Matcher.<init>(Matcher.java:211)
    at java.util.regex.Pattern.matcher(Pattern.java:888)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._loadFilter
    CriteriaValues(FacesCtrlSearchBinding.java:3695)
    Truncated. see log file for complete stacktrace
    Workaround:
    If you use 
            vcr.setAttribute("Job",job);
    or
            vcr.setAttribute("Job","="+job);
    than add following line of code:
            vcr.setOperator("Job","=");   regards
    Peter

    Hi,
    useful to mention that this happens when setting the equal operator or LIKE operator
    vcr.setAttribute("Job","= '"+job+"'");
    or
    vcr.setOperator("Job","=");
    Frank

  • Please Help: Regular Expression Gives Stack Overflow

    Regular Expressions are the bane of my existence. I hate them and everyone seem to have their own slightly different syntax. Anyhow, I have a problem with the below code, as it gives me a stack overflow:
         public static void main(String[] args) throws IOException {
              System.out.print(parseText(readTextFile("c:\\file.txt"))); // the input file is displayed below
    // simple method to test that the regular expression can be matched. it works for simple expression, but not the one below
    // this is the code that causes stack overflow
         public static String parseText(String inputString) {
               Pattern p = Pattern.compile("<tr>(\\s)*<td class = 'abc[0-9]*(\\s)*'>(.|\\s)+</nobr>(\\s)+</td>(\\s)+</tr>");
               Matcher m = p.matcher(inputString);
               m.find();
               return m.group();
    // this method just reads in a text file and returns a String with the whole content
    // this works, but is posted here for completeness
        public static String readTextFile(String filePath)
            File file = new File(filePath);
              StringBuffer contents = new StringBuffer();
              BufferedReader reader = null;
              try {
                   reader = new BufferedReader(new FileReader(file));
                   String text = null;
                   // repeat until all lines is read
                   while ((text = reader.readLine()) != null) {
                        contents.append(text).append(
                                  System.getProperty("line.separator"));
              } catch (FileNotFoundException e) {
                   e.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
              } finally {
                   try {
                        if (reader != null) {
                             reader.close();
                   } catch (IOException e) {
                        e.printStackTrace();
              return contents.toString();
        }Below is the content of what I'm feeding the above code as file.txt that results in an error.
       <tr>
            <td class = 'abc1 '>
                <b><a href = 'http://somedomain.com/bla.html' class="a1"> 
                    something 1
                </a></b>   
            </td>
            <td class = 'abc1 '>
                cars 
            </td>
            <td class = 'abc1 ' nowrap align="center">
                ibm
            </td>
            <td class = 'abc1 '>
                <a href = 'http://somedomain.com/bla2.html'>
                    Features
                </a>
            </td>
            <td class = 'abc1 '>
                <nobr>Feb 5, 2009</nobr>
            </td>
        </tr>
       <tr>
            <td class = 'abc1 '>
                <b><a href = 'http://somedomain.com/bla2.html' class="b1"> 
                    something 2
                </a></b>   
            </td>
            <td class = 'abc1 '>
                car 
            </td>
            <td class = 'abc1 ' nowrap align="center">
                sun
            </td>
            <td class = 'abc1 '>
                <a href = 'http://somedomain.com/bla3.html'>
                    Features
                </a>
            </td>
            <td class = 'abc1 '>
                <nobr>Feb 5, 2009</nobr>
            </td>
        </tr>
        Here is some lines from the stack overflow output:
    Exception in thread "main" java.lang.StackOverflowError
         at java.util.regex.Pattern$GroupTail.match(Unknown Source)
         at java.util.regex.Pattern$BranchConn.match(Unknown Source)
         at java.util.regex.Pattern$CharProperty.match(Unknown Source)
         at java.util.regex.Pattern$Branch.match(Unknown Source)
         at java.util.regex.Pattern$GroupHead.match(Unknown Source)However, if I feed the program this shorter version of the input it works (it matches only once and is just the top portion of the original file.txt):
       <tr>
            <td class = 'abc1 '>
                <b><a href = 'http://somedomain.com/bla.html' class="a1"> 
                    something 1
                </a></b>   
            </td>
            <td class = 'abc1 '>
                cars 
            </td>
            <td class = 'abc1 ' nowrap align="center">
                ibm
            </td>
            <td class = 'abc1 '>
                <a href = 'http://somedomain.com/bla2.html'>
                    Features
                </a>
            </td>
            <td class = 'abc1 '>
                <nobr>Feb 5, 2009</nobr>
            </td>
        </tr>I did some google searches, but the problem appears to do with how I crafted my regular expression. The solution didn't make sense to me.... Anyone help me please as I spent a big portion of the day already!

    @flounder,
    Wow, hold your horses...
    That comment was meant to denote my level of frustration with this since I had spent a large portion of the day trying to figure it out. It was not intended to designate my issue or time as more important than others.
    I certainly appreciate any help considering nobody is being compensated in any way for helping me.
    @jschell,
    This is intended to be used as a one time deal to automate recapturing data we no longer have in a non-HTML format.
    I appreciate the suggestion though.
    @JoachimSauer
    Thank you for all your help. I appreciate it!

  • Stack overflow JEditorPane

    I�m having problems with the JEditorPane,
    when I paste a large amount of text into a JEditorPane, it throw a stack overflow ?
    have you noticed something like that ?

    ok, I got the cause of the error. It is not caused due to the JEditorPane, but it is caused by the Pattern.Matcher instead....
    I was typing a wrong regex to validate the JEditorPane contents....
    I still seeking the correct regular expression which obey the following restriction:
    - the contents should contains at least 1 character different from white spaces
    I�ve read the API about the differences of the white spaces chars between several OS....
    How can I define a regular expression to filter white spaces on any OS, and also detect if the user included at least 1 character..?

  • Error while comitting a transaction in oSB. The following is the error stack

    Error while comitting a transaction in OSB. The following is the error stack
    <Apr 20, 2015 12:00:15 AM MDT> <Error> <EJB> <BEA-010026> <Exception occurred during commit of transaction Xid=BEA1-1AE41F1CAE45F2B146FD(296700848),Status=Rolled back. [Reason=Unknown],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=2,seconds left=120,XAServerResourceInfo[WLStore_SOA_PRDKS_DOMAIN_FileStore_SOA_MS2]=(ServerResourceInfo[WLStore_SOA_PRDKS_DOMAIN_FileStore_SOA_MS2]=(state=new,assigned=none),xar=null,re-Registered = false),XAServerResourceInfo[WLStore_OSB_PRDKS_DOMAIN_FileStore_auto_1]=(ServerResourceInfo[WLStore_OSB_PRDKS_DOMAIN_FileStore_auto_1]=(state=rolledback,assigned=OSB_MS1),xar=WLStore_OSB_PRDKS_DOMAIN_FileStore_auto_11603460297,re-Registered = false),XAServerResourceInfo[weblogic.jdbc.jta.DataSource]=(ServerResourceInfo[weblogic.jdbc.jta.DataSource]=(state=ended,assigned=none),xar=CMSDS,re-Registered = false),SCInfo[OSB_PRDKS_DOMAIN+OSB_MS1]=(state=rolledback),SCInfo[SOA_PRDKS_DOMAIN+SOA_MS2]=(state=pre-prepared),properties=({}),local properties=({weblogic.jdbc.jta.CMSDS=[ No XAConnection is attached to this TxInfo ]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=OSB_MS1+soaprd-vip-osb-ms1.cos.is.keysight.com:8001+OSB_PRDKS_DOMAIN+t3+, XAResources={eis/wls/Queue, WEDB_EVEREST_OSB_PRDKS_DOMAIN, XREFDS_OSB_PRDKS_DOMAIN, eis/activemq/Queue, CustomSchemaDS_OSB_PRDKS_DOMAIN, MobileApps_CIA_DS1_OSB_PRDKS_DOMAIN, eis/tibjmsDirect/Queue, eis/jbossmq/Queue, eis/Apps/Apps, MobileApps_AOS_MDS_OSB_PRDKS_DOMAIN, MobileApps_AOS_DRDS_OSB_PRDKS_DOMAIN, WSATGatewayRM_OSB_MS1_OSB_PRDKS_DOMAIN, eis/webspheremq/Queue, eis/AQ/aqSample, SBLPROD_OSB_PRDKS_DOMAIN, wlsbjmsrpDataSource_OSB_PRDKS_DOMAIN, eis/aqjms/Queue, CMSDS_OSB_PRDKS_DOMAIN, WLStore_OSB_PRDKS_DOMAIN_WseeFileStore_auto_1, FAP_OSB_PRDKS_DOMAIN, eis/sunmq/Queue, eis/pramati/Queue, FMWAPPDS_OSB_PRDKS_DOMAIN, weblogic.jdbc.jta.DataSource, GSDC_OSB_PRDKS_DOMAIN, eis/tibjms/Topic, eis/fioranomq/Topic, WLStore_OSB_PRDKS_DOMAIN_FileStore_MS1, PresidioOracleAppsDS_OSB_PRDKS_DOMAIN, GSDCDS_OSB_PRDKS_DOMAIN, eis/aqjms/Topic, CustOutDS_OSB_PRDKS_DOMAIN, OFMW/Logging/BAM, MobileAppsDS_OSB_PRDKS_DOMAIN, FIDDS_OSB_PRDKS_DOMAIN, WLStore_OSB_PRDKS_DOMAIN__WLS_OSB_MS1, HRMSDS_OSB_PRDKS_DOMAIN, WEDB_OSB_PRDKS_DOMAIN, OracleAppsDS_OSB_PRDKS_DOMAIN, eis/wls/Topic, eis/tibjms/Queue, eis/tibjmsDirect/Topic, IntrastatDS_OSB_PRDKS_DOMAIN, MobileApps_AOS_COSDS_OSB_PRDKS_DOMAIN, MobileApps_CIA_DS2_OSB_PRDKS_DOMAIN, EVEREST_WEDB_OSB_PRDKS_DOMAIN, WLStore_OSB_PRDKS_DOMAIN_FileStore_auto_1, Everest_OSB_PRDKS_DOMAIN},NonXAResources={})],CoordinatorURL=SOA_MS2+soaprd-vip-soa-ms2.cos.is.keysight.com:8002+SOA_PRDKS_DOMAIN+t3+): javax.transaction.SystemException: Lost connection to server while commit was in progress, ignoring because initiating server is not coordinating server. Remote Exception received=weblogic.rjvm.PeerGoneException: ; nested exception is:
            java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
            java.io.InvalidClassException: oracle.jdbc.xa.OracleXAException; local class incompatible: stream classdesc serialVersionUID = -2542408691177300269, local class serialVersionUID = -4551795881821760665
            at weblogic.transaction.internal.TransactionImpl.commit(TransactionImpl.java:376)
            at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:237)
            at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:224)
            at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:552)
            at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:423)
            at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:325)
            at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
            at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
            at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
            at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
            at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Hi,
    Have you tried Cancelling the release before adding the version?
    Select the active version of the IDOC Segment and cancel its release first. Only then you will be able to add a version.
    Please let me know if it worked!
    Vijay

  • Instalação de EHp3 + ultimo Stack (15) + últimos SP de HR (44)

    Amigos, bom dia,
    Estou realizando um projeto de instalação de EHp3 + ultimo Stack (15) + últimos SP de HR (44) disponíveis hoje para um ECC 6.0 montado sobre Solaris SPARC 10 e Oracle 10g.
    O problema é o seguinte, montei um servidor de teste e realizei uma copia homogênea do sistema de PRD para poder evaluar o impacto e poder ter o tempo que o sistema estará em manutenção e sem acesso aos usuários. Como é um cliente que trabalha as 24hs, o sistema de PRD não pode estar fora do ar mais de 48hs como máximo (sábado e domingo), igualmente, este tempo para o cliente já é muito. Então estou precisando reduzir ao máximo os tempos de ajustes manuais da SPDD e SPAU.
    Por isso a minha idéia é que no ambiente DEV a equipe funcional, ao momento de realizar os ajustes da SPDD e SPAU, gerem ordens de transportes para que ao momento de realizar a instalação em QAS e PRD, eu possa adicionar essas ordens através da SAINT e fazer uma só u201Cqueueu201D.
    Alguém alguma vez fez algo pelo estilo? Já adicionaram ordens de transporte a SAINT? Estive vendo esta documentação:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/26/5a8c38e3494231e10000009b38f8cf/frameset.htm
    Mas não me esclareceu as duvidas. Como a SAINT vai saber qual é a ordem relacionada aos ajustes da SPDD e aos ajustes da SPAU?
    Alguém que possa me dar uma dica?
    Muito obrigado,
    Alejandro Olindo
    SAP Basis Consultant

  • How can I sync ONLY the top photo in the stack?

    I sync various Aperture photo albums to my IPad and iPhone. The problem is that when I have 'stacked' images (eg. one image showing in the album and two other copies 'hidden' underneath), all of the photos in the stack are copied to the ipad and iPhone. So instead of seeing just one version of an image, I see as many as are in the stack. How can I sync ONLY the top photo in the stack?
    Thanks for your help!

    I solved my own problem.
    The sync problem seemed to only occur on smart albums. There is a new check box option in Aperture 3 when making a smart album: "sync stack pick only." One click and the problem is solved!

  • Why do I need to declare "defaultButton" ? (In a component form part of view stack)

    After doing some research and some help from FlexGuy in another thread, I realize that I need to make sure I have custom components initialized before accessing parts of the component.  Just recently I was thrown for a long time when I tried to first click on a form field that was part of a component in my view stack, I'd get:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at mx.managers::FocusManager/focusInHandler()[C:\autobuild\galaga\frameworks\projects\framew ork\src\mx\managers\FocusManager.as:601]
    With the debugger it's occuring in the focusInHandler method of FocusManager.as: (apparently _defaultButton is null.)
    // restore the default button to be the original one
                    if (defButton && defButton != _defaultButton)
                        defButton.emphasized = false;
                        defButton = _defaultButton;
                       _defaultButton.emphasized = true;
    This prompted me, on a whim, to delcare a defaultButton:
    <mx:Form id="empForm" defaultButton="{submitButton}">
    which refers to my submit button:
    <mx:Button id="submitButton" click="submitEmployee()" label="{submitLabel}"/>
    My question, is why is this necessary? In some examples I don't see this declared at all, but I seem to need it? (I'm calling creationPolicy="all" to make sure my components are initialized but I still seem to have to this defaultButton declared?)

    It's a way of proving that you are able to purchase content from that country's store i.e. that you have a valid billing address in it
    From Why can’t I select None when I edit my Apple ID payment information? - Apple Support :
    If you changed your country or region
    When you change the country or region of an existing Apple ID, you must provide a payment method and update your billing options. If you want to remove your payment method after you change the country or region, you can change your payment information to None.

  • Corrupt BT stack on Portege M200?

    System was working OK with Microsoft BT stack but didn't support audio headset so I installed Toshiba stack.
    Now have 3 problems:
    1. System recognises mobile phone (Nokia 6260) and appears to pair but Nokia PC suite can't connect to the phone
    2. System 'sees' headset (Nokia HDW3) but I get a (rather unhelpful) 'an error occured' dialog box when it tries to connect.
    3. When shutting the system down, I now get an 'end program TosOBEX' dialog box.
    Further attempts to uninstall / reinstall have no effect on any of the above.
    Anyone got any ideas how to solve these issues? The TosOBEX point in particular leads me to suspect that the installation is somehow corrupted.
    I've also tried to revert to the Microsoft stack but after removing the Toshiba stack and installing the BT monitor & rebooting, the system looks for Toshiba RFBus Driver. What do I need to do at this step to force it to install a Microsoft stack?

    Hi,
    finaly I've found the solution for my problem. I don't know if it helps for the others, but it's very interesting.
    Let's start at the begining.
    * If you create a registry entry named EnableAPILog under HKCU\Software\Toshiba\BluetoothStack\V1.0\Mng\Log you can view the debugOutput with eg. DebugView.
    * In the log I saw a lot of tries for creating COM port. Finaly just figured out how the TosOBEX works. After the process start, it will try to create several serial port for it's own services (as Bluetooth Local COM can display in normal case).
    So the program calls the "CreateACOMport(x)" function, which returns with a failure. So the program jums back to the call again, next try may be OK. And this call-jump back-call-jump back-call ... will never end. The called function will use the kernel resources, so services.exe will eat all the CPU. (No any error message after x tries of "CreateACOMport" function ??? let's see in next release ;) )
    *So checked DeviceManager, but it did not show any local serial port except the normal ones.
    Microsoft published how to view the not connected devices (http://support.microsoft.com/kb/315539/EN-US/).
    With this in 2 hours I deleted all serial ports from the "Ports" class. (Of course first I removed the Toshiba stack).
    Toshiba stact reinstall & everything works fine.
    that's all.

  • Stack file that is generated does not contain any java components

    We are in process of upgrading our ecc6.0 system with ehp4. The enhancement is stuck up in configuration phase for JAVA. Though we have configured Java in solution manager the stack file that is generated does not contain any java components and so the installation is stuck up. Kindly request you to advice us on this issue .
    Attached is the 'Trouble Ticket Report', PREPARE_JSPM_QUEUE_CSZ_01.LOG, and SMSDXML_EA4_20100623144541.375.txt
    ++++
    Trouble Ticket Report
    Installation of enhancement package 1 for SAP NetWeaver 7.0
    SID................: EA4
    Hostname...........: wipro
    Install directory..: e:/usr/sap/EA4
    Upgrade directory..: F:\EHPI\java
    Database...........: Oracle
    Operating System...: NT
    JDK version........: 1.6.0_07 SAP AG
    SAPJup version.....: 3.4.29
    Source release.....: 700
    Target release.....: 700
    Start release SP...: $(/J2EE/StandardSystem/SPLevel)
    Target release SP..: $(/J2EE/ShadowSystem/SPLevel)
    Current usages.....:
    ABAP stack present.: true
    The execution of PREPARE/INIT/PREPARE_JSPM_QUEUE ended in error.
    The stack E:\usr\sap\trans\EPS\SMSDXML_EA4_20100625054857.968.xml contains no components for this system.
    More information can be found in the log file F:\EHPI\java\log\PREPARE_JSPM_QUEUE_CSZ_02.LOG.
    Use the information provided to trouble-shoot the problem. There might be an OSS note providing a solution to this problem. Search for OSS notes with the following search terms:
    com.sap.sdt.j2ee.phases.PhaseTypePrepareJSPMQueue
    com.sap.sdt.ucp.phases.PhaseException
    The stack E:\usr\sap\trans\EPS\SMSDXML_EA4_20100625054857.968.xml contains no components for this system.
    PREPARE_JSPM_QUEUE
    INIT
    NetWeaver Enhancement Package Installation
    SAPJup
    Java Enhancement Package Installation
    ++++++
    PREPARE_JSPM_QUEUE_CSZ_01.LOG>>
    <!LOGHEADER[START]/>
    <!HELP[Manual modification of the header may cause parsing problem!]/>
    <!LOGGINGVERSION[2.0.7.1006]/>
    <!NAME[F:\EHPI\java\log\PREPARE_JSPM_QUEUE_CSZ_01.LOG]/>
    <!PATTERN[PREPARE_JSPM_QUEUE_CSZ_01.LOG]/>
    <!FORMATTER[com.sap.tc.logging.TraceFormatter(%d [%s]: %-100l [%t]: %m)]/>
    <!ENCODING[UTF8]/>
    <!LOGHEADER[END]/>
    Jun 28, 2010 9:21:23 AM [Info]:                      com.sap.sdt.ucp.phases.AbstractPhaseType.initialize(AbstractPhaseType.java:754) [Thread[main,5,main]]: Phase PREPARE/INIT/PREPARE_JSPM_QUEUE has been started.
    Jun 28, 2010 9:21:23 AM [Info]:                      com.sap.sdt.ucp.phases.AbstractPhaseType.initialize(AbstractPhaseType.java:755) [Thread[main,5,main]]: Phase type is com.sap.sdt.j2ee.phases.PhaseTypePrepareJSPMQueue.
    Jun 28, 2010 9:21:23 AM [Info]:                   com.sap.sdt.ucp.phases.AbstractPhaseType.logParameters(AbstractPhaseType.java:409) [Thread[main,5,main]]:   Parameter inputFile=EHPComponents.xml
    Jun 28, 2010 9:21:23 AM [Info]: com.sap.sdt.j2ee.phases.jspm.JSPMQueuePreparatorFactory.createJSPMQueuePreparator(JSPMQueuePreparatorFactory.java:93) [Thread[main,5,main]]: Creating JSPM SP Stack  queue preparator.
    Jun 28, 2010 9:21:24 AM [Info]: com.sap.sdt.ucp.dialog.elim.DialogEliminatorContainer.canBeOmitted(DialogEliminatorContainer.java:96) [Thread[main,5,main]]: Dialog eliminator spStackDialogEliminator allows to omit dialog SPStackLocationDialog
    Jun 28, 2010 9:21:24 AM [Info]:                  com.sap.sdt.util.validate.ValidationProcessor.validate(ValidationProcessor.java:97) [Thread[main,5,main]]: Validatable parameter SP/STACK/LOCATION has been validated by validator RequiredFields.
    Jun 28, 2010 9:21:24 AM [Info]:                  com.sap.sdt.util.validate.ValidationProcessor.validate(ValidationProcessor.java:97) [Thread[main,5,main]]: Validatable parameter SP/STACK/LOCATION has been validated by validator SPStackLocationValidator.
    Jun 28, 2010 9:21:24 AM [Info]: com.sap.sdt.j2ee.phases.jspm.JSPMSpStackQueuePreparator.createQueue(JSPMSpStackQueuePreparator.java:107) [Thread[main,5,main]]: Using SP Stack E:\usr\sap\trans\EPS\SMSDXML_EA4_20100625054857.968.xml.
    Jun 28, 2010 9:21:24 AM [Info]:                   com.sap.sdt.j2ee.tools.spxmlparser.SPXmlParser.parseStackTag(SPXmlParser.java:488) [Thread[main,5,main]]: STACK-SHORT-NAME tag is missing. The CAPTION of the stack will be used as stack name.
    Jun 28, 2010 9:21:24 AM [Info]:                   com.sap.sdt.j2ee.tools.spxmlparser.SPXmlParser.parseStackTag(SPXmlParser.java:582) [Thread[main,5,main]]: PRODUCT-PPMS-NAME tag is missing. The CAPTION of the product will be used as product PPMS name.
    Jun 28, 2010 9:21:24 AM [Info]:                      com.sap.sdt.j2ee.tools.spxmlparser.SPXmlParser.parseSPXml(SPXmlParser.java:424) [Thread[main,5,main]]: Parsing of stack definition file E:\usr\sap\trans\EPS\SMSDXML_EA4_20100625054857.968.xml has finished.
    Jun 28, 2010 9:21:24 AM [Error]:                       com.sap.sdt.ucp.phases.AbstractPhaseType.doExecute(AbstractPhaseType.java:863) [Thread[main,5,main]]: Exception has occurred during the execution of the phase.
    Jun 28, 2010 9:21:24 AM [Error]: com.sap.sdt.j2ee.phases.jspm.JSPMSpStackQueuePreparator.createQueue(JSPMSpStackQueuePreparator.java:136) [Thread[main,5,main]]: The stack E:\usr\sap\trans\EPS\SMSDXML_EA4_20100625054857.968.xml contains no components for this system.
    Jun 28, 2010 9:21:24 AM [Info]:                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:906) [Thread[main,5,main]]: Phase PREPARE/INIT/PREPARE_JSPM_QUEUE has been completed.
    Jun 28, 2010 9:21:24 AM [Info]:                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:907) [Thread[main,5,main]]: Start time: 2010/06/28 09:21:23.
    Jun 28, 2010 9:21:24 AM [Info]:                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:909) [Thread[main,5,main]]: End time: 2010/06/28 09:21:24.
    Jun 28, 2010 9:21:24 AM [Info]:                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:910) [Thread[main,5,main]]: Duration: 0:00:00.781.
    Jun 28, 2010 9:21:24 AM [Info]:                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:911) [Thread[main,5,main]]: Phase status is error.
    ++++++++++++++++++++++
    [stack xml data: version=1.0]
    [SPAM_CVERS]
    ST-PI                         2005_1_7000006
    LSOFE                         600       0015
    SAP_AP                        700       0015
    SAP_BASIS                     701       0003
    SAP_ABA                       701       0003
    SAP_BW                        701       0003
    PI_BASIS                      701       0003
    PLMWUI                        700       0002
    SAP_APPL                      604       0002
    EA-APPL                       604       0002
    SAP_BS_FND                    701       0002
    EA-IPPE                       404       0002
    WEBCUIF                       700       0002
    INSURANCE                     604       0002
    FI-CA                         604       0002
    ERECRUIT                      604       0002
    ECC-DIMP                      604       0002
    EA-DFPS                       604       0002
    IS-UT                         604       0002
    IS-H                          604       0003
    EA-RETAIL                     604       0002
    EA-FINSERV                    604       0002
    IS-OIL                        604       0002
    IS-PRA                        604       0002
    IS-M                          604       0002
    SEM-BW                        604       0002
    FINBASIS                      604       0002
    FI-CAX                        604       0002
    EA-GLTRADE                    604       0002
    IS-CWM                        604       0002
    EA-PS                         604       0002
    IS-PS-CA                      604       0002
    EA-HR                         604       0005
    SAP_HR                        604       0005
    ECC-SE                        604       0002
    [PRDVERS]                                  
    01200314690900000432SAP ERP ENHANCE PACKAGE       EHP2 FOR SAP ERP 6.0          sap.com                       EHP2 FOR SAP ERP 6.0                                                    -00000000000000
    01200314690900000463SAP ERP ENHANCE PACKAGE       EHP4 FOR SAP ERP 6.0          sap.com                       EHP4 FOR SAP ERP 6.0                                                    -00000000000000
    01200615320900001296                                                            sap.com                                                                                +00000000000000
    01200615320900001469SAP ERP ENHANCE PACKAGE       EHP3 FOR SAP ERP 6.0          sap.com                       EHP3 FOR SAP ERP 6.0                                                    -00000000000000
    01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01                                           +00000000000000
    [SWFEATURE]                                                                               
    1                   01200615320900001296SAP ERP                       2005                          sap.com                       SAP ERP 6.0: SAP ECC Server
    19                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Discrete Ind. & Mill Products
    20                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Media
    21                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Utilities/Waste&Recycl./Telco
    23                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Leasing/Contract A/R & A/P
    24                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Retail
    25                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Global Trade
    26                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Financial Supply Chain Mgmt
    30                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Central Applications
    31                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Strategic Enterprise Mgmt
    33                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Human Capital Management
    37                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Oil & Gas
    38                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Catch Weight Management
    42                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Public Sector Accounting
    43                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Insurance
    44                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Hospital
    45                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: SAP ECC Server VPack successor
    46                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: ERecruiting
    47                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Defense & Public Security
    48                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Financial Services
    55                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Oil & Gas with Utilities
    56                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Defense
    59                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: PLM Core
    69                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: EAM config control
    9                   01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: SAP ESA ECC-SE
    ++++++++++++++++

    Though we have configured Java in solution manager the stack file that is generated does not contain any java components
    You will probably need to update Solution Manager first with a number of corrections so you can get a correctly generated stack file. Depending on your ST400 version in Solution Manager apply collective corrections from "Note 1461849 - MOpz: Collective corrections 24" or "Note 1452118 - MOpz: Collective Corrections 23". They generally deal with these kind of stack file issues.
    Nelis

Maybe you are looking for

  • Self Assigned IP Mayhem

    Hi Everyone, I've fallen prey to the dreaded Self Assigned IP Problem. After spending the majority of the day scouring this community and a few others, I've come to realize it's a common (if not exasperating) issue. Here are the specifics: - MacBook

  • 10.4.6 update and matlab

    I had matlab 6.5.1 working under 10.2 and 10.3 OS-es, however on my new iBook with 10.4 I had to use this hint http://discussions.apple.com/click.jspa?searchID=-1&messageID=742533 with reinstalling QuickTime 7.0.1 to get matlab functioning back. I do

  • Upgrade, migrating oracle application. Which is better way?

    We have oracle application 11.5.5 run on Window NT 4 Server. We want to upgrade Window NT4 to Window 2000 advanced Server or Window 2003 advanced Server. We also want to upgrade oracle application 11.5.5 to 11.5.9 or 11.5.10. Since we have a new serv

  • Nexus 7009 does not show the N7K-F248XP-25 modules ethernet ports n sh run

    Hi everyone, I have a question... I going to install two Nexus 7009 with three N7K-F248XP-25  modules on each one, I am planning to create 3 VDC, but at the initial configuration the system does not show the Ethernet ports of these modules, even with

  • What is SCCM error 0x87D00319 ??

    I have a Server 2008 R2 machine that used to pull updates. Now it doesn't. I have SCCM 2012 R2 CU4. Needed updates show up in Software Center but they all fail--there are 10 of them. The server is in a boundary. When you hilit a failed update, select