"[Microsoft][ODBC Microsoft Access Driver] Syntax error in field definition
I am creating a program in Java which has a Database reference application.The Database I am using is MS Access.But whenever I am trying to run the program from DOS Prompt(ie executing the program:java <program name>) I am unable to connenct to the database.The compiling of the program doesn't show any error(ie javac <program name>) The following error is displayed at the DOS Prompt:
"[Microsoft][ODBC Microsoft Access Driver] Syntax error in field definition."
Pls give me a detailed help report.If it is a Machine side problem do help me to solve it.Mine is a Compaq Presario Machine,OS:Windows 98,Database:MS Access(Office XP)
I request you to help me in this matter.Pls email ur responses to:
[email protected]
[email protected]
hi there
did u configure ur ODBC setting if no then try these steps
================== ODBC Settings ========================
step 1 : go to control panel
step 2 : ODBC Data Sources
step 3 : click UserDSN Tab
step 4 : click ADD Button , Select Microsoft Access Driver , Finish
step 5 : Give Datasource Name as "DATABASE_NAMEXXX" , no double quotes
step 6 : use Select and select Database_NAME.mdb from <INSTALL DIRECTORY>\DATABASE_NAME.mdb
click ok , ok finish
<INSTALL DIRECTORY> is where yr database is
=========================================================
then in yr program
URL for yr database
"jdbc:odbc:DATABASE_NAMEXXX" // as name in step 5
and Driver is
"sun.jdbc.odbc.JdbcOdbcDriver"
if u done all these steps then check yr spelling of table and tabel field in yr program
hope this works for u
regards
Satinderjit
Similar Messages
-
[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.
PatrickINSERT 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. -
Hi,
I am getting following error message ,
[Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement.
When run this code.
<%@ page import= "java.sql.*"%>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:bspipdb");
Statement st = con.createStatement();
st.executeUpdate("update tscipshift set 11-Aug-08='M' where TechN='Elamparuthi'");
%>
tscipshift=table ,column=11-Aug-08 are all exist.
I dont know why I am getting error mesage.
Any idea why?Shahbaz2008 wrote:
you haven't set your user name and password hereI don't believe that's necessary with Access. Then again, it's not an enterprise database.
Connection con = DriverManager.getConnection("jdbc:odbc:bspipdb");
change it to this
Connection con = DriverManager.getConnection("jdbc:odbc:bspipdb","+username+","+password+");
here pass your username and password...
In Oracle default user name and password is
username = scott
password = tigerSo who uses that? Only an eejit would leave that account open.
So the statement would be
Connection con = DriverManager.getConnection("jdbc:odbc:bspipdb","scott","tiger");
or In Mirosoft Access there is no user name and password so the statement will be Like I said - unnecessary, and not the reason the OP is having problems.
Connection con = DriverManager.getConnection("jdbc:odbc:bspipdb","","");>
Besides this change your table name 11-Aug-08 to anything that is not start with number or any special symbols.
for example aug112008 is good or aug is too good.No, it's still not good if you understand ANYTHING about relational databases and normalization.
I think it would work.I think you're just as stup!d as the OP.
% -
"java ODBC Microsoft Access Driver Syntax error (missing operator) in query
Hi I am new to java and I am getting this error message when using java to access and insert data into an MS Access database.
"java ODBC Microsoft Access Driver Syntax error (missing operator) in query expression"
The commands are
String insertCommand = "INSERT into MetricOutput(A1,A,DRR,DeRR,RE,WDRR,WDeRR,WRE,ARF,SRF,HRF,WARF,WSRF,WHRF,SDC,WSDC,MAR,WMAR,H1,H11,H2,H21,cluster) "+
"VALUES("+comMappedCount+","+stdCount+","+DRR+","+DeRR+","+RE+","+WDRR+","+WDeRR+","+WRE+","+ARF+","+SRF+","+HRF+","+WARF+","+WSRF+","+WHRF+","+SDC+","+WSDC+","+MAR+","+WMAR+","+H1+","+H11+","+H2+","+H21+",+array)";"VALUES("+comMappedCount+","+stdCount+","+DRR+","+DeRR+","+RE+","+WDRR+","+WDeRR+","+WRE+","+ARF+","+SRF+","+HRF+","+WARF+","+WSRF+","+WHRF+","+SDC+","+WSDC+","+MAR+","+WMAR+","+H1+","+H11+","+H2+","+H21+",+array)";After looking at your post in the editor, I see what your real query looks like. You realize that ",+array[i])" is part of the query, right? And not actually looking at your Java array?
-
[ODBC Microsoft Access Driver] Syntax error (missing operator)
Aello' - as you can see in my database table their are two
records to delete based on the HISTORY_ID of 1. This was working
just fine when I was using a MS SQL Server database but when I
switched to the MS Access database I get this error now.
Is their a syntax difference?mikeap wrote:
> Attached code. Clearly their are records to delete, what
am I missing?
>
> Using MS Access database.
>
> [Macromedia][SequeLink JDBC Driver][ODBC
Socket][Microsoft][ODBC Microsoft
> Access Driver] Syntax error (missing operator) in query
expression
> 'R_PROJECT_MEDIA WHERE Media_ID IN (1)'.
>
> <cfquery datasource="tbar">
> DELETE R_HISTORY_MEDIA
> WHERE History_ID IN (#FORM.pHistory#)
> </cfquery>
DELETE
FROM R_HISTORY_MEDIA
WHERE History_ID IN (#FORM.pHistory#)
Jochem
Jochem van Dieten
Adobe Community Expert for ColdFusion -
Syntax error in field definition
Hello,
Does java sun default driver support data type BLOB? I need create a table name PERSONS, and then store it to Access Database. But, every time when I run the program, it shows the following message:
SQLException: [Microsoft] [ODBC Microsoft Access Driver]
Syntax error in field definition.
Below are the code, does any one have any idea about the problem?
import java.sql.*;
public class CreatePersons {
public static void main(String args[]) {
String url = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=Database\\DB1.mdb";
Connection con;
String createString;
Statement stmt = null;
createString = "create table PERSONS " +
"(PersonName VARCHAR (20) NOT NULL, " +
"PersonPicture BLOB (64K) NOT NULL," +
"PRIMARY KEY( PersonName )" +
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
} catch(java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
try {
con = DriverManager.getConnection(url,
stmt = con.createStatement();
stmt.executeUpdate(createString);
stmt.close();
con.close();
} catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
Thanks,
DanielIt doesn't have anything to do with the java driver.
You are passing DDL. That goes directly to the MS Access interface (the ODBC driver and the supporting dlls.)
There are two possibilities.
- The ODBC driver (and support) does not allow you to create blobs.
- The syntax you are using is wrong (this would be my guess.)
For the second case you might try creating the table in Acces, then use tools->analyze->documentor to produce the SQL description for that table. Whatever it produces is probably the output that it expects. -
Hi all,
I am able to INSERT and SELECT records from FoxPRo database successfully.
The driver is Sun JDBC-ODBC bridge
The DELETE statement throws no exception.
I've tried to execute PACK after the DELETE call and got following exception:
java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]File must be opened exclusively.So I tried USE MYTABLE EXCLUSIVE in a Statement before calling PACK and got the exception:
java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]Syntax error or access violationI've also tried inserting the USE MYTABLE EXCLUSIVE before calling DELETE but got the same exception above.
The ODBC DSN for MYTABLE is setup as:
- Free Tables (not database)
- Null (checked)
- Deleted (checked)
- Fetch data in background (checked)
I am not able to issue any of the following commands to FoxPro using java
OPEN - To open a table
CLOSE - To close a table
USE - To open a table for uer either in exclusive mode or shared mode
The exception being generated is :
java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]Syntax error or access violationThe help file of the Microsoft Visual Foxpro Driver states that the driver has support for the above commands.I a not able to get the way to issue the above commands to the driver using java.
In setting up the ODBC DSN I saw no "read only" setting.
In the Visual Foxpro table, I saw no READ ONLY settings.And also, there are no delete permission grants and there is no user database sesssion concept.
I've tried all of the above with DSN mapped to a database(NOT free tables) and setting AUTO-COMMIT OFF and AUTO-COMMIT ON.But in vain. The same exceptions as those stated above persisted.
Environment:
Microsoft Windows XP Professional
JDK version "1.4.2_09"
Microsoft Visual Foxpro 06.00.8167
Microsoft Visual Foxpro Driver 6.01.8629.01
Don't know what else to try.
Can anybody please help me.
Thanks in advance
Archanajava.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]File must be opened exclusively.
In the Visual Foxpro table, I saw no READ ONLY settings.And also, there are
no delete permission grants and there is no user database sesssion concept.
The ODBC DSN for MYTABLE is setup as:
- Free Tables (not database)
- Null (checked)
- Deleted (checked)If you're using Visual Foxpro database(.DBC), you should see "Exclusive" option too. You can try check it, but I don't know whether your issue will disappear. -
I tried putting the square brackets and still get the same error. endasil suggested that the last value being inserted is not looking at the java code. I had earlier put +array. Now I replaced that with +a where a is a string representation of array elements. I still ahve a problem. How can I represent the array element in the query?
String insertCommand = "INSERT into MetricOutput([A1],[A],[DRR],[DeRR],[RE],[WDRR],[WDeRR],[WRE],[ARF],[SRF],[HRF],[WARF],[WSRF],[WHRF],[SDC],[WSDC],[MAR],[WMAR],[H1],[H11],[H2],[H21],[Cluster]) "+
"VALUES("+comMappedCount+","+stdCount+","+DRR+","+DeRR+","+RE+","+WDRR+","+WDeRR+","+WRE+","+ARF+","+SRF+","+HRF+","+WARF+","+WSRF+","+WHRF+","+SDC+","+WSDC+","+MAR+","+WMAR+","+H1+","+H11+","+H2+","+H21+",+a)";It's quite hard to spot without code tags, but aren't you missing some quotes here:
+",+a)"; instead of +","+a+")";I also don't know the Access sql syntax at all, but I am wondering if you don't need to surround all those arguments with single quotes. To avoid these kind of syntax errors in sql: use PreparedStatement. For more on this: http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html -
I received the following error when I gave the following statement in select:
case when {fn_year(FINANCE_PERIOD.FP_START)} @prompt('Enter Year','N',,mono,free)
then 1 else 0
end
Parse failed: Exception: DBD, [Microsoft][ODBC SQL Server Driver] Syntax Error or access violationState: 42000
I looked at differnt forums but could not fnd the error.Sams Latin
then try this:
CASE
WHEN YEAR(FINANCE_PERIOD.FP_START) = @Prompt('Enter Year','N',here give class/object or LOV's,mono,free) THEN 1 ELSE 0
END
Note: In case of Date , you can make it blank (3rd parameter), which gives you calendar at runtime.
I suggest you try it in step by step like:
>> @Prompt('Enter Year','N',here give class/object or LOV's,mono,free)
Parse it, succeed. Then
>> YEAR(FINANCE_PERIOD.FP_START)
Parse it, then
for each case see LOV's.
>> at last, try above CASE WHEN
Hope it solves you.
I'm Back
Merry Christmas -
Can anyone help me with error message regarding ODBC Microsoft access driver?
In
Photoshop elemants 5 I am getting the following message when I try to add or delete pictures.
the OBDC data source reported the following error
(Microsoft) (ODBC Microsoft access driver)
cannot open data base 'I'
It may not be a data base that your application recognizes or the file may be corrupt.
I have been using this program for about 2 years and have not changed anything.
Can anyone direct me how to fix this??THANKS YOU SO MUCH.......IT WORKED!!!
"He that hath knowledge spares his words"
Proverbs 17:27 -
ODBC Microsoft Access Driver Error
Help! I'm a novice. I have PSE3.0 installed on my laptop (HP Pavillion) which has the Windows XP operating system. It has been working ok for a couple of years and is now causing problems. I was able to import scaned items and photos from files on my hard drive. A couple of days ago, when I tried to do that, I received the following message "[Microsoft [ODBC Microsoft Access Driver] cannot open database]. It may not be a datbase that your application recognizes or the file may be corrupt." I was also not able to import photos directly from my camera chip. Is this an Adobe problem or a MS problem? Any suggestions as to how to fix? Thanks. Hank
Hello Barb,
Thanks for your suggestion. Unfortunately that didn't work. When I clicked on "recover" it appeared to go to 66% and then the computer froze up. I had to do a "hard" shutdown.
I've done a defrag which the system told me was not necessary. That didn't help. I have approx 50% of free space on my hard drive. So I don't think space is an issue.
For the past few months both the HP photo package and Adobe have been opening when I download photos from my camera. Is it possible that the two programs are somehow interferring with each other. On my last download, the photos wouldn't download to PSE3 and i received the ODBC error message. The photos did download to the HP program.
I also tried to reinstall the PSE3 program but I received a message that said I currently have a more recent version of Adobe (I suspect that is a reference to the Adobe Reader program) and terminated the installation.
I'm open to any suggestions. Thanks Hank -
Help with [Microsoft][ODBC Microsoft Access Driver]Error in row
hi all,
it seems i have the same problem updating a field in access database here is what my access table has:
a field called userID of type String in Access 2000 on XP.
i wrote the following code in java using Eclipse 3.1.1 ( latest) to update that field:
String database= "jdbc:odbc:Driver={Microsoft Access Driver(*.mdb)};DBQ=";
String url= database + filename.trim() + ";DriverID=22;READONLY=true}";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con= DriverManager.getConnection( url,"","");
con.setAutoCommit(false);
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
stmt.executeQuery("SELECT Users.* FROM Users");
ResultSet rs = stmt.getResultSet();
rs.moveToInsertRow();
rs.updateInt(1,"test");
rs.updateRow();
con.commit();
rs.close();
stmt.close()
con.close();
i get this error :[Microsoft][ODBC Driver Manager] Invalid cursor state
if i use the same code with using re.next(); before rs.moveToInsertRow(); i get [Microsoft][ODBC Microsoft Access Driver]Error in row
i get the errors right at : rs.updateRow();
i dont know what exactly the problem is. why doesnt it get updated and complain about it.
plz helpI'm not sure which JDBC driver you are using.
An access database, by default, has a username and
password as "admin" and "" (ie, empty password).
Actually MS Access has two methods for security. You
are referring to one of them.
If the password of admin is changed, you have to
provide the name of the workgroup information file
also( where it is stored) for making a connection.
I am not sure about the ODBC bridge driver. What iam
using is Atinav's aveConnet JDBC driver. It has
provision for giving username and passwords through
Workgroup information file. In addition to it youcan
give the database password also.
Interesting to note. The bridge for MS Access does
not use that security method. And it will fail if you
set up security using the groups/users adminstration.
The only method it allows is via the "database
password" method.Thank you for your response, but what User ID should I use when I use database password?
openConnection(URL,"xxxx","database password")
thanks again
David Ling -
I am having a problem inserting/updateing date field of MS Access database with JDBC. I have tried several solutions. Serveral Field formats in the db and several methods with java. I will post my most recent attempt. I can read from the database I just can't write the date to the db, though I can write to any other field with a different datatype.
Please don't bash me for using MS Access, it is my only option.
Error: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Error in row
if (rs != null){
while ( rs.next() ) {
Date tDate;
//Timestamp tDate;
//String tDate;
tDate = rs.getDate("Week");
//tDate = rs.getTimestamp("Week");
//tDate = rs.getString("Week");
java.sql.Date sqlDate = new java.sql.Date( Date.getTime() );
//java.sql.Timestamp sqlDate = new java.sql.Timestamp( tDate.getTime()
System.out.println("Date: " + tDate );
//System.out.println("Date: " + sqlDate );
//System.out.println("Date: " + rs.getDate ("Date") );
// 2004-03-24 00:00:00.0 this is Timestamp output
Cpu.moveToInsertRow();
Cpu.updateDate("Date_Col",sqlDate );
//Cpu.updateDate("Date_Col",tDate );
//Cpu.updateTimestamp("Date_Col", sqlDate);
Cpu.insertRow();
Error: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Error in row
Please help..........I can insert a new row and add all the fields (includeing date (as string)), but I have to use SQL statements. I cannot get the result set functions to work.
I can retieve a rs just fine and print all the contents of the rs.
My problem is with rs.updateRow();
my code is below,
public class Cpu_Load_Total_Cpu{
public static void main(String[] args){
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String filename = "C:/dev/SHC/Cpu_Java/CFS_Health.mdb";
String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
database+= filename.trim() + ";DriverID=22;READONLY=false}";
Connection con = DriverManager.getConnection( database ,"","");
Statement stmt = con.createStatement(
ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE);
ResultSet Cpu = stmt.executeQuery("SELECT * FROM Cpu");
if (Cpu != null){
while ( Cpu.next() ) {
int tUsr, tSys, tWio, tIdle, tTotal_Cpu;
tUsr = Cpu.getInt("Usr");
tSys = Cpu.getInt("Sys");
tWio = Cpu.getInt("Wio");
tIdle = 100 - (tSys + tUsr + tWio);
tTotal_Cpu = tSys + tUsr + tWio;
Cpu.updateLong(8, tTotal_Cpu);
//or Cpu.updateLong("Total_Cpu", tTotal_Cpu);
// I get the same error as the post above
// when I include the Cpu.updateRow(); call
Cpu.updateRow();
// when excluded everything else runs fine, but
// the db is not updated
// as stated, everything prints to the screen or pipe when
// updateRow is excluded
System.out.println("Usr: " + tUsr );
System.out.println("Sys: " + tSys );
System.out.println("Wio: " + tWio);
System.out.println("Total_Cpu: " + tTotal_Cpu);
con.commit();
stmt.close();
con.close();
catch (Exception e) {
System.out.println("Error: " + e);
} -
Error: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
I am getting above error in my sql to access database. The program works fine if I remove where clause. But I need where clause for my prgoram. Actually, I am trying to work on user management aspect and it won't allow me to do.
String query = "select * from user where username="+name; s.execute(query);Thanks for the reply. Do you mean
Can you please further explain. I have a value against which querry is run. Say that value is stored in
String value; (stores the user names as string)
and then i create a querry like
String query = "select * from user where name= 'value'";
s.execute(query);
in above query
user is table name
name is a field which stores usersname.
if I put 'value' it does not work but i put actual names 'xxx' it works. But I cannot put actual names here. -
PSE 5.0 - ODBC Microsoft Access Driver error
I've been using PSE 5.0 for several years now without major difficulties -- until I burned a CD of personal photos downloaded onto my laptop, and then downloaded them to my desktop. Ever since then, whenever attempting to edit or delete a photo on my desktop, I get the following error message:
The OBDC data source reported the following error: "[Microsoft][ODBC Microsoft Access Driver] Invalid argument."
Also, hundreds of my Organizer photos simultanously became disconnected when this error message began.
I've tried several fixes, incl. uninstalling PSE 5.0 and then reinstalling it. No luck. I'm hardly a computer expert and am clueless about what could have happened, and what I need to do next. Help, please!
PSE 5.0 continues to work perfectly on my laptop, btw.Can't help, but you may search for Microsoft error message help at
http://search.microsoft.com/search.aspx?mkt=en-US&setlang=en-US
Maybe you are looking for
-
Transfer itunes library from my powerbook G4 to new iMac?
Hi, Just today I received my brand new 24" iMac, I used setup assistant to transfer the files from my powerbook G4 to the new iMac ( I use an external hard drive connected to my laptop where all the music is located ) and everything seem to transfer
-
Looking for a client to access arch bbs
I find reading the arch forums on bbs.archlinux.org using firefox cumbersome and slow. Is there a command line client out there, i.e. ncurses-based, which will allow me to browse the bbs more quickly and efficiently?
-
Do I have to reinstall my printer?
I did a disk repair thru utilities and now I cannot open text files or do any printing. Do I have to reinstall the printer? It is listed in system preferences.
-
Transformation with xslt.
hi, I have a simple problem which I don't remember how to extract the required information from the XML document. for example, <AA> <fish> <brand>catfish</brand> <brand>goldfish</brand> </fish> <blob> <A>a1</A> <B>b1</B> </blob> <AA> how do I write a
-
P1005 can't print, no errors.
The printer: A HP P1005, directly connected to the iMac via USB (no hub). This worked up until a couple weeks ago. Printer is visible in System Profiler. Symptoms: Printer is "ready". Then printer is "in use" and "printing." Nothing ever comes out. J