Directory Access Causing Printing Errors?

I'm trying to connect my G4 Quicksilver Tower (10.4.11) to a Windoze shared printer. Using Printer Setup, navigating to Add Printer:More Printers... shows only the Tower Name. I've used the Advanced method(s) by manually adding smb://Etc., etc. per (http://docs.info.apple.com/article.html?artnum=301397)There are no spaces or illegal chars. in server or printer share name. PC & all macs have "WORKGROUP" set in Directory Access-SMB/CIFS (yet it appears as "Workgroup") All devices are on the same subnet, static IP's. Another interesting "bug", If I "Browse" my network, the PC is a no-show, yet typing in smb://IP address reveals all PC Shares.
My MB Pro, (same OS) shows all relevant devices under "Workgroup". "Browse" the network and everything shows up. Yes, it's different hardware and the Tower uses SMB/CIFS ver. 1.2, MBPro: 1.3.1. I'm pulling my hair out here! Can I update SMB/CIFS on my Tower? How? I've scoured the Console on the Tower looking for clues.
Any help would be greatly appreciated. (this is my Wife's Mac) : |

A guess.
I noticed that granting WRITE as well has made a difference even when it appeared that I was not writing to the directory. I haven't found appropriate documentation to explain why but it might be worth a try.

Similar Messages

  • Add-on is causing printing error

    Hi there - I have a new computer with a brand-spanking new version of Firefox installed (3.6.10). I have installed a few plug-ins that were necessary as they came up - e.g.Flash; but am not a very computer-savvy user, so don't know where to look to see which ones I have. (Oh very cool, Firefox knows and added them in!)
    I have been trying to print from within Firefox and have been getting an unknown error. I am able to print from other programs - so for e.g., can copy from a web page to Word and then print. I followed some advice on the forum and re-started Firefox in Safe mode with all plug-ins disabled, and lo and behold, printing works again. So clearly its a plug-in issue. Can someone help me try to figure out which is the problem and how to fix it?

    Addo-ons =- Extensions, Themes, and Plugins
    The Firefox SafeMode doesn't disable plugins, so your problem is probably with an extension. Disable your extensions one at a time to figure out which one is causing that printing problem.

  • Acrobat 9.1.2 New Update Causes Print Error

    operating sys: Win XP
    ver: Acrobat 9.1.2
    I'm using a Master file on the printer and marrying my data file to that master.
    Ever since I received the new update, any time I print a file over 35 pgs. from Adobe Acrobat it prints out about 30 pgs. correctly and on the next print it spits out the Master file but for the data it prints out the following error:
    "ERROR: undefined
    OFFENDING COMMAND: limitcheck
    STACK:
    32
    -dictionary-"
    I've tried printing to different printers and on different projects but as soon as throw that .pdf into an InDesign document and print from the InDesign program the project prints out correctly.
    Any suggests as to how to fix this? OR Will this be fixed in the newest update?
    stephen k.

    Windows 7 64 Pro, Thunderbird 7.0 (updated recently) : the "publish form" is completely bugged.
    Before reading solutions here : can't find mail program error messages (can't find my adress book in TB)
    After applying the fix : set the by default programm forced on Thunderbird -> http://forums.adobe.com/message/3610561#3610561
    Acrobat "resolves mail adress", then the submit button make a small dialog box appear (can't read anything in it). Nothing happens.
    I can click and re-click several times, same "empty" or "not displaying a message long enough" dialog box keeps appearing. No forms sent whatsoever.
    This is critical. I'm an ACI. I must set up a special training for one of our customers, about delivering forms. Ok, that issue is on my personnal computer, so far.
    I may need to fix the install, or reinstall whatsoever, BUT : can I really come with that kind of answers in a classroom ?
    "-Oh, and now publish the form, by clicking here..."
    "-Oh, that doesn't work ? Hmmm, it's a known issue without any solution. Uninstall everything and reinstall everything, that should work (or not). Yeah, I know, it's Acrobat...
    and no, sorry, I don't have time to uninstall an reinstall everything on all the computers in the classroom, sorry, it's the end of the day. Bye ! What ? You, students, think this
    training was in fact useless ? Hm, you kinda of right...we spent a whole day setting forms, discussed how Acrobat is a cool software, and in the end our forms are good to be dropped to the trashcan."
    May we have a answer from the Acrobat Team here ?

  • MacBook 2006 w/Snow Leopard; HP B210 printer; print problem; error message: One or more components of the HP printing software are corrupted or missing. Reinstalled software but Mac will not cause printer to print.

    ? MacBook 2006 w/Snow Leopard; HP B210 printer; print problem; error message: "One or more components of the HP printing software are corrupted or missing..." Reinstalled software but Mac will not cause printer to print.  My MacBook Pro works fine with same wireless printer.

    Hi ArielAce , thanks for getting back to me!
    I would recommend downloading and running the HP Print and Scan Doctor.
    Please keep me posted!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Document store access caused errors in the SAP Correction System

    Hi Gurus,
    I have this user who is trying to make changes to a workbook in DEV which is published to a folder with some users who are assigned to role. This user is the only user with Developer 2 role. When the user make changes and try to save the workbook to her role or favorites so that the changes are transported to BWP, the user is getting "Document store access caused errors in the SAP Correction System".
    Do we have any suggestions/solutions, I would really appreciate any help on this.I would also assign full points for the most helpful answer.

    I have exactly the same problem with the user who is trying to save the workbook, where he made minor change.
    Any clues?
    Thank you.
    Vitaliy

  • Crystal tries to access the printer on the initial development machine ...

    Post Author: duman
    CA Forum: General
    Hi,
    I have following issue:
    I developed many reports on my machine in Germany, by using a network printer.
    Now that the reports are approved, they are installed on a citrix machine in boston.
    Somehow loading of the reports in the citrix session took 3-10minutes, until the application poped up the parameter screen. After typing in the parameters opening the report took only view seconds.
    On my local machine I did not have this problem. The reports were loaded quickly. The behavior on 5 different citrix servers were the same like the described one (each loading delayed 3-10 minutes ).
    By tracing the processes in the citrix session I found out that the spooler.exe accessed my development printer in germany (shared printer \ slow network connection). The spooler loads the drivers on the server in germany, where the printer is.
    Why does crystal by loading a report access the printer on which I developed?
    Even if I change the printer in the pagepreferences of the report, crystal still tries to access my initial printer on which i developed. ??
    Can anyone help me on this?
    thanks
    Duman

    Well it seems from your error message that JDeveloper is trying to create this directory here:
    C:/Documents and Settings/cyounger/Desktop/jdevstudio10134/jdev/system/oracle.j2ee.10.1.3.42.70/embedded-oc4j/applications/datatags.ear
    This is probably failing because of the space in the path (i.e. Documents and Settings).
    So the question is why is it trying to create the directory there if your JDeveloper is installed elsewhere.
    I'm going to guess that you either have an environment setting pointing to this directory (maybe something like JDEV_USER_DIR) or it is because you upgraded from another JDeveloper install that used that directory. If this is the case I would suggest a fresh install of JDeveloper and to choose "NO" when asked if you want to upgrade from a previous installation.

  • [solved] NFS: "ls: reading directory .: Input/output error" after time

    Hello,
    I got the following configuration:
    NFS-server: Always on, connected via LAN.
    NFS-clients: 2 computers, connected via LAN and WLAN. On standby: auto umount NFS-share via system-sleep-hook with systemd.
    This works flawlessly some hours or even days. But after some time, the following happens:
    1. mount nfs-share: no error message
    2a. trying to access that folder via filemanager, e.g. thunar: folder seems to be empty (it isn't on server!), but the correct freesize of the NFS-share on server is displayed in the statusbar.
    2b. trying to access that folder via commandline:
    $ ls
    ls: reading directory .: Input/output error
    The very same worked just a few hours before, I haven't changed anything meanwhile. Apart from standby (--> auto umount NFS-share) and resume (manual mount NFS-share) on the clients which worked before, too.
    Any idea what's going wrong?
    additional info:
    server:
    /etc/exports
    /srv/nfs/myshare 192.168.2.0/24(rw,all_squash,anonuid=33,anongid=33,no_subtree_check)
    (yes, the mapping is needed and right.)
    clients:
    /etc/fstab
    servername:/srv/nfs/myshare /home/carl/nfs nfs4 noauto,soft,user,_netdev,timeo=14,rsize=8192,wsize=8192 0 0
    /usr/lib/systemd/system-sleep/umount-nfs
    #!/bin/sh
    case $1 in
    pre)
    umount -f /home/carl/nfs
    esac
    Last edited by Carl Karl (2014-09-21 17:07:47)

    Indeed, there could be something interesting in dmesg on the server:
    [ 4.190117] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
    [ 4.190596] NFSD: starting 90-second grace period (net ffffffff818a9540)
    [ 5.445237] [drm] Enabling RC6 states: RC6 on, RC6p on, RC6pp off
    [ 5.895519] r8169 0000:04:00.0 enp4s0: link up
    [ 5.895529] IPv6: ADDRCONF(NETDEV_CHANGE): enp4s0: link becomes ready
    [72346.265850] usb 3-1: USB disconnect, device number 2
    [72346.670926] usb 3-1: new SuperSpeed USB device number 3 using xhci_hcd
    [72346.684585] usb-storage 3-1:1.0: USB Mass Storage device detected
    [72346.684716] scsi5 : usb-storage 3-1:1.0
    [72347.686518] scsi 5:0:0:0: Direct-Access WD Elements 1048 1022 PQ: 0 ANSI: 6
    [72347.687606] sd 5:0:0:0: [sdc] 976769024 512-byte logical blocks: (500 GB/465 GiB)
    [72347.690295] sd 5:0:0:0: [sdc] Write Protect is off
    [72347.690301] sd 5:0:0:0: [sdc] Mode Sense: 47 00 10 08
    [72347.692981] sd 5:0:0:0: [sdc] No Caching mode page found
    [72347.693025] sd 5:0:0:0: [sdc] Assuming drive cache: write through
    [72348.135398] sdc: sdc1
    [72348.141458] sd 5:0:0:0: [sdc] Attached SCSI disk
    [72348.455737] EXT4-fs (sdc1): recovery complete
    [72348.455919] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
    [74276.020331] EXT4-fs error (device sda1): ext4_find_entry:1310: inode #14024711: comm nfsd: reading directory lblock 0
    [74276.021107] EXT4-fs error (device sda1): ext4_find_entry:1310: inode #14024711: comm nfsd: reading directory lblock 0
    (last one repeats several times...)
    Indeed, the NFS-share resists on a external WD harddrive connected via USB, /dev/sdc1.
    As suggested in the NFS wiki article, the NFS-share is a bind-mount:
    /etc/fstab on server:
    # fake-root for NFS
    /magnet/owncloud/data/carl/files /srv/nfs/myshare none bind,noauto,x-systemd.automount
    while /srv is on /dev/sda1.
    The external harddrive has an auto-standby (NOT hdparm...) which isn't causing troubles with other services.
    So it seems to be a problem connected to this bind-mount to external USB setup....
    I'll try to find out whether there is  a way to avoid that.
    Thanks so far!
    Last edited by Carl Karl (2014-09-16 14:30:02)

  • Can't click anything in firefox after closing "printer error" dialogue box.

    I'm trying to print an important document off the internet in Firefox. I can't try to restart Firefox without losing access to this document but after closing a "printer error" dialogue box I am unable to click anything in Firefox. I can't use "ctrl+p" to print or any of the other keyboard shortcuts. Right-clicking is also not working.
    Running task manager doesn't show any tasks other than the one Firefox window and that shows up as "running" so I don't think it's a case of the dialogue box still being open.
    I CAN right-click on Firefox on the status bar to open a new window (which works perfectly fine) or to open a new tab in the malfunctioning window (which is frozen as well).

    Goto Firefox Menu - File > Exit
    Try in safe mode
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • Access denied. Error in File C:\WINDOWS\TEMP\

    I have searched on Google and all over this forum and none of the solutions have fixed my problem.
    Crystal Version: Crsytal.Net for Visual Studio.Net 2005
    Server: Windows Server 2003
    Error:
    Access denied. Error in File C:\WINDOWS\TEMP\JuryDutyReport {D6296178-3E72-483E-B876-2DFC03D00841}.rpt: Access to report file denied. Another program may be using it.
    When I run my app locally through the Web Server that comes with ASP.Net, everything is fine, it is only when I deploy the application to the Windows 2003 Server that I get the error.
    I'm using impersonation in my ASP.Net application.  I have given that domain user full access to 'C:\Windows\Temp'', the export folder and even the folder where the Crystal Report resides on the Server.  When I run the application on the Web Server, I actually see the ".rpt" get created in the "C:\Windows\Temp" folder but yet it still says there is a permissions error.
    What is bizarre is that the code below that just sends the file to the printer automatically works:
      private void PrintJuryDutyReport(DataSet ds)
            //create report document
            ReportDocument crDoc = new ReportDocument();
            //load, set datasource and print options
            crDoc.Load(Server.MapPath("~/Reports/JuryDutyReport.rpt"));
            crDoc.SetDataSource(ds); //set datasource
            crDoc.PrintOptions.PrinterName = ddlPrinters.SelectedValue.ToString(); //set printername
            crDoc.PrintOptions.PaperOrientation = PaperOrientation.Portrait; //set paper orientation
            crDoc.SetParameterValue("ParamUsername", User.Identity.Name); //set parameter
            crDoc.PrintToPrinter(1, false, 0, 0); //send to printer
    I have to change the code to export to a PDF and this code doesn't work:
        private void PrintJuryDutyReport(DataSet ds)
            //report document
            ReportDocument crDoc = new ReportDocument();
            string myfile = @"G:\COPFS\COPFSPROD\ReportsTemp\MyPDF.pdf";
            //load, set datasource and print options
            crDoc.Load(Server.MapPath("~/Reports/JuryDutyReport.rpt"));
            crDoc.SetDataSource(ds); //set datasource
            crDoc.SetParameterValue("ParamUsername", User.Identity.Name); //set parameter
            //export through http
            crDoc.ExportToDisk(ExportFormatType.PortableDocFormat, myfile);
            crDoc.Close();
            crDoc.Dispose();
            Response.ClearContent();
            Response.ClearHeaders();
            Response.ContentType = "Application/pdf";
            Response.AppendHeader("content-disposition", "attachment; filename=" + myfile);
            Response.WriteFile(myfile);
            Response.Flush();
            Response.Close();
    Any help is greatly appreciated as I have to present this to end users tomorrow.

    Don, thanks for the response.
    As a last ditch effort, I granted "modify" to the Network Service Account on C:\Windows\Temp and that fixed the error.
    There are two things that are troubling about this:
    1) I'm impersonating a domain user in my ASP.Net application and when the PDF is created, the owner is that domain user, so I know impersonation is working.  So I wonder if ASP.Net picks and chooses what account it runs under at different times?
    2) It is a little scary for the Network Service Account to have this access but that people seem to be fine with it.
    http://aspadvice.com/blogs/rjdudley/archive/2005/03/14/2566.aspx

  • Windows printing error 256

    Hello everyone, this is my configuration:
    MacBook Pro with OS X 10.4.10 and all the updates;
    a desktop with Windows XP on it;
    Canon MP810 as a printer and printfab as a driver.
    I have got a Windows printer and I've had the "error: 256" when I try to access the printer or simply add it to the printers' list since a short time.
    Probably I have had this since a security update.
    http://www.apple-discuss.com/redirect.php?fid=6&tid=11292&goto=nextoldset
    There you can read another discussion about this issue: no one could figure out how to fix this.
    I have already tried using the advanced button clicking with option+spacebar on "more" and then manually setting the "smb://" URL.
    I tried printing from another laptop where I have Windows and it perfectly worked.
    I don't wanna spend cash for buying the wireless kit to print without the printer to be connected to a switched on computer.
    Do you have any suggestion to fix the problem? I haven't called Apple yet, because very likely they won't be able to help me out with this problem. I called them in the past for easier issues and they couldn't help me. ^^
    These are some tries that I did to debug the problem:
    [i]Jupiter:~ deviad$ echo "hello" | smbclient //TimeMachine/CanonMP810 -c "print -"timeout connecting to 208.69.32.130:445
    timeout connecting to 208.69.32.130:139
    Error connecting to 208.69.32.130 (Operation already in progress)
    Connection to TimeMachine failed
    Jupiter:~ deviad$ echo "hello" | smbclient //192.168.1.2/CanonMP810 -c "print -"
    Password:
    Anonymous login successful
    Domain=[WORKGROUP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
    tree connect failed: NT_STATUS_ACCESS_DENIED
    Jupiter:~ deviad$ echo "hello" | smbclient //192.168.1.2/CanonMP810 -c "print -"Password:
    Anonymous login successful
    Domain=[WORKGROUP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
    tree connect failed: NT_STATUS_ACCESS_DENIED
    Jupiter:~ deviad$ echo "hello" | smbclient //pippo:[email protected]/CanonMP810 -c "print -"
    timeout connecting to 208.69.32.130:445
    timeout connecting to 208.69.32.130:139
    Error connecting to 208.69.32.130 (Operation already in progress)
    Connection to pippo:[email protected] failed[/i]
    What I do not understand now is who the heck is this 208.69.32.130. Why does my computer try to connect to this host? The IP of TimeMachine is 192.168.1.2
    The IP of my macbook pro on the network is 192.168.1.3.
    I really don't know what 208.69.32.130 is.
    Thank you very much for your help.
    Regards,
    Davide

    Hi,
    * IP address
    About the IP address 208.69.32.130.
    I did a Google search and this address shows up many times as an OpenDnsServer.
    Running the network utility from my Mac gives the result below.
    Whois Server Version 1.3
    Domain names in the .com and .net domains can now be registered
    with many different competing registrars. Go to http://www.internic.net
    for detailed information.
    Server Name: CSB.CSBRADIOTV.EDU
    IP Address: 208.69.32.130
    Registrar: EDUCAUSE
    Whois Server: whois.educause.net
    Referral URL: http://www.educause.edu/edudomain
    * Error 256
    My iMac is on the latest sw state and PrintFab towards a Canon printer is working fine for me.
    Did you already do a reinstall of the PrintFab software and try to setup the printer from scratch?
    I found a link to a page describing a workaround for the 256 error.
    http://www.erikjheels.com/2007-03-10-how-to-print-os-x-to-xp.html
    /rob
     iMac 20", C2D 2.16GHz   Mac OS X (10.4.10)   RAM 2 GB, VRAM 256MB, 2:nd Monitor, Ext DVD & FW drive, USB sound

  • Printing Error with Canon MF6500

    I'm trying to print with my Canon MF6500 but I keep getting a printer error saying that there is an error in the connection. The strange thing is that it was working fine a couple days ago. Here are a few things:
    Things I've Done:
    -printed using another macbook with the same USB cord (worked)
    -uninstalled and reinstalled ALL printers (did not work)
    -downloaded the driver from the canon website (did not work)
    -used multiple USB cords
    Things that might have caused the problem:
    -Used a Canon Pixma iP1800 to print
    -Used a HP photosmart C1300 to scan and print
    another thing to note is that when I install the printer it doesn't automatically detect the software anymore, I have to select the proper printer driver (Canon MF6500 UFR II)

    anguonly wrote:
    Maybe the process "UFR II BackGrounder" is the problem but I don't want to shut out something important
    The Backgrounder service provides communication between the UFR2 driver and the Mac. If this service fails to run and connect to the printer then it will cause errors, such as the one you are having. You could look at stopping this service, it will restart by itself, or restarting the Mac will do the same.
    With all that you have done so far I suggest you look at removing the UFR2 driver and associated files and then install v2.21 again. First remove the existing MF6500 printer queue in Print & Fax. Then trash the following files;
    System Volume/Library/Printers/Canon/UFR2
    System Volume/Library/LaunchAgents/jp.co.canon.UFR2.BG.plist
    System Volume/Library/Printers/PPDs/Contents/Resources/CNTD**Z*2.ppd.gz
    Where * indicates a character string that represents the printer model, and 2 indicates a character string that represents the corresponding language.
    Then restart the Mac and install the v2.21 UFR2 driver.

  • Directory Access and Permissions

    Hi,
    I work at a company that's having a problem setting up the new macs (Core 2 Duo iMac 24") our marketing department just ordered.
    The rest of our network uses windows, so we have active directory logins for everyone. We've setup the Directory Access on the new iMacs so that marketing users log in using their AD username and pw. The local user account that 10.4 generates is set to be a local admin, but the users are just normal users in AD.
    The problem we're having is with setting permissions for some Apps that require changes from the default settings. When I go to set permissions in the Info pane of a folder or app, I open the pull down menu for 'Owner' and go to 'Other...' at the bottom to grab the user from AD (because the user is not available in the top portion where local users can normally be selected). This is where the problem occurs. This opens up the "User Listing" box, which contains a long list of AD usernames, but does not have any AD usernames that were created less than 10 months ago. I checked with my Network Admin, and virtually no settings in terms of creating AD users have changed in the last two years.
    I don't know if this is a problem with settings on the AD side or the Mac side, but here's the Mac settings in Directory Access:
    +Services: AD is checked+
    +Authentication: Custom path selected, our domain is in the list+
    +Contacts: Same as Authentication+
    +Under AD:+
    +Forest and Domain are correct, computer is bound correctly.+
    +User Experience:+
    +Create mobile account is not selected.+
    +Force local home directory on startup is selected.+
    +Use UNC path from AD... is selected, smb: is selected as Network protocol.+
    +Default user shell is selected as '/bin/bash'+
    +Mappings: Nothing selected.+
    Administrative:
    +Prefer this domain server is checked and correct for our network+
    +Allow administration by is checked, domain admins and enterprise admins+
    +Allow authentication from any domain in the forest is selected+
    Is there anything in these settings that might cause the problem described above, or is the problem something else entirely, maybe on the AD side?
    I'm also wondering if anyone knows how to find out where Directory Access is grabbing this list of users from. Perhaps our Network Admin can find out what the problem is given that info.
    Thanks,
    Gabe
    Message was edited by: Gabe Stein

    I have exactly the same problem and ProtectHome wasn't the solution. "sudo minidlnad" works fine -- TV shows root and /home/blah/blah is accessible. However, I'm not able to make the daemon run as root. Just for testing purposes, I've made all the settings as loose as possible, but TV stills shows minidlna as username and the folder is not available (systemctl status reveals permission denied).
    minidlna.service:
    [Unit]
    Description=minidlna server
    After=network.target
    [Service]
    Type=simple
    User=root
    Group=root
    ExecStart=/usr/bin/minidlnad -S
    ProtectSystem=off
    ProtectHome=off
    PrivateDevices=on
    NoNewPrivileges=off
    [Install]
    WantedBy=multi-user.target
    minidlna.conf:
    user=root
    media_dir=/home/blah/blah
    What am I missing here? No possibility to run minidlna as root after the last update any more?
    Edit:
    Never mind. During all this testing I had forgotten "User=minidlna" to /etc/systemd/system/minidlna.service.d/override.conf. Daemon as root works after removing that line.
    Last edited by riivo (2015-03-19 14:38:18)

  • [Microsoft][ODBC Microsoft Access Driver] Syntax error

    I am new to Java. I have tried to write a simple program insert table in Access2002. However, I got the following error,
    ERROR: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement
    My code is as follows,
    import java.lang.*;
    import java.sql.*;
    import java.util.*;
    import java.text.*;
    public class dateconv3 {
    public static void main (String[] args) {
    //Setting up the JDBC-ODBC bridge connection
    String DRIVER_NAME = "sun.jdbc.odbc.JdbcOdbcDriver";
    String CONNECTION_URL = "jdbc:odbc:book1";
    // The JDBC Connection Object
    Connection con = null;
    // The JDBC PreparedStatement object
    PreparedStatement ps = null;
    boolean rc = false;
    try { // try under for loop
    // Get an connection
    Class.forName(DRIVER_NAME).newInstance();
    con = DriverManager.getConnection(CONNECTION_URL);
    SimpleDateFormat formatter = new SimpleDateFormat ("yyyy/mm/dd");
    java.util.Date currentTime_1 = new java.util.Date();
    String dateString = formatter.format(currentTime_1);
    ParsePosition pos = new ParsePosition(0);
    java.util.Date currentTime_2 = formatter.parse(dateString, pos);
    java.sql.Date dCurDate=new java.sql.Date(currentTime_2.getTime());
    System.out.println(dCurDate);
    String userid = "1";
    String booktitle = "Java Servlet Programming";
    int amount = 202;
    String sqltxt="INSERT INTO TRANSLOG ( userid, booktitle, date, amount ) VALUES (?,?,?,?)";
    // Create a statement object that we can execute queries with
    ps = con.prepareStatement(sqltxt);
    ps.setString(1, userid);
    ps.setString(2, booktitle);
    System.out.println(currentTime_2);
    java.sql.Date sqlDate = new java.sql.Date(currentTime_2.getTime());
    System.out.println(sqlDate);
    ps.setDate(3, sqlDate);
    ps.setInt(4, amount);
    System.out.println("INSERT into translog table");
    // Execute the statement
    ps.execute();
    rc = true;
    } catch (Exception ex) {
    // Sent the error
    System.out.println("ex.getMessage() print: " + ex.getMessage());
    } finally {
    try {
    if (ps != null) {
    ps.close();
    if (con != null) {
    // Put the connection back into the pool
    con.close();
    } catch (Exception ex) {
    // Ignore any error here
    The Access has been set to the date format yyyy/mm/dd and I got the following result.
    java dateconv3
    2001-01-04
    Thu Jan 04 00:56:00 CST 2001
    2001-01-04
    INSERT into translog table
    ex.getMessage() print: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement
    Please advise. I got frustrated with such a silly question. Anybody can help me to resolve it.
    Patrick

    INSERT INTO TRANSLOG ( userid, booktitle, date, amount ) VALUES (?,?,?,?)I don't have Access on my computer at home here, but it is quite possible that "date" is a reserved word in Access's version of SQL. If you can change the column name, I'd recommend you do that. Otherwise try changing your SQL code to this:
    INSERT INTO TRANSLOG ( userid, booktitle, [date], amount ) VALUES (?,?,?,?)
    But be warned that this [trick] doesn't work with other databases.

  • PDF printing error in some reports

    Hi,
    I am using apache-tomcat-6.0.26 + cocoon-2.1.11 as my PDF print server for Apex. I tested the server and found out that, for simple reports with very limited parameters, PDF download worked find. However, for reports that have certain parameters, it said something like "Adobe Reader cannot open the file because it is either not a supported file type or file is damaged...".
    Also, how can I change the memory size to 512 of Tomcat on Windows?
    Any help?
    Thanks.
    Andy

    Hi Andy,
    Do the parameters that you enter into the report generate any result set?
    I don't really know what is causing the error you experiencing but I found that sometimes I would get a similar error when I attempted to print a report to PDF that contained no data (although I was using BI Publisher). Not sure if this has something to do with it...
    Alternatively, there could be characters within the word document, like brackets (), that could be causing the issue. I think it still causes an issue even if it is in the data itself.
    I would start off with a simple report and then add a little bit of functionality at a time, and then test, to work out which part of the report is causing you grief.
    Amanda.

  • "Problem When Printing" error on Mac Mini

    Hi all,
    I just recently updated my Mac Mini from 10.3 to 10.4. Instead of Archive and Install I formatted and did a clean install.
    I have my printer set up, however whenever I try and print anything from any application I get a very unhelpful "Problem when printing" error, and nothing prints.
    I also get the same error when trying to save to PDF.
    My printer is a HP Deskjet 3750, and the driver is the one included with 10.4 (as per HP's instruction), but I don't think it's a driver problem as Save to PDF gives me the same error.
    I've already tried repairing permissions. Anyone know what could be causing this. Any help is greatly appreciated.
    Thanks.

    Bugger. PSR is often a winner
    You could try installing Gutenprint 5.0.1 available from Sourceforge (it's about 15MB). It's an updated version of the included GIMP-Print drivers and may repair/replace/install some of the core files. Otherwise you may have to contact Apple and see if you can get 10.4.9 mailed to you.

Maybe you are looking for

  • Negaive asset value in AS91

    Hi , Could any one expalin me how to make subsequent postings if we maintain negative asset values in AS91? How to do write up postings? What should be the transaction type for write up? Please share your valuable knowledge. Thanks in advance. Smruti

  • One of my Macs doesn't see USB drive hooked to Airport Extreme

    I have three Macs on my home network. Two of them can see the USB drive I've attached to my Airport Extreme, but the third -- a recent Intel Mac Mini -- won't. Airport Utility on the Mac Mini sees the drive, but Airport Disk Utility doesn't. Here's w

  • Hyperlinks in HTML5 output.

    How do I get hyperlinks to work from my project after posting to server. When I test the program the hyperlinks don't work. Bought the $80 widget, but still don't work. Need help.

  • HELP?? iPod package was stolen. What can I do?

    To anyone that can help, I recently bought an iPod as a Christmas Present. According to Fedex, the package was delivered. They have the signature of someone who works the front desk of my apartment building. My building says they don't have the packa

  • Creating virtual directory with OC4J

    Hello, all. I thought this issue was going to be straight-forward, but after searching this forum and the General one I am not so sure. Can someone tell me how to create virtual directory mappings or contexts for 10gAS so that jsps that reside in an