Checking For Errors

Hi,
I have been trying to get my .swf file to load, (and only the
.fla files seems to load, even though in Preview it is .swf...I
have Put the updated .html page, and .swf file)
I thought I might have an error, and it showed this:
<style type="text/css">
<!--
@import
url("file:///C|/Users/Default.Default-PC/Documents/Tower_Project/tower_cafe.css");
With squiggley green under it.
Is this trying to replace my <link to my css. file?,
because there is no link to the css file? Is this affecting my
.swf?
The page is,
http://bestfoodinestevan.com/Tower_Project/tower_cafe.html
Thanks in advance,
Em

Emmy:
That is the link to your CSS file, however, it's trying to
use the link =
on your local computer. Have you served up the files?
Dreamweaver =
will change the path automatically to reflect the path when
you save and =
FTP the files.
There is no code in this example that pertains to the .swf
file. How =
are you inserting it? =20
Also, did you FTP both the swf and the Scripts folder to the
server?
--=20
Nancy Gill
Adobe Community Expert
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
2003)
Technical Editor: Dreamweaver CS3: The Missing Manual,
DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide
Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
Web =
Development
"MyNameIsEmmy" <[email protected]> wrote in
message =
news:gpsi86$c5n$[email protected]..
> Hi,
>=20
> I have been trying to get my .swf file to load, (and
only the .fla =
files=20
> seems to load, even though in Preview it is .swf...I
have Put the =
updated .html=20
> page, and .swf file)
>=20
> I thought I might have an error, and it showed this:
>=20
> <style type=3D"text/css">
> <!--
> @import=20
> =
url("file:///C|/Users/Default.Default-PC/Documents/Tower_Project/tower_ca=
fe.css"
> );
>=20
> With squiggley green under it.
>=20
> Is this trying to replace my <link to my css. file?,
because there is =
no link=20
> to the css file? Is this affecting my .swf?
>=20
> The page is, =
http://bestfoodinestevan.com/Tower_Project/tower_cafe.html
>=20
> Thanks in advance,
>=20
> Em
>

Similar Messages

  • Checking for errors in application item computation (at page level)

    I have a conditional computation used to set the value of an application-level item.
    In the condition, I need to check to see if the action (button-press to initiate DML processing) generated an error (eg cannot delete row because of child records). I don't need to catch/handle any specific errors, I just need to know if an error occurred.
    What do I check for? I've seen references on the forum to hidden page items Pxx_msg and Pxx_err, but I've played around with them, and apparently don't know how they're set.
    Another thought I had is to create a before-computation process that checks to see if there is some sort of error/exception, but I'm not having luck w/ this either.
    Ideas?
    Thanks,
    C

    Max -- I appreciate you helping me to clarify this issue. I need to track which database tables have had data changes committed to them in the course of the app running. My thought is to track this in an application item (a list of changed tables), and check/set the item as needed when delete/create/apply changes buttons are pressed. But if a DML statement fails, I don't want to add the table to the list of modified tables.
    When I was setting the app item in a computation, it appeared that (like you said) I was trying to check for errors before the process had executed. (I'm also not sure I was checking for errors in the correct manner.) Regardless, the result was that the table got added to the list even when the delete operation failed because of child records.
    What I'm doing now appears to work (and sorry, I can't actually access the app this morning, the server is down, so I may not be able to communicate this as clearly as I'd like). If I recall, yes, I'm setting the item in a post comp/validation process. I'm still not doing any error checking, but it appears that if there is an error, the process isn't executing: the item is definitely not getting set.
    Can you clarify what you mean when you say that "all of this will execute before the processes". Do you mean that comps and page processes will execute before DML is executed on the database?
    Thanks,
    Carol

  • FlexBuilder not checking for errors in AS files

    FlexBuilder 2 isn't finding any errors in AS files that
    aren't explicitly referenced in an MXML file for anyone in my
    office. This seems like a pretty basic function everyone needs, so
    I can't imagine it's not a huge bug....
    To be more specific, I have a flex project set up with two
    files in the root named SimpleTest.as and test.mxml. If test.mxml
    is empty, I can write absolutely anything into the .as file and
    flex builder won't locate any errors in real time. As soon as I
    instantiate an instance of SimpleTest in my mxml file, however,
    flex builder suddenly reports all of the problems in the problems
    view, and we're good to go.
    This is a huge pain from a development standpoint - I don't
    want to have to keep an instantiation of a class just to find if
    there are any errors in it. And if I'm not able to find errors in
    real/development time, FlexBuilder becomes a glorified text editor
    with the only real useful AS feature being code hints.
    If the project is an ActionScript project instead of a Flex
    project, flex builder will detect errors on AS files if they're in
    the root package, but files nested in folders aren't checked for
    errors unless an instance of the class exists in another
    root-package object.
    Is there anything we can do to fix this? Is anyone else
    seeing this error?
    Thanks.

    Sorry guys, but the way Flex ignores unreferenced .as files
    is just plain wrong, and it's also inconsistent. There... thats the
    synopsis of this post, now the explanation.
    In our app, we want to have a list of menu items that are
    read in from the database. Each item consists of the man-readable
    text and the name of a class that is normally derived from
    TextWindow. The user clicks on a menuitem and the window appears.
    Flex provides the function flash.utils.getDefinitionByName()
    which will return the class definition for the given class name
    supplied as a string. But it will only work if the class is loaded
    i.e it has been referenced somewhere. To get around this, I have
    had to create my own map of class names to class definitions. In
    other words, I've had to rewrite getDefinitionByName.
    quote:
    Well, it makes sense to me that the IDE should ignore a file
    if you're not actually using it.
    Yes, but what the IDE doesn't know is that you may want to
    create an instance of the class
    without referencing it directly. getDefintionByName is the
    proof that there was/is some intention to be able to do that. IMO
    this is a reasonable thing to want to do, e.g if functionality is
    enabled/disabled according to user security, then one would expect
    to be able to dynamically create classes at runtime.
    getDefinitionByName() should allow me to do that. After all, the
    function exists to begin with, so it should work. But it only
    partially works because the IDE doesn't load up unreferenced .as
    code.
    If the .as file appears in the project, it should be
    compiled. Period. The fact that it is not referenced should not
    determine whether or not it is compiled. getDefinitionByName would
    then work as I reasonably expected it to work and allow dynamic
    creation of classes.
    The
    Inconsistency I mentioned earlier is therefore that Flex
    offers the getDefinitionByName but renders it pretty useless as you
    have to reference the class anyway.
    Finally all the other development languages I have used will
    compile all source in the project regardless of whether or not it
    is referenced. This includes C++, C#.NET and Visual Basic. So Flex
    is definitely the odd one out here.

  • Any way to check for errors in an external table besides the log?

    For example if you have an external table where a column is defined with a CHAR(1) but when you run a SELECT on it, the mapping comes up with trying to put a CHAR(2) into that single space. The only way I'm aware to see if something is wrong is to check the .log file. Is there any other way to check for an error message or count?
    I'm mounting external tables and copying data over to a 'holding' table to be able to work on the data before it's moved into the actual production table with PL/SQ code. If the stored proc can determine what rows are bad or missing or even that there just are some rows with problems then hand back to the app, it would greatly improve things.
    Thanks.

    No other way than to check for the existance of a .bad file, then have a look see at the .log then?

  • Checking for errors before saving in CRMD_ORDER

    Hi,
    I have a requirement where I need to check if any errors exist before being able to save a document in t-code CRMD_ORDER. If any error exists, then user should not be able to save the document.
    Currently, if even if errors exist, the user is able to save the document. But this should not be allowed.
    I searched for BADI for this and found method CHECK_BEFORE_SAVE in BADI ORDER_SAVE. But not sure of how to check if errors exist. Can someone please guide me on how to do this?
    Thanks in advance.

    Hi Manvi,
    I have two different options for you to gte the info you need !
    Well first i would like to confirm you that the Badi you re trying to use is the right one. You can raise an error and cancel saving in case you want. And then, well you can either check dirrectly in a table or using a call function see if ticket is flagged on error
    1 - Using table: In table CRM_JCDS or in table CRM_JEST if for guid of your ticket you have an entry with stat = I1030 and flagged to INACT = ' '; then the ticket contains at least one error
    2 - Using call function:
    call function 'CRM_STATUS_CHECK'
      exporting
        objnr             = lv_guid
        status            = 'I1030'  " = gc_status-error (CRM_STATUS_CON)
      exceptions
        object_not_found  = 1
        status_not_active = 2
        others            = 3.
    PS: in Order to get the guid of your ticket you can use table crmd_orderadm_h. Using ID of ticket you ll be able to retrieve guid corresponding to it
    Hope this helps
    Regards,
    Khalil

  • IDOC -- File:(R/3-- XI) : Idocs not reaching XI. Where to check for error

    Hi,
    I have completed the config for IDOC to XI (R/3-->XI) scenario based on various weblogs available on Sdn.
    For testing, I am using we19 to trigger the outbound idoc from R/3. But when I look in IDX5 in XI or message monitor, I do not see any message or IDOC there. Even SXMB_MONI in XI does not have any message.
    What could be the potential issue for this behaviour. Is there a way where I could debug or any steps that could tell me where to look for the error.
    So far only odd behaviour I have observed is:
    When in WE19 I trigger the IDOC for outbound processing, XI login screen pops up, where I need to enter password. Once I click enter the screen disappears and the message, IDOC sucessfully sent to external system/Port appears.
    Appreciate your help.
    Thanks
    Shirin

    Hi,
    I checked SM58 and teher indeed are errors saying
    "Name or Password is incorrect (repeat logon) "
    So which connection is having incorrect password in SM59?
    I checked and I have a working RFC connection  (TYpe 3) in SM59 for XI.
    Just to add TCP/IP connection(Type T) has 2 connections not working. They are LCRSAPRFC and SAPSLDAPI.
    So what should be my next step in correcting this error as I am not sure which RFC connection user-id is responsible for SM58 errors.
    Any feedback is welcome.
    Thanks
    Shirin

  • Compile Forms on a Unix Machine (check for errors in any of the files)

    Hello there,
    Our organization is wrapping up the development phase and beginning our testing phase. I am responsible for the Configuration Management of our forms, menus, libraries, and reports.
    We develop our code in a Windows environment (including compilation check), then we FTP the source files to a unix environment, then we compile the forms on a unix environment. We have this process down pretty well (for a couple of files at a time).
    Now we would like to automate our "build" procedure. This process involves the following tasks.
    1.) Extract all the source files from our vault software (PVCS)
    2.) FTP all the source files to the UNIX environment
    3.) Compile all the source files on the UNIX environment
    4.) Test the Software on the UNIX application server
    We have all of the above working (if no compilation errors occur). I am not sure how to check if any of the files errored during compilation. How can I check to see if any errors occurred during the UNIX source code compilation? I know how to do this manually (look at the output and see if the module compiled), but we are compiling approximately 200 files during our release build process. Maybe some sort of send the compilation results to an output file then search for any files that contain "not generated" (I assume if an error is generated, the text will be displayed to the user).
    Is there an easy way to check if any of the forms, menus, libraries, or reports errored during the "automatic" compilation process?
    Thanks,
    Mike

    I use this script to generate .fmx files from a zipped .fmb file. This approach allows for much faster FTP because our developers are not co-located with our servers.
    In addition, the tail command echoes the final line of the .err as either...
    Created form file <filename.fmx>
    for success or
    Compilation errors have occurred.
    for failure.
    # SCRIPT: zipgen
    # REV: 1.0.d - Used for developement
    # DATE: 070515
    # PLATFORM: Not Platform Dependent
    # PURPOSE: This script takes a single filename variable (w/o extension)
    # and it unzips the file then deletes any existing compiled
    # form of that name and finally attempts to generate a new fmx
    # of the variable name.
    # Assign Variables
    v_log=$1.err
    v_zip=$1.zip
    v_fmx=$1.fmx
    v_fmb=$1.fmb
    # Unzip File: Overwriting any existing file(s)
    unzip -q -o $1.zip
    # Cleanup ZIP files
    rm $1.zip
    # Delete existing FMX
    rm $1.fmx
    # Generate FMB
    gen $1
    # Display results
    tail -1 $1.err
    # End of script

  • How to check for errors in starting workflow from plsql?

    Hi All,
    I am using the below code to start a custom workflow.
    DECLARE
    l_itemtype VARCHAR2(30) := 'XXPWA';
    l_itemkey  VARCHAR2(30) := '1116410C';
    error_code VARCHAR2(2000);
    error_msg  VARCHAR2(2000);
    BEGIN
        wf_engine.createprocess(l_itemtype, l_itemkey, 'XX_WEBADI_APPROVAL');
        wf_engine.setitemuserkey(itemtype => l_itemtype
                                ,itemkey  => l_itemkey
                                ,userkey  => 'USERKEY: ' || '1116410C');
        wf_engine.setitemowner(itemtype => l_itemtype
                              ,itemkey  => l_itemkey
                              ,owner    => 'SYSADMIN');
        wf_engine.setitemattrnumber(itemtype => l_itemtype
                                   ,itemkey  => l_itemkey
                                   ,aname    => 'BATCH_ID'
                                   ,avalue   => 1116410);
        wf_engine.startprocess(l_itemtype, l_itemkey);
    EXCEPTION
    WHEN OTHERS THEN
    error_code := SQLCODE;
    error_msg  := SQLERRM(SQLCODE);
    dbms_output.put_line(error_code||error_msg);
    END ;
    The script completes successfully without errors.
    I am sending a notification from this workflow. I can see the records getting created in tables like WF_NOTIFICATIONS and WF_ITEM_ATTRIBUTE_VALUES. But i cannot see any thing if i query from Status Monitor. Also I am not getting the said notifications. How can i find what is the issue?

    Hi Manu,
    Thanks for sharing the information, If you think of speeding up finding were exactly your notification is struck, You can use the below query (Input parameter would be your notification id), Hope this information is good, I liked this very much, the way it was narrated.
    SELECT n.begin_date,
           n.status,
           n.mail_status,
           n.recipient_role,
           de.def_enq_time,
           de.def_deq_time,
           de.def_state,
           ou.out_enq_time,
           ou.out_deq_time,
           ou.out_state
      FROM applsys.wf_notifications n,
           (SELECT d.enq_time def_enq_time,
                   d.deq_time def_deq_time,
                   TO_NUMBER((SELECT VALUE
                               FROM TABLE(d.user_data.parameter_list)
                              WHERE NAME = 'NOTIFICATION_ID')) d_notification_id,
                   msg_state def_state
              FROM applsys.aq$wf_deferred d
             WHERE d.corr_id = 'APPS:oracle.apps.wf.notification.send') de,
           (SELECT o.deq_time out_deq_time,
                   o.enq_time out_enq_time,
                   TO_NUMBER((SELECT str_value
                               FROM TABLE(o.user_data.header.properties)
                              WHERE NAME = 'NOTIFICATION_ID')) o_notification_id,
                   msg_state out_state
              FROM applsys.aq$wf_notification_out o) ou
    WHERE n.notification_id = &NOTIFICATION_ID
       AND n.notification_id = de.d_notification_id(+)
       AND n.notification_id = ou.o_notification_id(+)
    This single query links all together and shows you the current state of the message.
    Column 5 & 6 shows the enqueue & dequeue time of WF_DEFFERRED queue.
    Column 7 shows the message status in WF_DEFFERRED
    Column 8 &  9 shows the enqueue & dequeue time of WF_NOTIFICATIONS_OUT queue.
    Column 10 shows the message status in WF_NOTIFICATION_OUT.
    Below is the sequence of activities going on between the PL/SQL trigger of the business event and the e-mail received from notification mailer in the tail -end
    1. EBS user sends email – To send an email EBS modules use standard API. Email API is implemented in PL/SQL package WF_NOTIFICATION (I will cover it in the next article).
    1.1. Provides application data – First of all user’s session inserts business data (recipient, message type, message text etc.) into WF_NOTIFICATIONS table (do not mix up with PL/SQL package mentioned above);
    1.2. Defers processing Generates event – a user or process leaves EBS to run further email processing steps. It is done using a Business Events System (BES). Session raises an event k“oracle.apps.wf.notification.send” via the WF_EVENT PL/SQL package (BES processing to be covered in the next articles). Each deferred event is put in one of the two Advanced Queues WF_DEFERRED or WF_JAVA_DEFERRED for further processing. All email sending events go through the WF_DEFERRED queue.
    2. Deferred Agent Listener – is a process responsible for ALL BES events processing. It executes all deferred events calling subscriptions’ functions defined for each business event. There are several more things to explain about Agent Listeners and subscription processing (e.g. there are several differed agents, subscriptions groups etc.) This is one more subject for further articles.
    2.1. Reads event and starts subscriptions processing – Strictly speaking there is no any enabled subscription for the “oracle.apps.wf.notification.send” event (submitted during the first step). This event is a part of “oracle.apps.wf.notification.send.group” event group. The Deferred Agent executes subscriptions for that group rather than for the stand alone event. At this stage the Agent knows that it should process the notification with given notification id (it is a part of the event data passed via the event).
    2.2. Reads application data – in order to generate the email/notification the Agent reads business data from the WF_NOTIFICATIONS table and a few related tables and during the next step builds up the email’s text in XML format.
    2.3. Generates data for outbound interface – This is the last step executed by the Deferred Agent Listener. It generates XML representation of email to be sent and together with other important bits of information posts it to the Notification Mailer outbound queue WF_NOTIFICATION_OUT.
    3. Notification Mailer – As you see it was a long journey even before we started to talk about the Notification Mailer. There are a lot of things which may go wrong and this is why it is important to know the whole flow of the events to troubleshoot the mail sending functionality in EBS. We’ve come to the last processing step before the message leaves EBS boundaries.
    3.1. Reads message – the Notification Mailer dequeues messages fromWF_NOTIFICATION_OUT queue on regular basis. In fact this is the only place where it looks for the new messages to be sent. This means if a notification doesn’t has a corresponding event ready for dequeuing in the WF_NOTIFICATION_OUT queue it will never be send. As soon as a new message arrives Notification Mailer dequeues it and gets prepared for sending;
    3.2. Sends email via SMTP – This is the step when the message leaves EBS. The Notification Mailer sends the email using text retrieved from the advanced queue during previous step;
    3.3. Updates status – as the last step in the notification sending process the Notification Mailer updates a MAIL_STATUS column in WF_NOTIFICATION table.

  • After upgrading 2008 MacBook to OS 7.5 I can no longer update software from Apple. I always get no permissions error.  Rebuilt permissions, checked for errors on tools and did a soft re-boot. All failed. Any suggestions?

    Please help with the software problems. I now this computer is old, but it works. Advice?

    Wipe the drive and reinstall Lion.

  • Checking for PDF 1.7 compatibility in Preflight (Acrobat 9 Pro)

    Hi,
    I've noticed that in the given Preflight profiles in Acrobat 9 there is no compatibility check for PDF 1.7, only 1.6. is there a profile i can load? or a set of checks i can make a profile in order to determine 1.7 compatibility?
    Thanks,
    Yair Agmon.

    Hi,
    Knowing a PDF file's version premits deduction of what version "compatibility" is present.
    Version 1.7 (Acrobat 8.x) lacks compatibility for Acrobat 9.x specific features.
    Version 1.6 (Acrobat 7.x) lacks compatibility for Acrobat 8.x specific features.
    And so forth.
    Certainly, not an elegantly simple approach; but, nevertheless it is functional.
    Using Acrobat Professional/Extended 9.x -
    Open the Preflight dialog.
    Advanced > Preflight
    From the Options drop-down menu, Select "New Preflight Profile".
    The Prefight: Edit Profile dialog opens.
    A default profile name is provided (New Profile <number>).
    Initially, Click the Save button to save the profile. You can rename it later.
    Note that "New Profile" is placed in "Custom
    Now, locate your "New Profile" in the column at the left of the dialog and select
    "Custom checks".
    The available custom checks list loads in the pane to the right.
    Above and to the right is a "Find" field.
    Enter the string "version".
    A filtered list appears.
    A custom check is available for "versions newer than":
    1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7
    and there is a custom check for "version older than 1.3".
    Add the desired custom check to the profile. Save.
    Configure the check for Error | Warning | Info
    Info is "Notification" in the report that can be provided.
    Once you have configured "New Profile" it can be used by a Batch Sequence to check multiple files.
    When a Preflight is selected for use by a Batch Sequence you can configure for a "on success" and/or "on error" report.
    Be well...

  • Checking for pdf/x Compatibility

    Hello there
    I am using PDF Generator (from LiveCycle ES3) to convert WORD documents and images to pdfs.
    In the PDF Generator settings, I am setting the "Compliance Standard" to "PDF/X-3" and the "output intent profile name" to "U.S. Web Coated (SWOP) v2".
    Am I able to check (and more importantly verify to my client) that these settings have been applied to the resultant pdf?
    When I open the resultant pdf in Acrobat Pro, in "Document Properties", the PDF version is stated as 1.3 (Acrobat 4.x).  However, there is no mention of "x".
    In the preflight dialog, I can check the compliance of the document against the various PDF/X standards, however there is no statement of what the current version is.  Moreover, the button to analyze the pdf against the various "output intents" (SWOP, Japan Color Coated and Coated FOGRA39) is greyed out (I am able to "analyze and fix" against each of these options, but again there is no indication of what the current output intent is).
    There are no custom properties in the Custom settings tab of the Document Properties dialog (if I save the pdf using "analyze and fix", a value of "PDF/X-3:2002" is created for the custom property "GTS_PDFXVersion" in the new pdf).
    Many thanks
    Geoff Olding

    Hi,
    Knowing a PDF file's version premits deduction of what version "compatibility" is present.
    Version 1.7 (Acrobat 8.x) lacks compatibility for Acrobat 9.x specific features.
    Version 1.6 (Acrobat 7.x) lacks compatibility for Acrobat 8.x specific features.
    And so forth.
    Certainly, not an elegantly simple approach; but, nevertheless it is functional.
    Using Acrobat Professional/Extended 9.x -
    Open the Preflight dialog.
    Advanced > Preflight
    From the Options drop-down menu, Select "New Preflight Profile".
    The Prefight: Edit Profile dialog opens.
    A default profile name is provided (New Profile <number>).
    Initially, Click the Save button to save the profile. You can rename it later.
    Note that "New Profile" is placed in "Custom
    Now, locate your "New Profile" in the column at the left of the dialog and select
    "Custom checks".
    The available custom checks list loads in the pane to the right.
    Above and to the right is a "Find" field.
    Enter the string "version".
    A filtered list appears.
    A custom check is available for "versions newer than":
    1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7
    and there is a custom check for "version older than 1.3".
    Add the desired custom check to the profile. Save.
    Configure the check for Error | Warning | Info
    Info is "Notification" in the report that can be provided.
    Once you have configured "New Profile" it can be used by a Batch Sequence to check multiple files.
    When a Preflight is selected for use by a Batch Sequence you can configure for a "on success" and/or "on error" report.
    Be well...

  • Itunes stops working and sends me a message that windows is checking for the problem. I uninstalled and reinstalled itunes. It works for a while then problem resurfaces.

    I tunes stops working and I get a message stating that windows is checking for error. I uninstalled and reinstalled .. Any hints...

    See Troubleshooting issues with iTunes for Windows updates.
    If you haven't already done a complete uninstall of all iTunes components, folder wipe and reinstall please try that first. Otherwise please post back with the exact text of the error message next time it occurs.
    tt2

  • Txt file read in- StringTokenizer- Try Block Catch for errors

    Hello
    So I am having a few issues with a school project. First is with my ReadWithScanner. It does not read in the file giving me a NullPointerException error on the line <Scanner in = new>. I have tried a few other read in files and they do not seem to be working.
    I am also stuck on the logic on the try block catch statement. How does a person set up a �custom� try block that looks for errors like the ones below? I have attempted to start in the commented code.
    The text file has to read in 1000 individual lines of code and are separated by �;� and should be separated into tokens with the StringTokenizer class what I attempted to do below also. Both are mere attempts and need help�
    This is some what of the logic I thought of doing
    1.Read the first line in first with the scanner class
    2.use delimiter separated by �;�
    3.Tokenizer the line into separate tokens- invoiceCode, fName, lName�
    4.Check classes- check Name, check Date, checkPrice, checkPrice, checkGenre, checkShippingDate invoiceCode = "Error Code" checkInvoiceCode(String invoiceCode)checkName(String name), checkPrice(String price), checkGenre(String genre)
    5.Apply the regular expressions to each try block statement
    a.Assign a letter to each error for example if invoice was to short it would be assigned a letter A
    b.If invoice does have the right characters it would be assigned B
    c.If name has to few words it would be assigned D
    d.�
    This is an example of a good field from the text file
    XYG726;Smith,Mr. John M.;29.96;comedy;101008;100604
    Not so good line
    Lu15;Will, Mark;50.00;Science;030305;030807
    The file should then be printed out in the program not to a text file. It only needs to print the invoice number and error code letter assignment.
    If you have any questions feel free to let me know. Thanks for all or any help you have to offer.
    Invoice
    Three upper case letters followed by three digits
    Regular Expression "[A-Z]{3}[0-9]{3}"
    Customer Name
    Should be in the form: last name followed by a <,> optional title (Mrs. Mrs�) then first name optional middle initial Titles must be
    So regular expression something like �[a-z][A-Z]+([A-Z]{1}?[a-z][./})+[a-z][A-Z]�
    Sale Price
    Two decimal digits to the left of the decimal point. The price should not have a leading zero.
    Regular Expression [0-9]{2}*./[0-9]
    Genre
    The genre should only contain lowercase letters. Regular expression �[a-z]�
    ShipDate and Order Date-
    Must be standard dates- MMDDYY. The order date and shipping date has to be after today�s date. Regular expression �[0-9]{2}+[0-9]{2}+[0-9]{2}�
    package Project3;
    import java.util.StringTokenizer;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    import java.io.*;
    import java.util.Scanner;
    public class ReadWithScanner {
    private final File fFile;
    public static void main (String args[]){
    Scanner in = new Scanner(new File("e:\\work_space_java\\Project\\Package3\\movie.txt"));
    Scanner.processLineByLine();
    public ReadWithScanner(String aFileName){
    fFile = new File(aFileName);
    public final void processLineByLine(){
    try {
    //use a Scanner to get each line
    Scanner scanner = new Scanner(fFile);
    while ( scanner.hasNextLine() ){
    processLine( scanner.nextLine() );
    scanner.close();
    catch (IOException ex){
    protected void processLine(String aLine){
    //use a second scanner again to raed the content of each line
    Scanner scanner = new Scanner(aLine);
    scanner.useDelimiter(";");
    if (scanner.hasNext() ){
    //read each file?
    String name = scanner.next();
    String value = scanner.next();
    else {
    scanner.close();
    //Token Names that are seperated
    StringTokenizer st;
    String invoiceCode = st.nextToken();
    String fname = st.nextToken();
    String lname = st.nextToken();
    String price = st.nextToken();
    String genre = st.nextToken();
    String orderDate = st.nextToken();
    String shipDate = st.nextToken();
    String invoiceCode;
    invoiceCode = "A" checkInvoiceCode(String invoiceCode);
    Pattern p = Pattern.compile("[a-z]{6}[A-Z]{6}[0-9]{6}");
    Matcher m = p.matcher(invoiceCode);
    p.matcher(invoiceCode);
    if(m.matches()) {
    System.out.println(invoiceCode);
    else {
    System.out.println ("A");
    try
    invoiceCode = Integer.parseInt(String);
    catch (NumberFormatException e)
    { System.out.println ("B"); System.exit(1); }
    */

    I have made a quite a few updates to my code. Please look it over again. I have also made many comments to help with the logic. Once again if you have any questions please feel free to ask. Sorry about not using the tags before- I was no aware of them. Thanks for the advice sabre150.
    package Project3;
    import java.util.StringTokenizer;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    import java.io.*;
    import java.util.Scanner;
    public class ReadWithScanner {
         private final File fFile;
         public static void main (String args[]){
                   //read in text file from directory currently it can not read the file
                  Scanner in = new Scanner(new File("e:\\work_space_java\\Project\\Package3\\movie.txt"));
                  //Scans each line of the text in
                  Scanner.processLineByLine();
                //assigns new file name to file
                public ReadWithScanner(String aFileName){
                  fFile = new File(aFileName); 
                public final void processLineByLine(){
                  try {
                    //use a Scanner to get each line from the processLineByLine
                    Scanner scanner = new Scanner(fFile);
                    while ( scanner.hasNextLine() ){
                      processLine( scanner.nextLine() );
                    scanner.close();
                  catch (IOException ex){
                protected void processLine(String aLine){
                  //use a second scanner again to read the content of each line
                   //delmiter should then break each line in the text file into seperate "tokens"
                  Scanner scanner = new Scanner(aLine);
                  scanner.useDelimiter(";");
                  if (scanner.hasNext() ){
                       //reads each line from scanner
                    String name = scanner.next();
                  else {
                  scanner.close();
               /*Convert Tokens from Scanner into String Tokenizer with assigment to each variable
                * I am missing something
                * Need to convert each line read from the scanner (name variable) to the String
                * Tokenizer class
              //Tokens names now assigned a varaible
              StringTokenizer st;
              String invoice = st.nextToken();
              String name = st.nextToken();
              String price  = st.nextToken();
              String genre = st.nextToken();
              String orderDate = st.nextToken();
              String shipDate = st.nextToken();
          /*If statments (Try Block Statements?) with Regular Expressions
          * This is where I have the most issues on how to set up
          * "custom" try and block errors trying to match what I have
          * in the regular expressions. 
          * I believe try and catch statements
          * make this easier but I have used 'match' and 'pattern' with if
          * statments.  If try block statements are easier please show!
          * Regular Expressions may not be correct either
           invoice = checkInvoiceCode(invoice);
           //Defined cerita for Inovice are:
           //Error A = Invoice code is too short  
           //Error B = Invoice code does not have the right characters 
           //Error C = Invoice code digits are all zero
           //Checks for error A
           //Has at least six characters
            Pattern invoiceShort = Pattern.compile("{6}");
            Matcher shortInvoice = invoiceShort.matcher(invoice);
            p.matcher(invoiceCode);
            if(m.matches()) {
                 System.out.println(invoice);      
            else {
                 System.out.println ("A");
            //Checks for error B
            //3 Upper Case Letters followed by three numbers,
            Pattern rightChar = Pattern.compile("[A-Z]{3}[0-9]^0{3}");
            Matcher charRight = rightChar.matcher(invoice);
            p.matcher(invoiceCode);
            if(m.matches()) {
                 System.out.println(invoice);
            else {
                     System.out.println ("B");
            //Checks for error C
            //Where the last three digits are not all zeros
            Pattern notZero = Pattern.compile("*{3}^0{3}");
            Matcher ZeroNot = notZero.matcher(invoice);
            p.matcher(invoiceCode);
            if(m.matches()) {
                 System.out.println(invoice); 
                 else {
                     System.out.println ("C");
         //name = checkFullName(name);
         //Error D = Name field has fewer than two words
         //Error E = Name field has more than four words
         //Error F = Name field has no comma
         //Error G = Name field has a bad title 
         //Error H = Name field has a bad initial 
        /*Have a lot more to do...
        * Still need to go through the same if statement or Try Block statements with this data:
        *      String fname = st.nextToken();
              String lname = st.nextToken();
              String price  = st.nextToken();
              String genre = st.nextToken();
              String orderDate = st.nextToken();
              String shipDate = st.nextToken();
        * But for now I would like to see an example of an if statement I could use
        * (if mine is even right) or catch statement- the rest of the project we look
        * for similar certia as defined in the reg exp for invoice
         /*Writes to Report in the Console
         * Prints data into two columns:
         * Invoice Code and Error Type
         //Prints both column Headings
         private void columnHeadings ()
         System.out.println (padL("",5) +
         padL("Invoice",20) +padL("",20)+
         padL("Error Code",40));
         //movie is the name of the text file
         private void printMovie(Movie aReport) {
         System.out.println(aReport.getInvoiceCode()+"\t"+
               aReport.getErrorType()+"\t");
      *This method pads the string start to the length newLength leaving the
      *string left justified and returning the result.
      private String padL (String start, int newLength)
         String result = new String (start);
         while (result.length() <= newLength) result += " ";
         return result;
      } // end padL
       * This method pads the string start to the length newLength leaving the
       * string right justified and returning the result.
      private String padR (String start, int newLength)
         String result = new String (start);
         while (result.length() <= newLength) result = " " + result;
         return result;
    // end padRThanks a lot.

  • Cannot download songs - Unable to check for purchases...

    Hello everybody,
    This week-end I tried to upgrade my library to iTunes Plus. Everything went fine.
    But the problem is that I have 228 files to download, and I cannot do it, because iTunes tries to check for purchases... and then it stops by saying that it was unable to check for purchases.
    I can connect to iTunes Stores, I can check my account, I can see all purchases I've done since the beginning of my account, I can do everything!
    Except that iTunes does not allow me to download my files...
    I have checked on my Mac OS X 10.5 iTunes... and in a Windows XP iTunes.
    It's the same story.
    I have put the topic on Windows, but Mac/Windows... same problem for me now...
    Do you have any idea what is wrong? I suppose since Apple is doing many maintenance... they could have some issue with the Purchasing server.
    Can you buy and download songs? Am I the only one with this problem?
    Just to inform you, I've read all the info and contacted the Apple tech support, and except giving me all sort of "not usefull" tips like firewall check/download accelerator removal (which I don't have). Checking for error codes (I have no error code, just that he cannot check the purchasing server), ... and check the internet connection (which works for EVERYTHING except for this purchasing server!).
    So any help would be great!
    Thank you in advance!
    Alessandro

    I have a hunch it is something wrong on Apple's end with having 200+ downloads queued. Some other folks with hundreds of DLs were having this same problem.
    What I would do, is contact iTS support and ask them to clear your DL queue so you can have fewer DLs wiating in line. THen when you get the first batch, go on to the 2nd batch.
    The magic number mentioned in the other thread seemed to be 69 DLs....you could try searching for it.
    Use the "Contact Us" button on this page and give them the URL of this topic you started
    http://www.apple.com/support/itunes/store/download/

  • Compile class file, check for code structure quality

    now i am trying to develop a system for my college final year project..the main function is to help the lecturer to mark the student java assignment
    any way to compile the java file..just to check for the error? if got error then 0 mark..no error got mark..and then check for the code structure and so...base on that ..to decide the student mark..like if good structure 20 mark..bad? 5 mark and so.
    is it possible to do so?
    Junit?
    any sample?

    Checking for errors is easy, just write a script to check if javac completed successfully. You can use similar approaches (possibly needing to parse the output) for jlint/PMD/whatever to check code structure. If there's any custom checks you want to do, though, I suggest you grab a parser (possibly witgh semantic analysis; I've found the Eclipse one is rather easily extracted and is good for this stuff) and write manual checks. It might be easier to write PMD rules, but you won't have the flexibility.

Maybe you are looking for

  • Firefox sync has wiped all my data!!!

    My laptop's disk crashed, so I've just installed a new one, and thought "OK great, I have Firefox Sync, it'll have my passwords and bookmarks saved". Did it hell!? I used to use a plugin for syncing my passwords and bookmarks, which worked beautifull

  • Enter trading partner in "F-90"

    Dear Experts, Am posting a vendor invoice for Main Asset, at the 1st screen i enter pstykey 31 and vendor no. and on the nxt screen the amount, pstykey 70,account number of the main asset (20001 0) and transaction type 100. But it displays a warnin m

  • Problems when user enter the field

    I have problem when user enter the field, but it cannot retrieve from the table. Below is my program, help me to check is it correct or not, THANKS <input type="text" name="po_num<%=i%>" style="width:100%;text-align:left;" onChnage="chkPOexist(<%=i%>

  • Photo booth face time and skype problems

    Hello i have recently updated to mountion lion 10.8.5 but the problem is everything works except my photobooth .facetime... and other video/ camera options ... tried resetting the smc...taking the battery out ..etc and i also know it isnt a hardware

  • Garage Band not sending Ringtones to iTunes

    Hello, here's the thing, i have updated to the latest version of Garage Band after hearing that i could make my own ringtones with it. I tried it and success! i have like 6 or 7 ringtones made directly from Garage Band. Now here's the problem, i purc