Incomprehensible error (regex)

Hi all,
There I was, happily tap-tapping away in Java, sipping on my Diet Coke and wondering if tonights episode of The Simpsons would be one I'd seen or not, when blam!.....Up pops this error, which means nothing to me (since I've not really covered regular expressions yet).
java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0
+
^
at java.util.regex.Pattern.error(Pattern.java:1528)
at java.util.regex.Pattern.sequence(Pattern.java:1645)
at java.util.regex.Pattern.expr(Pattern.java:1545)
at java.util.regex.Pattern.compile(Pattern.java:1279)
at java.util.regex.Pattern.<init>(Pattern.java:1035)
at java.util.regex.Pattern.compile(Pattern.java:779)
at java.lang.String.replaceAll(String.java:1663)
at Utility.stripOut(Utility.java:47)
at TryUtility.main(TryUtility.java:14)
Exception in thread "main"
The code in question is this: -
        String sString = "+02:00";
        sString = Utility.stripOut(sString, "+");
        System.out.println(sString);...using this static method....
    // Strips out all occurances of sWhat from string sFrom.
    public static String stripOut(String sFrom, String sWhat) {
        if ((sFrom == null) || (sFrom.length() < 1) || (sWhat.length() < 1)) {
            return null;
        } else {
            return sFrom.replaceAll(sWhat, "");
    }All it should do is strip out a chosen character or string from another string and return the modifed result. Shouldn't be too hard :)
BTW, line 47 from the stacktrace is the method return line of the stripOut() method and line 14 is the calling line from the execution code.
I don't really see what the problem is with stripping out the '+' sign from the String, but as I said, I've not really done much with reg expressions yet, so any advice / info would be useful.
Thanks.

Thanks very much guys.....I didn't realise that using replaceAll actually fell within the realms of regular expressions. :)

Similar Messages

  • Incomprehensible error message

    Hi all,
    my stored procedure which was working ok for some weeks now and which I haven't changed started to produce the following error message:
    * 2048: column store error:  [2048] "I2S"."VEGA_UPDATE": line 156 col 2 (at pos 10961): [2048] (range 3): column store error: search table error:  [6900] Error executing physical plan: exception 6900:
    AttributeEngine/Parallel/Evaluator.cpp:94
    Attribute engine failed; $function$=createEvaluator; $message$=input $$place_holder_3$$ unknown; $message$=input $$place_holder_3$$ unknown
    ,in executor::Executor in cube: I2S:0x7f4587173e00:1 SQLSTATE: HY000
    Is there anyone out there who can explain to me what Hana wants to tell me? When I execute the statement at that line outside of the stored procedure, it runs without problems:
    UPDATE a SET b = (
                SELECT count(*) FROM ct, cats c1, cats c2, t WHERE ct.company = c1.category AND c1.time BETWEEN 1393496805 AND 1393583205 AND c1.document_id = c2.document_id AND c2.category = t.category AND c1.relevance >= 80 AND c2.relevance >= 70 AND a.category = ct.company);
    The error appeared after switching to SPS7 on AWS.
    Cheers,
    -- Micha

    Well the procedure is quite large and I don't actually want to make all our code public, it is from our current product. Meanwhile I've been experimenting with commenting parts of the procedure out and so I've identified the culprit statement. Mind you, when executed outside of the procedure, it runs fine. The "bad" statement was
    UPDATE vc SET a = tmp.perc FROM (
    SELECT tmp1.uu, CASE WHEN tt < :mfr THEN 0 ELSE ROUND(tt/aa*100, 0) END perc FROM (SELECT c2.uu, COUNT(*) tt FROM c c1, c c2, threat t WHERE c1.uu = t.uu AND c1.time BETWEEN :day_before AND :now AND c1.id = c2.id AND c1.ubc >= :tur AND c2.ubc >= :cur GROUP BY c2.uu) tmp1, (SELECT c1.uu, COUNT(*) aa FROM cats c1 WHERE c1.time BETWEEN :day_before AND :now AND c1.ubc >= :cur GROUP BY c1.uu) tmp2 WHERE tmp1.uu = tmp2.uu) tmp WHERE vc.uu = tmp.uu;
    Curiously, a cosmetic change makes the procedure to execute correctly:
    UPDATE vc SET a = (SELECT tmp.perc FROM (
    SELECT tmp1.uu, CASE WHEN tt < :mfr THEN 0 ELSE ROUND(tt/aa*100, 0) END perc FROM (SELECT c2.uu, COUNT(*) tt FROM c c1, c c2, threat t WHERE c1.uu = t.uu AND c1.time BETWEEN :day_before AND :now AND c1.id = c2.id AND c1.ubc >= :tur AND c2.ubc >= :cur GROUP BY c2.uu) tmp1, (SELECT c1.uu, COUNT(*) aa FROM cats c1 WHERE c1.time BETWEEN :day_before AND :now AND c1.ubc >= :cur GROUP BY c1.uu) tmp2 WHERE tmp1.uu = tmp2.uu) tmp WHERE vc.uu = tmp.uu);
    Since this has worked without problems on SP6 and the problem appeared right after upgrading to SP7, I'd suspect some malign Hana code change...In any case, it would be a lot more user-friendly if the error message were readable by humans :-)
    -- Micha

  • ERROR - Regex utility

    I am trying to do a split() and replaceall() but am getting an error stating "undefined for t ype string" and therefore can not use these methods.
    I am using j2sdk1.4.2_11.
    Anyone with ideas on what may be the issue?

    java.lang.Error: Unresolved compilation problem:
    The method replaceAll(String, String) is undefined
    for the type String
    at java.lang.reflect.Constructor.newInstance(Native
    Method)
    Please HelpYou're using some kind of template engine, aren't you ? You ought to check which source is uses.

  • Simulation interrupts, error:timestep too small, trouble with node. Solution?

    Evaluating Multisim, a simple half bridge inverter, using function generator to control IGBTs, scopes and current probes. Simulation starts and interrupts shortly. The error message is: Timestep too small, time=xxxx, timestep=yyyy, trouble with node zzzz.
    Can anyone give me some idea please, what is going on here,  am I doung something wrong or this is software/model bug?
    Simulation is unstable, even when it works, if I change the point where I sense the current or voltage, or component value, it fails.
    Any ideas would be appreciated.
    Thanks.

    Hi Jordan,  
    Thanks for advise, but connecting the terminal to ground does not solve the problem. The problem is not in the circuit but in the software. You can see that the simulatiion worked for several periods, so the circuit is OK. Please tell me, what is the exact meaning of the error message, "timestep too small"? Why is the software working for one value of the component and not for another value? My interpretation is that when software encounters some values during calculations that it does not like for some reason, it gives this message without properly defining the problem so that the user can take practic action to rectify it. Are there any settings which I must define before starting the simulatioin, like sampling rate or anything that would eliminate "timestep too small" message?
    I am evaluating the simulator software to make a decision whether it is practically useful for the company to purchase. If 8 out of 10 times the result of simulation is an incomprehensible error message instead of a waveform, then I have to assume that the software is not mature.
    Please advise.
    Best regards,
    Stepan.

  • Unoffical FAQ ~ your question may be answered here

    I have been helping people out with ADE for over a year now, and am now stopping being a regular contributer.
    I copy below all the 'stock' answers I had for various situations.
    Most of these should no longer be relevant as they should have been fixed long ago.
    However, the recent release of ADE3.0 show that this is far from being the case.
    These should all be in the official Adobe FAQ, but meanwhile here they are in a fairly random order with a very course index.
    Not sure how to make internal links, so search for the keyword with ~~~
    kobo~~~  desparate measures when a Kobo won't play ball with ADE
    windows~~~ windows registration goes wrong so ADE is not automatically opened for .acsm/.epub (worse, reader is, and then refuses to read)
    account~~~ spiel about how adobe accounts, email addresses and DRM books interact ~~ you get a wrong user message
      Overdrive~~~ problems authorizing overdrive app on tablet
      findaccount~~~~ how to find the account you are authorized with
      bookaccount~~~ how to find the account a book is authorized with
      nonauthorized~~~~ the problems of downloading a book while not explicitly authorized
      confused~~~ sometimes ADE pretends to be registered when it isn't really
      hacking~~~ extreme measures when authorization doesn't behave
    differentdirectory~~~ how to use a different directory to save your ADE books
    tablets~~~ ADE cannot see a tablet device, and use on Windows RT
    bugs~~~ ADE2.0 is riddled with bugs (?is 3.0 any better).  Here are some know bugs
    alternatives~~~ ADE2.0 is riddled with bugs (?is 3.0 any better).  Some alternatives
    nomoredevices~~~ you have used up all your activations, so can't authorize new device
    kobo~~~~~~~~~~~~~~~~~~~~~~~~~~
    possible help with Kobo issues … I haven’t tried this
    from post 23 in http://forums.adobe.com/thread/1124380?tstart=0 by Shirltaylor, Jul 26, 2013
    Yes it was extremely frustrating process to read any library books after the upgrade to Adobe Digital Editions 2.0.
    Eventually it turned out that the process must have you sign out of the Kobo device Account under settings on the Kobo Device.
    What we did was to remove all library books from the Kobo device and from the Adobe Digital Edition
    Next was to sign out of the Kobo Device as well as the Kobo Desktop on the PC as well as exiting from Adobe Digital Edition.
    Next was to start up Kobo Desktop and sign in.
    Next was to connect the Kobo device to the USB port.
    This resulted in the Kobo device being upgraded and Sync'd to the Kobo Desktop. Wait until the Sync is complete
    Disconnect the Kobo device from the USB port
    Next was to restart Adobe Digital Edition and using CTRL-SHIFT-D to deauthorize the computer and select Erase Authorization.
    Next was to go back to Adobe Digital Edition, Help and Authorize Computer
    Next was to reconnect the Kobo device to the USB port
    Next was to select the Kobo device in the Adobe Digial Edition and Authorize the device
    Next was to get a library book in the Adobe Digital Edition and then add it to the Kobo Device
    Everything seems to be working from then on.
    Have fun reading again
    windows~~~~~~~~~~~~~~~~~~~
    Sometimes the registration of ADE to Windows as the default hander for .acsm and .epub files does not work;
    that is what causes the double-click in Explorer to fail; and usually prevents opening from the browser as well.
    especially in Windows 8/8.1, and maybe 7;
    this appears to be a bug in Windows (for once not a bug in ADE).
    Two possible ways round it.
    First, try to force it in Explorer
    Right-click on a .epub file (and repeat entire sequence for .acsm if necessary)
    Select 'open with' if on the list, 'open' if not.
    Select 'choose default program'
    Select ADE if it is on the list,
    If not select 'more options'  and select ADE is on that list.
    If not, at the bottom of 'More Options' list is 'Look for another app on this PC', select that
    and navigate to the ADE executable (may be at C:\Program Files\Adobe\Adobe Digital Editions\digitaleditions.exe)
    Now .epub/.acsm files should be associated with ADE, and double-clicking should work.
    Sometimes, Windows allows you to go through all that, but then refuses to make the association you have asked for.
    In that case, the only way I know is to use a third party file association program.
    http://www.softpedia.com/get/System/System-Miscellaneous/Types.shtml works for me.
    account~~~~~~~~~~~~~~~~
    Adobe DRM books are associated with an Adobe account; once accessed on a device registered to a given account they can't be used on a device registered to any other account.
    You must regain access to your old account and register your computer and other devices with it.
    You should not create a new account if you want to keep your old books.
    Each account has a permanent  internal ID, and is at any one time associated with an external email ID.
    The email does not need to be valid, (though it can only be verified if it is valid).
    For example, if you lose an email address for some reason or another, it doesn't mean that address is no longer associated with the Adobe account.
    The correct thing to do when you change email address is to associate the new email address with the old Adobe account.
    Login to the Adobe account using the old (now invalid) email address and old Adobe password.
    You can then goto Adobe ID/My Adobe ID and change the email address/external ID associated with the account.
    If you have already made a new Adobe account using your new email and registered computers and devices with it, you must ... ... ...
    Change the email address associated to your new Adobe account.  Until you have done this you can't do step 3.
    Many email providers allow variant addresses, such as [email protected] and [email protected]
    Those will be the same as far as google is concerned but different as far as Adobe is concerned.
    You can now abandon the new Adobe account
    Change the email address associated to your old Adobe account to your new email address.
    Deregister your computer from the new (now dead) Adobe account, using ctrl-shift-D (cmd-shift-D if on a Mac)
    Deregister any ereader devices registered with the account,  using ctrl-shift-E (cmd-shift-E if on a Mac) to ADE with the device plugged in
    Reregister the computer with the old Adobe account, using the new email address with which you associated it in step 3
    (menu/Help/Authorize Computer, Library/Authorize Computer on the older more reliable v1.2.7)
    Reregister any ereaders
    (menu/Help/Authorize Device, Library/Authorize Device on v1.2.7)
    findaccount~~~~~~~~~~~~~~~~
    A book is associated with the AdobeID in use at the time the book was downloaded (.acsm token file turned into encrypted .epub/.pdf file).
    An AdobeID has two forms, internal (something like 'urn:uuid:ff2ddc22-eca0-46c6-a84d-xxxxxxxxxxxx') and external (email address).
    The authorization mechanism on the book is associated with the internal ID.
    The internal ID for an account never changes; you can change the email address it is currently associated with on the Adobe website.
    You can check the Adobe ID ADE is using in internal and external form in ADE2.0 using ctrl-shift-I (Help/Authorization Information).
    For ADE1.7.2 you sadly only get the external ID, using Library/Authorize Computer (which acts as a query if already authorized).
    You can check the AdobeID in external form in Bluefire.
    In either case, if you have changed the external ID associated with the account since authorizing the device,
    you may be told the old external ID, or may be told the up to date one.
    You can check the AdobeID associated with a book in internal form with the rather roundabout method at the bottom of this post.
    I don't know of any way of finding the current external ID given the internal ID of the book;
    unless it is an ID you still use in which case the matching values from ADE2.0 will tell you.
    bookaccount~~~~~
    OK.  To find the internal AdobeID.
    open a sample DRM .epub file as a .zip file.
    With some zip programs, you can just open the .epub as an archive (ev, with 7zip),
    with others you will have to rename the .epub file to a .zip file first, then open it.
    find the file 'rights.xml' within the zip.  Probably  'META-INF\rights.xml'
    open the rights.xml file
    inside you will find a section '<user>' that looks something like
    <user>urn:uuid:ff2ddc22-eca0-46c6-a84d-xxxxxxxxxxxx</user>
    That string is the internal version for your AdobeID.
    That stays fixed for the AdobeID, even if you change the associated email (or password),
    that internal ID is what is really associated with the book.
    (n.b. there is no point in trying to change the urn to a current one you might find and recreating the .epub file; the DRM is cleverer than that).
    You can now contact Adobe at Adobe Live Chat: http://www.adobe.com/support/chat/ivrchat.html
    It may be that if you can give them that internal ID they will be able to get you access to your account again.
    If they say they can't, it might be worth trying two or three times at intervals;
    it seems from what others have said that some of the representatives are very clued up, but others are not.
    (I've never used the Live Chat).
    If you do go through all that, let us know how you got on.
    Overdrive~~~~~~~~~~~~~~~~
    Sometimes Overdrive has issues with authorization (I have seen from other posts, not experienced).
    Try the Bluefire app and see if that will authorize.
    If it does, you can use it instead of Overdrive to read Adobe DRM books such as library books; but can’t use it to borrow them.
    Also...   Even though registration is done via the app, it applies to the device rather than the specific app.  It may be that registering Bluefire causes Overdrive to start working, but I’ve never seen that confirmed.
    nonauthorized~~~~~~~~~~~
    This is a vicious trap that Adobe lays for unsuspecting customers.
    They do give very mild warnings, but not nearly strong enough.
    When you register 'without ID', ADE creates an anonymous/implicit ID with limited powers (eg can't be used to share with other devices).
    Whenever you first load a DRM book, that copy of the book is associated with whatever ID the computer is registered to at the time.
    Any book you load while this anonymous ID is active gets associated with that ID, and can't be read on any other device.
    When you properly register your computer with a real ID, that old anonymous ID is lost.
    Now you don't have any devices that can read the book.
    The only way I know round this is to use a DRM stripper such as epubee BEFORE you deauthorize the device.
    I do NOT advocate using such code to get around the valid limitations placed on a DRM book.
    However, where the problem arises only because of the ineptness of Adobe's ADEPT DRM infrastructure and its implementation,
    such a measure is totally justifiable.
    confused~~~~~
    Sometimes ADE gets its registration/activation confused and in a semi-authorized state.
    Uninstalling and reinstalling does not help, and indeed installation can even trigger this state.
    Unfortunately, it often then gives misleading error messages about what is wrong.
    A common incorrect message informs you that the ID is already in use on another computer and cannot be reused.
    Another is  "E_AUTH_NOT_READY"
    This can often be resolved by completely removing any authorization using ctrl-shift-D to the Library screen on ADE (cmd-shift-D if on Mac).
    Restart ADE, and then reauthorize with your (old) Adobe ID.
    In extreme cases on the mac, the following extra step has helped some people.  Navigate to /Users//Library/Application Support/Adobe/Digital Editions and drag the activation.dat file to the trash. If you are using 10.7, see Access hidden user library files | Mac OS 10.7 Lion. http://forums.adobe.com/thread/1265248?tstart=0
    hacking~~~
    Useful information about registration, uuid etc: ( http://www.jiagouyan9.com/archives/tag/6040/)
    http://forums.adobe.com/thread/905348?start=0&tstart=0
    registry [at HKEY_CURRENT_USER\Software\Adobe\Adept\Activation\0000\0000\\value etc]
    differentdirectory~~~
    There's no way to do it from Digital Editions itself.
    You can do it by making directory junction (on PC, and I'm sure Mac has something similar).
    Move the directory and any files you already have from  .../My Documents/My Digital Editions to wherever you want them.
    Open a command prompt
    Navigate to .../My Documents.
    Type mklink /d "My Digital Editions" "wherever you put the directory"
    The new directory does not even need to be on the same drive.
    tablets~~~~~~~
    Adobe Digital Editions does not generally recognize tablets, only dedicated ereaders.
    For a tablet, install compatible Adobe DRM ereader app.  I suggest Bluefire; also consider Akdiko or Overdrive but some people have issues registering them. Some tablets come with such an app preinstalled.  Authorize the tablet from within the app to use your Adobe ID (details vary from app to app, usually somewhere within Settings)
    The tablet may well be able to download books without use of ADE at all.  If you do want to transfer books from ADE/computer, use a file manager (Windows Explorer, Mac Finder) to copy to the tablet as mounted drive, or use a utility such as Dropbox.
    Very limited choice on Windows RT tablets, try DReader or DL Reader
    DL Reader app for Windows RT http://apps.microsoft.com/windows/en-gb/app/dl-reader/0be254fa-1323-4bda-92fa-698fe502456c
    ~~~~~~~~~
    bugs~~~
    ADE2.0 is riddled with bugs (?is 3.0 any better).  Here are some known ones (that have been around for years)
    Bugs caried over to ADE3.0,
    no easy option to reauthorize (design bug)
    Authorize Computer should not be greyed out when authorized:
    it should give a warning 'Do you want to deauthorize first?  You will lose access to the books belonging to the old account/ID
    and then if you acccept deauthorize and allow you to reauthorize.
    hidden deauthorization (design bug)
    won't work with library books and (some?) Sony ereaders (see separate post) (code bug) (1.7.2 resolves)
    I can't check whether it also still has some of the other standard issues with ADE2.0 that regularly show up on this forum
    Insufficient warning of the bad effects of implicit authorization
    Prone to not working immediately after install, especially on XP (1.7.2 resolves)
    Prone to suddenly stopping working after a time even when it worked before (1.7.2 resolves)
    Prone to failure to scroll pages. (1.7.2 resolves)
    Incomprehensible error messages. (1.7.2 not quite so bad)
    Prone to confused registration, pretending to be registered when it isn't
    Incorrect error messages, in particular
    ID is already in use on another computer and cannot be reused.
    as a message further to confuse users  already hit by bug 6.
    alternatives~~~~~~
    For DRM free ebooks, use the free and vastly superior Calibre.  http://calibre-ebook.com/
    For DRM ebooks, you can use Sony Reader; free download from Sony intended to run with Sony eReaders but works quite happily without.  I prefer ADE1.7.2 to Sony Reader. https://ebookstore.sony.com/download/
    There are lots of bugs in ADE2.0 (and 2.0.1).  Try replacing ADE2.0 with the older but more reliable v1.7.2.
    (You can have them both installed at once if you like.)
    Version 1.7.2, it is a little difficult to find, available on Adobe site for Windows and for Mac.
    http://helpx.adobe.com/digital-editions/kb/cant-install-digital-editions.html
    The forum software is sometimes corrupting the link above.  There shouldn't be a blank in 'editio ns.html'.  The following redirects to the same page: http://tinyurl.com/diged172
    Some people have found ADE trying to upgrade automatically.
    It appears (not 100% sure) that if you install ADE2.0 as a new install (not as an upgrade) that your 1.7.2 will continue to run.
    Probably best to say no if 2.0.x installation asks if you want to migrate your library.
    nomoredevices~~~
    Adobe Live Chat: http://www.adobe.com/support/chat/ivrchat.html,
    or as a slight short cut try http://helpx.adobe.com/contact.html?product=digital-editions&topic=using-my-product-or-ser vice
    Choose topic ‘'Signing into my Account' , and then click on 'I still need help';
    then you should see 'Chat with an Agent' at the bottom of the page.
    Depending on screen resolution, you may need to scroll down a bit to see the Chat with an Agent' bit, just under 'Ask our Experts'.
    'Ask our experts' will indeed just lead you back to this forum.
    Sometimes you will get ‘Sorry! All agents are busy— please check back soon.’
    Don’t refresh the page, just hang on and it should eventually go to ‘Chat Now, and agent is available’.
    They can reset your authorizations, and then you must reauthorize any devices you still need.
    (Unfortunately, Adobe haven’t got round to an admin website for viewing and editing authorizations.)
    Some of the representatives haven't been properly trained and don't know what to do (and claim there is nothing they can do);
    in that case the only way seems to be to give up that chat and try another session hoping for a properly trained representative.
    If your problem is with another device using Overdrive, Bluefire, Aldiko or similar third party app, it is recommended not to mention that app when on the chat, just mention that you have run out of authorizations  (E_ACT_TOO_MANY_ACTIVATIONS) .  Thanks to AJP_Bear for that tip.
    ~
    ~~~

    Do you have any tips out suggestions for when ADE can't download the epub book from an ACSM file? The problem seems to be related to something blocking the process, but no one has a clue as to the source of the problem. See my post fot more information:
    http://forums.adobe.com/message/6179746#6179746
    Thank you for any suggestions you are able to offer.

  • Bug & solution: DW8 not finding stylesheet

    Back on 13th April, 2006, I posted a message below about DW8
    not picking
    up the stylesheet on a site I was managing in it. The same
    problem
    recurred with another site I've just created from scratch, so
    this time I
    set to tracking the bug down. Basically, the problem is with
    DW8's
    stylesheet parsing. It balks at tags within CSS comments. So
    the
    following will generate a problem:
    body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9em;
    /* Background colour commented out to allow Javascript
    background colour changer to work, as it can't overrule the
    stylesheet.
    bgcolor set in page <body> tag.*/
    /* background: #fff;*/
    color: #000;
    Change the above by scratching <body> from inside the
    comments to leave:
    body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9em;
    /* Background colour commented out to allow Javascript
    background colour changer to work, as it can't overrule the
    stylesheet.*/
    /* background: #fff;*/
    color: #000;
    and DW8 behaves as it should. This is annoying, as any code
    parser should
    completely ignore anything within comments. Anyway, I report
    the problem
    as a public service, so that the Macroserfs can squash it,
    and the rest
    of youse can be aware of it.
    Cheers
    Fred
    fred DOT riley AT nottingham DOT ac DOT uk
    Message posted 13th April, 2006, subject "DW8 not finding
    stylesheet":
    Ok, here's Dreamweaver doing it again, driving me around the
    bend. On one
    particular site of mine, DW8 has suddenly decided not to see
    the site
    stylesheet, even though:
    a) the files display fine in a browser and on the server
    (www.eurocall-
    languages.org)
    b) the CSS link ref in the template page headers are fine
    (otherwise (a)
    would fail)
    c) all my other sites are ok
    I've just been moved to a new PC, from a previous PC where I
    was using DW
    MX. I exported my site definitions from MX as .ste files. I
    imported them
    into DW8 on the new machine. They're all in the Site Manager,
    and the
    settings haven't changed. The pages in those sites all appear
    fine, apart
    from this one site.
    The HTML is fine. The CSS is fine. What's not fine is that DW
    won't find
    the CSS file. If I open a template, press Shift-F11 and link
    to the CSS
    file, which is sitting in the site root directory, when I
    press Ok I get
    the really helpful error message:
    "An unexpected error occurred while trying to read
    style-sheet
    information"
    If I try to preview the template file in a browser, I get the
    even more
    helpful error:
    "An invalid argument was encountered"
    Searching for either error message in the DW Knowledge Base
    returns
    nothing. The DW installation is fresh as a daisy off the
    disk, and the
    machine is a spanking new XP machine with nothing complicated
    on it.
    If I manually open the template file in a browser, though, it
    displays
    fine. So, there's something in the DW code on the pages in
    this
    particular site that DW8 is rejecting, even though DW MX had
    no problems
    with it at all (hell, the site was created in MX).
    I would be grateful if someone could point me to possible
    solution(s),
    other than doing what I keep threatening to do, which is to
    go back to
    hard-core HTML/CSS coding in a programmer's file editor. The
    only thing
    that keeps me using DW is the site management capabilities
    ;-\. There are
    times, happily not as frequent as they used to be, when the
    perversity of
    DW and its incomprehensible error messages drive me to
    serious mouse and
    keyboard abuse.
    Cheers
    Fred Riley
    Learning Technologist, School of Nursing, University of
    Nottingham, UK

    I put this into a new page -
    body {font-family: Arial, Helvetica, sans-serif;
    font-size: 2.9em;
    /* Background colour commented out to allow Javascript
    background colour changer to work, as it can't overrule the
    stylesheet.
    bgcolor set in page <body> tag.*/
    /* background: #fff;*/
    color: #0F0;
    and text that I enter on that page is huge and green. What's
    the problem?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Fred Riley" <[email protected]> wrote in message
    news:[email protected]...
    > Back on 13th April, 2006, I posted a message below about
    DW8 not picking
    > up the stylesheet on a site I was managing in it. The
    same problem
    > recurred with another site I've just created from
    scratch, so this time I
    > set to tracking the bug down. Basically, the problem is
    with DW8's
    > stylesheet parsing. It balks at tags within CSS
    comments. So the
    > following will generate a problem:
    >
    > body {
    > font-family: Arial, Helvetica, sans-serif;
    > font-size: 0.9em;
    > /* Background colour commented out to allow Javascript
    > background colour changer to work, as it can't overrule
    the stylesheet.
    > bgcolor set in page <body> tag.*/
    > /* background: #fff;*/
    > color: #000;
    > }
    >
    > Change the above by scratching <body> from inside
    the comments to leave:
    >
    > body {
    > font-family: Arial, Helvetica, sans-serif;
    > font-size: 0.9em;
    > /* Background colour commented out to allow Javascript
    > background colour changer to work, as it can't overrule
    the stylesheet.*/
    > /* background: #fff;*/
    > color: #000;
    > }
    >
    > and DW8 behaves as it should. This is annoying, as any
    code parser should
    > completely ignore anything within comments. Anyway, I
    report the problem
    > as a public service, so that the Macroserfs can squash
    it, and the rest
    > of youse can be aware of it.
    >
    > Cheers
    >
    > Fred
    > fred DOT riley AT nottingham DOT ac DOT uk
    >
    >
    > ------------------------
    >
    > Message posted 13th April, 2006, subject "DW8 not
    finding stylesheet":
    >
    > Ok, here's Dreamweaver doing it again, driving me around
    the bend. On one
    > particular site of mine, DW8 has suddenly decided not to
    see the site
    > stylesheet, even though:
    >
    > a) the files display fine in a browser and on the server
    (www.eurocall-
    > languages.org)
    > b) the CSS link ref in the template page headers are
    fine (otherwise (a)
    > would fail)
    > c) all my other sites are ok
    >
    > I've just been moved to a new PC, from a previous PC
    where I was using DW
    > MX. I exported my site definitions from MX as .ste
    files. I imported them
    > into DW8 on the new machine. They're all in the Site
    Manager, and the
    > settings haven't changed. The pages in those sites all
    appear fine, apart
    > from this one site.
    >
    > The HTML is fine. The CSS is fine. What's not fine is
    that DW won't find
    > the CSS file. If I open a template, press Shift-F11 and
    link to the CSS
    > file, which is sitting in the site root directory, when
    I press Ok I get
    > the really helpful error message:
    >
    > "An unexpected error occurred while trying to read
    style-sheet
    > information"
    >
    > If I try to preview the template file in a browser, I
    get the even more
    > helpful error:
    >
    > "An invalid argument was encountered"
    >
    > Searching for either error message in the DW Knowledge
    Base returns
    > nothing. The DW installation is fresh as a daisy off the
    disk, and the
    > machine is a spanking new XP machine with nothing
    complicated on it.
    >
    > If I manually open the template file in a browser,
    though, it displays
    > fine. So, there's something in the DW code on the pages
    in this
    > particular site that DW8 is rejecting, even though DW MX
    had no problems
    > with it at all (hell, the site was created in MX).
    >
    > I would be grateful if someone could point me to
    possible solution(s),
    > other than doing what I keep threatening to do, which is
    to go back to
    > hard-core HTML/CSS coding in a programmer's file editor.
    The only thing
    > that keeps me using DW is the site management
    capabilities ;-\. There are
    > times, happily not as frequent as they used to be, when
    the perversity of
    > DW and its incomprehensible error messages drive me to
    serious mouse and
    > keyboard abuse.
    >
    > Cheers
    >
    > Fred Riley
    > Learning Technologist, School of Nursing, University of
    Nottingham, UK
    >
    >
    >
    >

  • Cocoa: Need help with binding a pop-up button to array

    I am having the hardest time doing something that seems like it should be really easy... I'm not sure this is the right place for something as basic as this but I can't find any other active Cocoa development forums... any recommendations there as well?
    I'm creating a simple address book-like app to help clarify my knowledge on IB and bindings and core data. I want to have an NSPopUpButton to hold a list of states, which I've created in an NSMutableArray in the window controller. (Maybe this is the wrong place to put it?) I actually managed to get the array values to show up in the window BUT I can't get the value out! When I save the Person data object, it shows as nil.
    It's very very likely I'm binding it incorrectly. Right now, all I've done is bound "Content Values" to File's Owner.states. The "Content" binding indicates it's supposed to be an array controller, but do I really need an array controller for a static array? That seems like overkill. And then, even if all I need to do is bind the value, how do I get the value OUT when I go back to my XCode controller to save the values??
    I've been browsing the usual suspects Cocoa/XCode books in Safari/Oreilly but I can't seem to find the answers. Any help or points in the right direction is much appreciated

    Jennifer Mitchell1 wrote:
    So, here's what I've done and it seems to work. Can anybody suggest improvements?
    - I have a NewPersonController which has an NSMutableArray *states and NSPopUpButton *stateDropdown
    - The *states array is generated with NSStrings of all the state abbreviations
    - In the NIB window, I bind the NSPopUpButton to the File's Owner states object. (File's Owner is the controller class.)
    Your fundamental problem is that you are trying to use bindings incorrectly. You don't have to use them at all. You can use an NSPopUpButton without bindings. But if you want to use bindings, you can't take shortcuts. It will just die with an incomprehensible error or just not work.
    I wish I could put the initialization of the states array in the awakeFromNib method but when I did that, for some reason the window wouldn't open when I clicked the button.
    Are you saying the awakeFromNib fails and the window cannot be displayed?
    Or are you saying the button does not get initialized properly and/or does not work properly?
    If I put it in the states function (which returns the array), it works fine, even though I know it's really inefficient there. Anybody know why it won't load in the awakeFromNib method?
    What are you doing in awakeFromNib? One problem with bindings and Interface Builder is that it is very hard to explain (drag the line from the little plus thingy to the the little line of blocks with the blue sphere around them, etc.) Code is much easier to diagnose and treat.

  • IMovie "does not see" videos from my Canon Vixia HF M32 and shuts down. Any ideas?

    Lately, I have not been able to download videos as I used to from my Canon Vixia HF M32. My iMovie would not see the camera and would often close unexpectedly. It then gives an incomprehensible error message. I have no idea why this is happening or what to do. I was able to dowload some videos using a pc and a different software. Any clue?
    Thanks

    iMovie HD (version 5 and 6) works only with Firewire cameras, DV or HDV.
    Footage from other types of cameras can be converted for use. Try VoltaicHD and convert to Apple Intermediate Codec (1080i or 720p) for HD footage or DV for SD (Standard Definition) footage.
    If all you want to do is creating a DVD, go for SD footage in the DV format. A DVD is always SD.

  • Java.util.regex error

    Hello,
    I checked JavaDoc multiple times but do not see what is wrong with
    myString.replaceAll("D:\\web\\mars","")which results in
    java.util.regex.PatternSyntaxException: Illegal/unsupported escape squence near index 7
    D:\web\mars
           ^
         at java.util.regex.Pattern.error(Unknown Source)
         at java.util.regex.Pattern.escape(Unknown Source)
         at java.util.regex.Pattern.atom(Unknown Source)
         at java.util.regex.Pattern.sequence(Unknown Source)
         at java.util.regex.Pattern.expr(Unknown Source)
         at java.util.regex.Pattern.compile(Unknown Source)
         at java.util.regex.Pattern.<init>(Unknown Source)
         at java.util.regex.Pattern.compile(Unknown Source)
         at java.lang.String.replaceAll(Unknown Source)
         at ArticleImageImportProcessor.main(ArticleImageImportProcessor.java:40)
    Exception in thread "main" please, every suggestion/hint is most appeciated

    You have to "encode" backslash twice, first for String purpose and second time because of special meaning of '\' in regular expressions.
    It should looks like
    myString.replaceAll("D:\\\\web\\\\mars","")

  • Application starting error -- item has already been added. key in dictionary 'regex' key being added 'regex'

    Hi All
    I have strucked with an issue with urlrewritingnet. I have developed a website and used urlrewritingnet for url redirecting. Application is working fine in DEV, Stage and Prod. but recently I am getting an issue in Stage. When I kept the browser window open
    for a while and after some time If I come back and clicks any link(like After Session time out), I am getting an error "directory error: cannot add duplicate key "REGEX" key already added". When I click refresh this error goes out and It
    gets redirected to my custom timeout page. I have tried everything but could not find the cause of this error.
    This is not happening in Dev and Prod. After going through various forums I found out that this is due to URLREDIRECTING DLL. But I did not find out the actual root cause of this error. Can some one please guide me If there is anything going wrong in Stage
    website setup in IIS.
    Thanks in advance
    Venky

    Maybe use a sniffer like fiddler or wireshark to monitor the webpage and find the request that is causing the problem.  You could also add a log page to the webpage t capture all the request to find the root cause.
    jdweng

  • [SOLVED] Lyx Not Starting Up: boost regex error

    I've just installed Lyx from official repositories but It's not starting up.
    If i run it from terminal:
    [#######@archTiD ~]$ lyx
    lyx: error while loading shared libraries: libboost_regex.so.1.55.0: cannot open shared object file: No such file or directory
    What did I do wrong?
    Thanks in advance.
    Last edited by Tid91 (2013-12-08 16:38:30)

    loafer wrote:
    pacman -Qo /usr/lib/libboost_regex.so.1.55.0
    /usr/lib/libboost_regex.so.1.55.0 is owned by boost-libs 1.55.0-2
    Is the file present?  You could try reinstalling boost-libs.
    Is present just the 1.54 version of that file.
    If I do:
    sudo pacman -S boost-libs
    resolving dependencies...
    looking for inter-conflicts...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: boost: requires boost-libs=1.54.0

  • Incomprehensible Oracle Reserved Word Error

    I'm trying to create a Table for a new application and I keep getting this error message:
    1 error has occurred
    The identified column name is an Oracle reserved word. Please choose another name.
    Unfortunately, it doesn't identify a column as containing a reserved word. I tried googling for a list of Oracle Reserved Words, Oracle Keywords, and PL/SQL Reserved Words; but none of them match the column names in my table. My column names are:
    PROJECT NAME (Aliases)     
    (C)USTOMER REQUEST or (IT) REQUEST     
    Priority (1= high)     
    PROJECT STATUS     
    PROJECT MANAGER     
    LAST STATUS     
    Link to Status     
    START DATE     
    ESTIMATED COMPLETION     
    NOTES     
    Report on Time?     
    Business Analyst     
    Technical Lead     
    Business Apps     
    DBA_Name     
    Systems     
    Network     
    NOC     
    CSC     
    Training      
    Communications     
    SME     
    Super User     
    Contracts     
    ERP     
    DBA_Name used to be DBA, which is a keyword, but when I changed it to DBA_Name, i got the same error. Please help.
    Steve in Raleigh NC

    Thanks. I'm using Oracle 11g. I think what you're suggesting would work, if the objective is to create an empty table and then populate it with data.
    However, what I'm trying to do is import a spreadsheet into APEX as a table, after which I shall build an application on that. If I do it your way, I'll have to key all the spreadsheet data in after creation, creating the possibility of keyed errors, which would require proof-reading. I'd prefer not to do that.
    This morning, before returning to this thread, I was able to import the spreadsheet by changing all the column names to the corresponding Excel column heads: A, B, C and so on. When I went to SQL workshop to rename the columns, I found only 10 had been imported. There are 22 columns in the spreadsheet, most of them populated, and we need them all.
    I believe I can still use the table I have created. I can add the extra 12 columns now, one at a time, and populate them by typing, if I must.
    However, if there's some constraint or constant I can alter to import all 22 columns with all the information in one pass, I would appreciate it. There are 53 rows. Keying 12 columns for all 53 would be something of a pain.
    Steve the n00b in Raleigh NC

  • Incomprehensible Flash Error Message?

    Hi, this tiny window appears on top of Flash (I think) videos in Safari 6.0, running in Lion 10.7.4.  When I click on the "don't" symbol, it disappears.  I can't read it, I'm not even sure it's English.  Anyone know what it is?
    This is actual size, by the way.  It's tiny.
    Thanks in advance!

    I have some more info, it's a Macromedia error message.  Clicking on the question mark takes me here:
    http://www.macromedia.com/support/documentation/en/flashplayer/help/help06.html
    So it's an error from Flash saying I don't have enough local storage.
    However, their version of the error message is clearly in English.
    Anyone have any thoughts about why mine is gibberish?

  • RegEx Error for Huge File .. Please help , Its Urgent

    Hi all,
    I am getting following exception,
    does anyone know about it
    java.lang.IndexOutOfBoundsException: No group 1
    at java.util.regex.Matcher.group(Matcher.java:355)
    at java.util.regex.Matcher.appendReplacement(Matcher.java:585)
    at java.util.regex.Matcher.replaceFirst(Matcher.java:701)
    at XSLT_OnlyJava.<init>(XSLT_OnlyJava.java:84)
    at XSLT_OnlyJava.main(XSLT_OnlyJava.java:93)
    Exception in thread "main"
    I am parsing huge file with regex and replacing some part
    Thanks,
    Vinayak

    sorry for late
    This is my code
    text = contents.toString();
              String regex = "<tu.*?/tu>";
              Matcher matcher = Pattern.compile(regex,Pattern.CASE_INSENSITIVE|Pattern.DOTALL).matcher(text);
              while(matcher.find()){
                   tuvSegment = matcher.group();
                   String segRegex = "<seg>.*?</seg>";
                   Matcher segMatcher = Pattern.compile(segRegex,Pattern.CASE_INSENSITIVE|Pattern.DOTALL).matcher(tuvSegment);
                   if(segMatcher.find()){
                        SegVal = segMatcher.group();
                   String ReplsegRegex = "<seg />";
                   Matcher ReplsegMatcher = Pattern.compile(ReplsegRegex,Pattern.CASE_INSENSITIVE|Pattern.DOTALL).matcher(tuvSegment);
                   text = ReplsegMatcher.replaceFirst(SegVal);
    The text string contains teh .tmx file
    Thanks,
    Vinayak

  • About the error of java.util.regex in jdk1.4's docs

    In java.util.regex,the class Pattern's document says:
    Greedy quantifiers
    X? X, once or not at all
    X* X, zero or more times
    X X, one or more times
    X{n} X, exactly n times
    X(n,} X, at least n times
    X{n,m} X, at least n but not more than m times
    Why don't metion �X+�?
    I think that should be "X+ X, one or more times",right?

    Agreed. I use Regex in many places (and used
    Oromatcher before 1.4), and I've verified that I
    use the + operator in several places-- it works.

Maybe you are looking for