Petstore install problem on Derby and Mysql (Linux) - Upper case table name

Hi
I seem to have a problem which may also be at the heart of many threads here - the tables are created in lower case yet referenced in UPPER CASE.
If the DB is case sensitive, the tables arent found.
does anyone have an UPPER CASED VERSION OF THE SETUP SCRIPT ????
1) setup/sql/javadb/petstore.sql contains all table and field names in lower case
in Netbeans look under ServerResources/sql
i.e.
create table tag(
tagid INTEGER NOT NULL,
tag VARCHAR(30) NOT NULL,
refcount INTEGER NOT NULL,
primary key (tagid),
unique(tag)
2) the petstore app tries to access using CAPITALISED NAMES
i.e.
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: org.apache.derby.client.am.SqlException: Schema 'PETSTORE' does not existError Code: -1
Call:SELECT TAGID, REFCOUNT, TAG FROM TAG ORDER BY REFCOUNT DESC, TAG ASC
Query:ReportQuery(com.sun.javaee.blueprints.petstore.model.Tag)
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:303)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:551)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
3) In mysql, the table names are .......
mysql> describe tag;
--------------------------------------------------+
| Field | Type | Null | Key | Default | Extra |
--------------------------------------------------+
| tagid | int(11) | NO | PRI | | |
| tag | varchar(30) | NO | UNI | | |
| refcount | int(11) | NO | | | |
--------------------------------------------------+
3 rows in set (0.02 sec)
I HATE DBAs THAT ONLY KNOW HOW TO SHOUT :-)
chris

Here is a replacement of the offender - have fun
create table CATEGORY(
CATEGORYID VARCHAR(10) NOT NULL,
NAME VARCHAR(25) NOT NULL,
DESCRIPTION VARCHAR(255) NOT NULL,
IMAGEURL VARCHAR(55),
primary key (CATEGORYID)
CREATE TABLE PRODUCT (
PRODUCTID VARCHAR(10) NOT NULL,
CATEGORYID VARCHAR(10) NOT NULL,
NAME VARCHAR(25) NOT NULL,
DESCRIPTION VARCHAR(255) NOT NULL,
IMAGEURL VARCHAR(55),
primary key (PRODUCTID),
foreign key (CATEGORYID) references CATEGORY(CATEGORYID)
CREATE TABLE ADDRESS (
ADDRESSID VARCHAR(10) NOT NULL,
STREET1 VARCHAR(55) NOT NULL,
STREET2 VARCHAR(55),
CITY VARCHAR(55) NOT NULL,
STATE VARCHAR(25) NOT NULL,
ZIP VARCHAR(5) NOT NULL,
LATITUDE DECIMAL(14,10) NOT NULL,
LONGITUDE DECIMAL(14,10) NOT NULL,
primary key (ADDRESSID)
CREATE TABLE SELLERCONTACTINFO (
CONTACTINFOID VARCHAR(10) NOT NULL,
LASTNAME VARCHAR(24) NOT NULL,
FIRSTNAME VARCHAR(24) NOT NULL,
EMAIL VARCHAR(24) NOT NULL,
primary key (CONTACTINFOID)
CREATE TABLE ITEM (
ITEMID VARCHAR(10) NOT NULL,
PRODUCTID VARCHAR(10) NOT NULL,
NAME VARCHAR(30) NOT NULL,
DESCRIPTION VARCHAR(500) NOT NULL,
IMAGEURL VARCHAR(55),
IMAGETHUMBURL VARCHAR(55),
PRICE DECIMAL(14,2) NOT NULL,
ADDRESS_ADDRESSID VARCHAR(10) NOT NULL,
CONTACTINFO_CONTACTINFOID VARCHAR(10) NOT NULL,
TOTALSCORE INTEGER NOT NULL,
NUMBEROFVOTES INTEGER NOT NULL,
DISABLED INTEGER NOT NULL,
primary key (ITEMID),
foreign key (ADDRESS_ADDRESSID) references ADDRESS(ADDRESSID),
foreign key (PRODUCTID) references PRODUCT(PRODUCTID),
foreign key (CONTACTINFO_CONTACTINFOID) references SELLERCONTACTINFO(CONTACTINFOID)
CREATE TABLE ID_GEN (
GEN_KEY VARCHAR(20) NOT NULL,
GEN_VALUE INTEGER NOT NULL,
primary key (GEN_KEY)
CREATE TABLE ZIPLOCATION (
ZIPCODE INTEGER NOT NULL,
CITY VARCHAR(30) NOT NULL,
STATE VARCHAR(2) NOT NULL,
primary key (ZIPCODE)
create table TAG(
TAGID INTEGER NOT NULL,
TAG VARCHAR(30) NOT NULL,
REFCOUNT INTEGER NOT NULL,
primary key (TAGID),
unique(TAG)
create table TAG_ITEM(
TAGID INTEGER NOT NULL,
ITEMID VARCHAR(10) NOT NULL,
unique(TAGid, ITEMID),
foreign key (ITEMID) references ITEM(ITEMID),
foreign key (TAGID) references TAG(TAGID)
INSERT INTO CATEGORY VALUES('CATS', 'Cats', 'Loving and finicky friends', 'cats_icon.gif');
INSERT INTO CATEGORY VALUES('DOGS', 'Dogs', 'Loving and furry friends', 'dogs_icon.gif');
INSERT INTO CATEGORY VALUES('BIRDS', 'Birds', 'Loving and feathery friends', 'birds_icon.gif');
INSERT INTO CATEGORY VALUES('REPTILES', 'Reptiles', 'Loving and scaly friends', 'reptiles_icon.gif');
INSERT INTO CATEGORY VALUES('FISH', 'Fish', 'Loving aquatic friends', 'fish_icon.gif');
INSERT INTO PRODUCT VALUES('feline01', 'CATS', 'Hairy Cat', 'Great for reducing mouse populations', 'cat1.gif');
INSERT INTO PRODUCT VALUES('feline02', 'CATS', 'Groomed Cat', 'Friendly house cat keeps you away from the vacuum', 'cat2.gif');
INSERT INTO PRODUCT VALUES('canine01', 'DOGS', 'Medium Dogs', 'Friendly dog from England', 'dog1.gif');
INSERT INTO PRODUCT VALUES('canine02', 'DOGS', 'Small Dogs', 'Great companion dog to sit on your lap','dog2.gif');
INSERT INTO PRODUCT VALUES('avian01', 'BIRDS', 'Parrot', 'Friend for a lifetime.', 'bird1.gif');
INSERT INTO PRODUCT VALUES('avian02', 'BIRDS', 'Exotic', 'Impress your friends with your colorful friend.','bird2.gif');
INSERT INTO PRODUCT VALUES('fish01', 'FISH', 'Small Fish', 'Fits nicely in a small aquarium.','fish2.gif');
INSERT INTO PRODUCT VALUES('fish02', 'FISH', 'Large Fish', 'Need a large aquarium.','fish3.gif');
INSERT INTO PRODUCT VALUES('reptile01', 'REPTILES', 'Slithering Reptiles', 'Slides across the floor.','lizard1.gif');
INSERT INTO PRODUCT VALUES('reptile02', 'REPTILES', 'Crawling Reptiles', 'Uses legs to move fast.','lizard2.gif');
INSERT INTO ADDRESS VALUES('1', 'W el Camino Real & Castro St', '', 'Mountain View','CA','94040',37.38574,-122.083973);
INSERT INTO ADDRESS VALUES('2', 'Shell Blvd & Beach Park Blvd', '', 'Foster CITY','CA','94404',37.546935,-122.263978);
INSERT INTO ADDRESS VALUES('3', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
INSERT INTO ADDRESS VALUES('4', 'S 1st St & W Santa Clara St', '', 'San Jose','CA','95113',37.336141,-121.890666);
INSERT INTO ADDRESS VALUES('5', '1st St & Market St ', '', 'San Francisco','CA','94105',37.791028,-122.399082);
INSERT INTO ADDRESS VALUES('6', 'Paseo Padre Pky & Fremont Blvd', '', 'Fremont','CA','94555',37.575035,-122.041273);
INSERT INTO ADDRESS VALUES('7', 'W el Camino Real & S Mary Ave', '', 'Sunnyvale','CA','94087',37.371641,-122.048772);
INSERT INTO ADDRESS VALUES('8', 'Bay STREET and Columbus Ave ', '', 'San Francisco','CA','94133',37.805328,-122.416882);
INSERT INTO ADDRESS VALUES('9', 'El Camino Real & Scott Blvd', '', 'Santa Clara','CA','95050',37.352141 ,-121.959569);
INSERT INTO ADDRESS VALUES('10', 'W el Camino Real & Hollenbeck Ave', '', 'Sunnyvale','CA','94087',37.369941,-122.041271);
INSERT INTO ADDRESS VALUES('11', 'S Main St & Serra Way', '', 'Milpitas','CA','95035',37.428112,-121.906505);
INSERT INTO ADDRESS VALUES('12', 'Great Mall Pky & S Main St', '', 'Milpitas','CA','95035',37.414722,-121.902085);
INSERT INTO ADDRESS VALUES('13', 'Valencia St & 16th St', '', 'San Francisco','CA','94103',37.764985,-122.421886);
INSERT INTO ADDRESS VALUES('14', 'S 1st St & W Santa Clara St', '', 'San Jose','CA','95113',37.336141,-121.890666);
INSERT INTO ADDRESS VALUES('15', 'Bay STREET and Columbus Ave ', '', 'San Francisco','CA','94133',37.805328,-122.416882);
INSERT INTO ADDRESS VALUES('16', 'El Camino Real & Scott Blvd', '', 'Santa Clara','CA','95050',37.352141 ,-121.959569);
INSERT INTO ADDRESS VALUES('17', 'Millbrae Ave & Willow Ave', '', 'Millbrae ','CA','94030',37.596635,-122.391083);
INSERT INTO ADDRESS VALUES('18', 'Leavesley Rd & Monterey Rd', '', 'Gilroy','CA','95020',37.019447,-121.574953);
INSERT INTO ADDRESS VALUES('19', 'S Main St & Serra Way', '', 'Milpitas','CA','95035',37.428112,-121.906505);
INSERT INTO ADDRESS VALUES('20', '24th St & Dolores St', '', 'San Francisco','CA','94114',37.75183,-122.424982);
INSERT INTO ADDRESS VALUES('21', 'Great Mall Pky & S Main St', '', 'Milpitas','CA','95035',37.414722,-121.902085);
INSERT INTO ADDRESS VALUES('22', 'Grant Rd & South Dr ', '', 'Mountain view','CA','94040',37.366941,-122.078073);
INSERT INTO ADDRESS VALUES('23', '25th St & Dolores St', '', 'San Francisco','CA','94114',37.75013,-122.424782);
INSERT INTO ADDRESS VALUES('24', 'Ellis St & National Ave', '', 'Mountain view','CA','94043',37.40094,-122.052272);
INSERT INTO ADDRESS VALUES('25', '1st St & Market St ', '', 'San Francisco','CA','94105',37.791028,-122.399082);
INSERT INTO ADDRESS VALUES('26', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
INSERT INTO ADDRESS VALUES('27', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
INSERT INTO ADDRESS VALUES('28', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
INSERT INTO ADDRESS VALUES('29', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
INSERT INTO ADDRESS VALUES('30', 'Leavesley Rd & Monterey Rd', '', 'Gilroy','CA','95020',37.019447,-121.574953);
INSERT INTO ADDRESS VALUES('31', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
INSERT INTO ADDRESS VALUES('32', 'Millbrae Ave & Willow Ave', '', 'Millbrae ','CA','94030',37.596635,-122.391083);
INSERT INTO ADDRESS VALUES('33', 'Cesar Chavez St & Sanchez', '', 'San Francisco','CA','94131',37.74753,-122.428982);
INSERT INTO ADDRESS VALUES('34', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
INSERT INTO ADDRESS VALUES('35', 'Bay STREET and Columbus Ave ', '', 'San Francisco','CA','94133',37.805328,-122.416882);
INSERT INTO ADDRESS VALUES('36', 'Telegraph Ave & Bancroft Way', '', 'Berkeley','CA','94704',37.868825,-122.25978);
INSERT INTO ADDRESS VALUES('37', '1st St & Market St ', '', 'San Francisco','CA','94105',37.791028,-122.399082);
INSERT INTO ADDRESS VALUES('38', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
INSERT INTO ADDRESS VALUES('39', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
INSERT INTO ADDRESS VALUES('40', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
INSERT INTO ADDRESS VALUES('41', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
INSERT INTO ADDRESS VALUES('42', '4th St & Howard St', '', 'San Francisco','CA','94103',37.783229,-122.402582);
INSERT INTO ADDRESS VALUES('43', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
INSERT INTO ADDRESS VALUES('44', 'Campbell St & Riverside Ave', '', 'Santa Cruz','CA','95060',36.96985,-122.019473);
INSERT INTO ADDRESS VALUES('45', 'Cesar Chavez St & Sanchez', '', 'San Francisco','CA','94131',37.74753,-122.428982);
INSERT INTO ADDRESS VALUES('46', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
INSERT INTO ADDRESS VALUES('47', 'W el Camino Real & S Mary Ave', '', 'Sunnyvale','CA','94087',37.371641,-122.048772);
INSERT INTO ADDRESS VALUES('48', 'Telegraph Ave & Bancroft Way', '', 'Berkeley','CA','94704',37.868825,-122.25978);
INSERT INTO ADDRESS VALUES('49', '1st St & Market St ', '', 'San Francisco','CA','94105',37.791028,-122.399082);
INSERT INTO ADDRESS VALUES('50', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
INSERT INTO ADDRESS VALUES('51', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
INSERT INTO ADDRESS VALUES('52', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
INSERT INTO ADDRESS VALUES('53', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
INSERT INTO ADDRESS VALUES('54', '4th St & Howard St', '', 'San Francisco','CA','94103',37.783229,-122.402582);
INSERT INTO ADDRESS VALUES('55', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
INSERT INTO ADDRESS VALUES('56', 'W el Camino Real & S Mary Ave', '', 'Sunnyvale','CA','94087',37.371641,-122.048772);
INSERT INTO ADDRESS VALUES('57', 'Campbell St & Riverside Ave', '', 'Santa Cruz','CA','95060',36.96985,-122.019473);
INSERT INTO ADDRESS VALUES('58', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
INSERT INTO ADDRESS VALUES('59', 'Bay STREET and Columbus Ave ', '', 'San Francisco','CA','94133',37.805328,-122.416882);
INSERT INTO ADDRESS VALUES('60', 'Telegraph Ave & Bancroft Way', '', 'Berkeley','CA','94704',37.868825,-122.25978);
INSERT INTO ADDRESS VALUES('61', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
INSERT INTO ADDRESS VALUES('62', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
INSERT INTO ADDRESS VALUES('63', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
INSERT INTO ADDRESS VALUES('64', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
INSERT INTO ADDRESS VALUES('65', 'W el Camino Real & S Mary Ave', '', 'Sunnyvale','CA','94087',37.371641,-122.048772);
INSERT INTO ADDRESS VALUES('66', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
INSERT INTO ADDRESS VALUES('67', 'Millbrae Ave & Willow Ave', '', 'Millbrae ','CA','94030',37.596635,-122.391083);
INSERT INTO ADDRESS VALUES('68', 'Cesar Chavez St & Sanchez', '', 'San Francisco','CA','94131',37.74753,-122.428982);
INSERT INTO ADDRESS VALUES('69', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
INSERT INTO ADDRESS VALUES('70', 'Bay STREET and Columbus Ave ', '', 'San Francisco','CA','94133',37.805328,-122.416882);
INSERT INTO ADDRESS VALUES('71', 'Leavesley Rd & Monterey Rd', '', 'Gilroy','CA','95020',37.019447,-121.574953);
INSERT INTO ADDRESS VALUES('72', 'Campbell St & Riverside Ave', '', 'Santa Cruz','CA','95060',36.96985,-122.019473);
INSERT INTO ADDRESS VALUES('73', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
INSERT INTO ADDRESS VALUES('74', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
INSERT INTO ADDRESS VALUES('75', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
INSERT INTO ADDRESS VALUES('76', '4th St & Howard St', '', 'San Francisco','CA','94103',37.783229,-122.402582);
INSERT INTO ADDRESS VALUES('77', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
INSERT INTO ADDRESS VALUES('78', 'Millbrae Ave & Willow Ave', '', 'Millbrae ','CA','94030',37.596635,-122.391083);
INSERT INTO ADDRESS VALUES('79', 'Campbell St & Riverside Ave', '', 'Santa Cruz','CA','95060',36.96985,-122.019473);
INSERT INTO ADDRESS VALUES('80', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
INSERT INTO ADDRESS VALUES('81', 'Grant Rd & South Dr ', '', 'Mountain view','CA','94040',37.366941,-122.078073);
INSERT INTO ADDRESS VALUES('82', 'Telegraph Ave & Bancroft Way', '', 'Berkeley','CA','94704',37.868825,-122.25978);
INSERT INTO ADDRESS VALUES('83', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
INSERT INTO ADDRESS VALUES('84', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
INSERT INTO ADDRESS VALUES('85', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
INSERT INTO ADDRESS VALUES('86', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
INSERT INTO ADDRESS VALUES('87', '4th St & Howard St', '', 'San Francisco','CA','94103',37.783229,-122.402582);
INSERT INTO ADDRESS VALUES('88', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
INSERT INTO ADDRESS VALUES('89', 'Millbrae Ave & Willow Ave', '', 'Millbrae ','CA','94030',37.596635,-122.391083);
INSERT INTO ADDRESS VALUES('90', 'Paseo Padre Pky & Fremont Blvd', '', 'Fremont','CA','94555',37.575035,-122.041273);
INSERT INTO ADDRESS VALUES('91', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
INSERT INTO ADDRESS VALUES('92', 'El Camino Real & Scott Blvd', '', 'Santa Clara','CA','95050',37.352141 ,-121.959569);
INSERT INTO ADDRESS VALUES('93', 'Telegraph Ave & Bancroft Way', '', 'Berkeley','CA','94704',37.868825,-122.25978);
INSERT INTO ADDRESS VALUES('94', 'San Antonio Rd & Middlefield Rd', '', 'Palo Alto','CA','94303',37.416239,-122.103474);
INSERT INTO ADDRESS VALUES('95', '20th St & Dolores St', '', 'San Francisco','CA','94114',37.75823,-122.425582);
INSERT INTO ADDRESS VALUES('96', 'River Oaks Pky & Village Center Dr', '', 'San Jose','CA','95134',37.398259,-121.922367);
INSERT INTO ADDRESS VALUES('97', 'Dolores St & San Jose Ave', '', 'San Francisco','CA','94110',37.74023,-122.423782);
INSERT INTO ADDRESS VALUES('98', 'Campbell St & Riverside Ave', '', 'Santa Cruz','CA','95060',36.96985,-122.019473);
INSERT INTO ADDRESS VALUES('99', 'Palm Dr & Arboretum Rd', '', 'Stanford','CA','94305',37.437838,-122.166975);
INSERT INTO ADDRESS VALUES('100', 'Leavesley Rd & Monterey Rd', '', 'Gilroy','CA','95020',37.019447,-121.574953);
INSERT INTO ADDRESS VALUES('101', 'Cesar Chavez St & Sanchez', '', 'San Francisco','CA','94131',37.74753,-122.428982);
INSERT INTO ADDRESS VALUES('102', 'University Ave & Middlefield Rd', '', 'Palo Alto','CA','94301',37.450638,-122.156975);
INSERT INTO SELLERCONTACTINFO VALUES('1', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('2', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('3', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('4', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('5', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('6', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('7', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('8', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('9', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('10', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('11', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('12', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('13', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('14', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('15', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('16', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('17', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('18', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('19', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('20', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('21', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('22', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('23', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('24', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('25', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('26', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('27', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('28', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('29', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('30', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('31', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('32', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('33', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('34', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('35', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('36', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('37', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('38', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('39', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('40', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('41', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('42', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('43', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('44', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('45', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('46', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('47', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('48', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('49', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('50', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('51', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('52', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('53', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('54', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('55', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('56', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('57', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('58', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('59', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('60', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('61', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('62', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('63', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('64', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('65', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('66', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('67', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('68', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('69', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('70', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('71', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('72', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('73', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('74', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('75', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('76', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('77', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('78', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('79', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('80', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('81', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('82', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('83', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('84', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('85', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('86', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('87', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('88', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('89', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('90', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('91', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('92', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('93', 'Basler', 'Mark', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('94', 'Yoshida', 'Yutaka', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('95', 'Kangath', 'Smitha', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('96', 'Freeman', 'Larry', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('97', 'Kaul', 'Jeet', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('98', 'Burns', 'Ed', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('99', 'McClanahan', 'Craig', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('100', 'Murray', 'Greg', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('101', 'Brydon', 'Sean', '[email protected]');
INSERT INTO SELLERCONTACTINFO VALUES('102', 'Singh', 'Inderjeet', '[email protected]');
INSERT INTO ITEM VALUES('1', 'feline01', 'Friendly Cat', 'This black and white colored cat is super friendly. Anyone passing by your front yard will find him puring at their feet and trying to make a new friend. His NAME is Anthony, but I call him Ant as a nickNAME since he loves to eat ants and other insects.', 'images/anthony.jpg','images/anthony-s.jpg', 307.10,'1','1', 15, 3, 0);
INSERT INTO ITEM VALUES('2', 'feline01', 'Fluffy Cat', 'A great pet for a hair stylist! Have fun combing Bailey''s silver mane. Maybe trim his whiskers? He is very patient and loves to be pampered.', 'images/bailey.jpg','images/bailey-s.jpg', 307,'2','2', 15, 5, 0);
INSERT INTO ITEM VALUES('3', 'feline02', 'Sneaky Cat', 'My cat is so sneaky. He is so curious that he just has to poke his nose into everything going on in the house. Everytime I turn around, BAM, he is in the room peaking at what I am doing. Nothing escapes his keen eye. He should be a spy in the CIA!', 'images/bob.jpg','images/bob-s.jpg', 307.20,'3','3', 15, 7, 0);
INSERT INTO ITEM VALUES('4', 'feline02', 'Lazy Cat', 'A great pet to lounge on the sofa with. If you want a friend to watch TV with, this is the cat for you. Plus, she wont even ask for the remote! Really, could you ask for a better friend to lounge with?', 'images/chantelle.jpg','images/chantelle-s.jpg', 307.30,'4','4', 15, 5, 0);
INSERT INTO ITEM VALUES('5', 'feline01', 'Old Cat', 'A great old pet retired from duty in the circus. This fully-trained tiger is looking for a place to retire. Loves to roam free and loves to eat other animals.', 'images/charlie.jpg','images/charlie-s.jpg', 307,'5','5', 15, 5, 0);
INSERT INTO ITEM VALUES('6', 'feline02', 'Young Female cat', 'A great young pet to chase around. Loves to play with a ball of string. Bring some instant energy into your home.', 'images/elkie.jpg','images/elkie-s.jpg', 307.40,'6','6', 15, 5, 0);
INSERT INTO ITEM VALUES('7', 'feline01', 'Playful Female Cat', 'A needy pet. This cat refuses to grow up. Do you like playful spirits? I need lots of attention. Please do not leave me alone, not even for a minute.', 'images/faith.jpg','images/faith-s.jpg', 307,'7','7', 15, 5, 0);
INSERT INTO ITEM VALUES('8', 'feline01', 'White Fluffy Cat', 'This fluffy white cat looks like a snowball. Plus, she likes playing outside in the snow and it looks really cool to see this snowball cat run around on the ski slopes. I hope you have white carpet as this cat sheds lots of hair.', 'images/gaetano.jpg','images/gaetano-s.jpg', 307.50,'8','8', 15, 15, 0);
INSERT INTO ITEM VALUES('9', 'feline02', 'Tiger Stripe Cat', 'This little tiger thinks it has big teeth. A great wild pet for an adventurous person. May eat your other pets so be careful- just kidding. This little tiger is affectionate.', 'images/harmony.jpg','images/harmony-s.jpg', 307,'9','9', 15, 3, 0);
INSERT INTO ITEM VALUES('10', 'feline02', 'Alley Cat', 'Meow Meow in the back alley cat fights! This cat keeps the racoons away, but still has class.', 'images/katzen.jpg','images/katzen-s.jpg', 307.60,'10','10', 15, 5, 0);
INSERT INTO ITEM VALUES('11', 'feline02', 'Speedy Cat', 'Fastest and coolest cat in town. If you always wanted to own a cheetah, this cat is even faster and better looking. No dog could ever catch this bolt of lightening.', 'images/mario.jpg','images/mario-s.jpg', 307,'11','11', 15, 10, 0);
INSERT INTO ITEM VALUES('12', 'feline01', 'Stylish Cat', 'A high maintenance cat for an owner with time. This cat needs pampering: comb it hair, brush its teeth, wash its fur, paint its claws. For all you debutantes, let the world know you have arrived in style with this snooty cat in your purse!', 'images/mimi.jpg','images/mimi-s.jpg', 307.70,'12','12', 15, 4, 0);
INSERT INTO ITEM VALUES('13', 'feline01', 'Smelly Cat', 'A great pet with its own song to sing with your fiends. "Smelly cat, Smelly cat ..." Need an excuse for that funky odor in your house? Smelly cat is the answer.', 'images/monique.jpg','images/monique-s.jpg', 307.80,'13','13', 15, 8, 0);
INSERT INTO ITEM VALUES('14', 'feline01', 'Saber Cat', 'A great watch pet. Want to keep your roommates from stealing the beer from your refrigerator? This big-toothed crazy cat is better than a watchdog. Just place him on top of the refrigerator and watch him pounce when so-called friends try to sneak a beer. This cat is great fun at parties.', 'images/olie.jpg','images/olie-s.jpg', 307.90,'14','14', 15, 3, 0);
INSERT INTO ITEM VALUES('15', 'feline01', 'Sophisticated Cat', 'This cat is from Paris. It has a very distinguished history and is looking for a castle to play in. This sophisticated cat has class and taste. No chasing on string, no catnip habits. Only the habits of royalty in this cats blood.', 'images/paris.jpg','images/paris-s.jpg', 307,'15','15', 15, 4, 0);
INSERT INTO ITEM VALUES('16', 'feline01', 'Princess cat', 'Just beauty and elegance. She will charm you from the moment she enters the room.', 'images/princess.jpg','images/princess-s.jpg', 307,'16','16', 15, 5, 0);
INSERT INTO ITEM VALUES('17', 'feline02', 'Lazy cat', 'Wow! This cat is cool. It has a beautiful tan coat. I wish I could get a sun tan of that color.', 'images/simba.jpg','images/simba-s.jpg', 307,'17','17', 15, 3, 0);
INSERT INTO ITEM VALUES('18', 'feline02', 'Scapper male cat', 'A scappy cat that likes to cause trouble. If you are looking for a challenge to your cat training skills, this scapper is the test!', 'images/thaicat.jpg','images/thaicat-s.jpg', 307,'18','18', 15, 5, 0);
INSERT INTO ITEM VALUES('19', 'feline01', 'Lazy cat', 'Buy me please. I love to sleep.', 'images/cat1.gif','images/cat1.gif', 307,'19','19', 15, 6, 0);
INSERT INTO ITEM VALUES('20', 'feline01', 'Old Cat', 'A great old pet retired from duty in the circus. This fully-trained tiger is looking for a place to retire. Loves to roam free and loves to eat other animals.', 'images/cat2.gif','images/cat2.gif', 200,'20','20', 15, 3, 0);
INSERT INTO ITEM VALUES('21', 'feline01', 'Young Cat', 'A great young pet to chase around. Loves to play with a ball of string.', 'images/cat3.gif','images/cat3.gif', 350,'21','21', 15, 3, 0);
INSERT INTO ITEM VALUES('22', 'feline01', 'Scrappy Cat', 'A real trouble-maker in the neighborhood. Looking for some T.L.

Similar Messages

  • Problem with BigInteger and MySql

    Hi !!
    I've a problem with BigInteger and MySql.
    I've a BigInteger object (suppose that value is 0.02270412445068359375).
    I must store that value in a database (MySql).
    The value of BigInteger object must be stored in a column of type Decimal.
    Stored value is 0.022704124450683594. Why ??
    My target is to store 0.02270412445068359375
    Can anyone help me?
    Thanks.

    Hi !!
    I've a problem with BigInteger and MySql.
    I've a BigInteger object (suppose that value is
    0.02270412445068359375).
    I must store that value in a database (MySql).
    The value of BigInteger object must be stored in a
    column of type Decimal.if this is the case I fear you are SOL. a decimal is the same size as a double but with a fixed max number of decimal places. if it isn't big enough then you have no real choice other than to VARCHAR it.
    Stored value is 0.022704124450683594. Why ??
    My target is to store 0.02270412445068359375
    Can anyone help me?
    Thanks.

  • Getting problem while installing Snow Leopard (10.6.3) on my Mac Mini. The following issue is showing :  "mac os x snow leopard cannot be installed on this computer"  And My Mac Configuration details:  Model Name: Mac Mini Model Identifier: Macmini2,1

    Getting problem while installing Snow Leopard (10.6.3) on my Mac Mini. The following issue is showing : 
    "mac os x snow leopard cannot be installed on this computer" 
    And My Mac Configuration details:  Model Name: Mac Mini Model Identifier: Macmini2,1
    Intel Core 2 Duo
    1.83Ghz
    l2Cache: 2mb
    Memory : 2GB
    Bus Speed: 667MHz
    Please help me......
    Thanks

    Actually i have Mac OS X 10.5.4 DVD, I need to upgrade it to Snow Loepard(OS X 10.6)...
    Please suggest me what to do???
    Thanks

  • Problems with PHP and MySQLi server behaviors

    Hi,
    I'm a graphic and Web-designer with some knowledge of PHP and MySQL and I've been using Dreaweaver since very early ages in creating dynamic web projects and use the Bindings and Server behaviors quite a lot. But recently PHP has deprecated MySQL_connect since 2012 and it seems Dreamweaver isnt suporting the alternative MYSQLi server behaviors which will be the future of accessing Databases in MySQL along side with other options. Without this feature Dreamweaver is not of any use to us web-designers, since there are many Free great Editing software out there... Is the Dreamweaver team solving this problem? Or are you really planning on dropping this software? I've been using CS5.5 for a while and was planning on updating but this is a key feature and without it its not worth the investment.
    Kind regards.
    Eddy

    heduino wrote:
    Hi,
    I'm a graphic and Web-designer with some knowledge of PHP and MySQL and I've been using Dreaweaver since very early ages in creating dynamic web projects and use the Bindings and Server behaviors quite a lot. But recently PHP has deprecated MySQL_connect since 2012 and it seems Dreamweaver isnt suporting the alternative MYSQLi server behaviors which will be the future of accessing Databases in MySQL along side with other options. Without this feature Dreamweaver is not of any use to us web-designers, since there are many Free great Editing software out there... Is the Dreamweaver team solving this problem? Or are you really planning on dropping this software? I've been using CS5.5 for a while and was planning on updating but this is a key feature and without it its not worth the investment.
    Kind regards.
    Eddy
    There are no plans that I know of to introduce a new set of mysqli server behaviours into DW from Adobe. They have left that to  thrid party developers to bring out extensions which replace them.
    What the server behaviours could do was very limiting anyway so I suspect any replacement mysqli behaviours would also be very limiting. I personally jumped into thre code and started to write my own mysqli connection files and query strings by watching a few simple tutorials on youtube - it isnt that difficult.
    Look for 'php academy' on youtube - they have about 9 simple to follow tutorials on getting started with mysqli.

  • Problems with JSP and MySql bean.

    Hi,
    I'm new to JSP and I'm having some problems with it. I'm trying to do a simple login where a java class (bean?) handles the SQL injektion. I have deployed the page on tomcat and it works fine, except that the sqlinjektion does basically nothing. I have installed the mysql driver. I think there is something wrong with the java class, or the way im calling it. It does not produce any error. But its like it would never actually process the java code, because ive tried to append things to error string to see what is going on, nothing happens. everything stay null, no exceptions are thrown. If I implement the code to JSP itself, it does load the driver and print exception that there is no connection to database (which is correct). What am I missing? Code follows:
    the sqlhandler:
    public abstract class SqlInjektor {
         private static String Database = "*****";
         private static String serverName = "localhost:3306";
         private static String usrName="******";
         private static String passw="******";
         * @return Connection
         public static Connection createConnection(String error){
              Connection mySqlCon = null;
              try{
                   Class.forName("com.mysql.jdbc.Driver").newInstance();
              catch(Exception E){
                   PrintWriter out = response.getWriter();
                   out.println("lol");
              String url = "jdbc:mysql://" + serverName + "/" + Database + "?user=" + usrName + "&password=" + passw;
              try{
                   mySqlCon = DriverManager.getConnection(url);
              catch (Exception E){
                   E.printStackTrace(System.out);
              return mySqlCon;
         * Metodi saa sy�tteen��n SQL komennon, jonka se suorittaa sek� palauttaa komennon tulokset.
         * @param command
         * @return ResultSet
         public static ResultSet querySQL(String command,String error, Connection con){
              ResultSet rs = null;
              try{
                   Statement stmt = con.createStatement();
                   rs = stmt.executeQuery(command);
              catch(Exception E){
                   E.printStackTrace(System.out);
              return rs;
    the jsp page:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ page isErrorPage="false" %>
    <%@ page import="java.sql.*" %>
    <%@page import="ot3.User"%>
    <%@page import="ot3.SqlInjektor"%>
    <%@page import="Javax.servlet.jsp.*"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>vastaanotto</title>
    </head>
    <body>
    <%!      String id;
         String password;
         String error = new String("Error!\n");
         User user;
    %>
    <%      user = new User();
         session.putValue("currentUser",user);
         id = request.getParameter("authName");
    password = request.getParameter("Password");
         Connection conn=null;
         ResultSet rs=null;
         conn = SqlInjektor.createConnection(error);
         if(conn!=null){
              out.println("conn ok!");
              rs = SqlInjektor.querySQL("SELECT * FROM user WHERE id='" + id +"' AND password='" + password+"' COLLATE latin1_bin;",error,conn);}
         try {
              if (rs!= null && rs.next()){
                   user.setID(rs.getInt("id"));
                   user.setName(rs.getString("name"));
                   user.setPassword(rs.getString("password"));
                   user.setClearance(rs.getInt("clearance"));
                   if(rs.getString("addedby")!=null)
                        user.setAdder(rs.getInt("addedby"));
                   if(rs.getString("lastmodifier")!=null)
                        user.setModifier(rs.getInt("lastmodifier"));
                   rs.close();%>
                   ONNISTU!
              <%}
              else {
                   out.println(error);     
         } catch (SQLException e) {
              out.println(e.getMessage());
         }%>
    </body>
    </html>

    Hi,
    I'm new to JSP and I'm having some problems with it. I'm trying to do a simple login where a java class (bean?) handles the SQL injektion. I have deployed the page on tomcat and it works fine, except that the sqlinjektion does basically nothing. I have installed the mysql driver. I think there is something wrong with the java class, or the way im calling it. It does not produce any error. But its like it would never actually process the java code, because ive tried to append things to error string to see what is going on, nothing happens. everything stay null, no exceptions are thrown. If I implement the code to JSP itself, it does load the driver and print exception that there is no connection to database (which is correct). What am I missing? Code follows:
    the sqlhandler:
    public abstract class SqlInjektor {
         private static String Database = "*****";
         private static String serverName = "localhost:3306";
         private static String usrName="******";
         private static String passw="******";
         * @return Connection
         public static Connection createConnection(String error){
              Connection mySqlCon = null;
              try{
                   Class.forName("com.mysql.jdbc.Driver").newInstance();
              catch(Exception E){
                   PrintWriter out = response.getWriter();
                   out.println("lol");
              String url = "jdbc:mysql://" + serverName + "/" + Database + "?user=" + usrName + "&password=" + passw;
              try{
                   mySqlCon = DriverManager.getConnection(url);
              catch (Exception E){
                   E.printStackTrace(System.out);
              return mySqlCon;
         * Metodi saa sy�tteen��n SQL komennon, jonka se suorittaa sek� palauttaa komennon tulokset.
         * @param command
         * @return ResultSet
         public static ResultSet querySQL(String command,String error, Connection con){
              ResultSet rs = null;
              try{
                   Statement stmt = con.createStatement();
                   rs = stmt.executeQuery(command);
              catch(Exception E){
                   E.printStackTrace(System.out);
              return rs;
    the jsp page:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ page isErrorPage="false" %>
    <%@ page import="java.sql.*" %>
    <%@page import="ot3.User"%>
    <%@page import="ot3.SqlInjektor"%>
    <%@page import="Javax.servlet.jsp.*"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>vastaanotto</title>
    </head>
    <body>
    <%!      String id;
         String password;
         String error = new String("Error!\n");
         User user;
    %>
    <%      user = new User();
         session.putValue("currentUser",user);
         id = request.getParameter("authName");
    password = request.getParameter("Password");
         Connection conn=null;
         ResultSet rs=null;
         conn = SqlInjektor.createConnection(error);
         if(conn!=null){
              out.println("conn ok!");
              rs = SqlInjektor.querySQL("SELECT * FROM user WHERE id='" + id +"' AND password='" + password+"' COLLATE latin1_bin;",error,conn);}
         try {
              if (rs!= null && rs.next()){
                   user.setID(rs.getInt("id"));
                   user.setName(rs.getString("name"));
                   user.setPassword(rs.getString("password"));
                   user.setClearance(rs.getInt("clearance"));
                   if(rs.getString("addedby")!=null)
                        user.setAdder(rs.getInt("addedby"));
                   if(rs.getString("lastmodifier")!=null)
                        user.setModifier(rs.getInt("lastmodifier"));
                   rs.close();%>
                   ONNISTU!
              <%}
              else {
                   out.println(error);     
         } catch (SQLException e) {
              out.println(e.getMessage());
         }%>
    </body>
    </html>

  • [JAVA] problems with java and mysql

    Hi, i have already installed php + mysql and work's them fine, but i want to install java + mysql. I have downloaded eclipse and installed its, that's ok. I have download tomcat and, that's ok. I have download module jconnector and have copied the file .jar in the java home and set classpath. Run and compiled this source that's ok. At runtime the program ask: Impossible connection at the database, why ? It's the source of program:
    [JAVA]
    import java.sql.*;
    public class connessione {
    private String nomeDB; // Nome del Database a cui connettersi
    private String nomeUtente; // Nome utente utilizzato per la connessione al Database
    private String pwdUtente; // Password usata per la connessione al Database
    private String errore; // Raccoglie informazioni riguardo l'ultima eccezione sollevata
    private Connection db; // La connessione col Database
    private boolean connesso; // Flag che indica se la connessione � attiva o meno
    public connessione(String nomeDB) { this(nomeDB, "", ""); }
    public connessione(String nomeDB, String nomeUtente, String pwdUtente) {
    this.nomeDB = nomeDB;
    this.nomeUtente = nomeUtente;
    this.pwdUtente = pwdUtente;
    connesso = false;
    errore = "";
    // Apre la connessione con il Database
    public boolean connetti() {
    connesso = false;
    try {
    // Carico il driver JDBC per la connessione con il database MySQL
    Class.forName("com.mysql.jdbc.Driver");
    // Controllo che il nome del Database non sia nulla
    if (!nomeDB.equals("")) {
    // Controllo se il nome utente va usato o meno per la connessione
    if (nomeUtente.equals("")) {
    // La connessione non richiede nome utente e password
    db = DriverManager.getConnection("jdbc:mysql://localhost/" + nomeDB);
    } else {
    // La connessione richiede nome utente, controllo se necessita anche della password
    if (pwdUtente.equals("")) {
    // La connessione non necessita di password
    db = DriverManager.getConnection("jdbc:mysql://localhost/" + nomeDB + "?user=" + nomeUtente);
    } else {
    // La connessione necessita della password
    db = DriverManager.getConnection("jdbc:mysql://localhost/" + nomeDB + "?user=" + nomeUtente + "&password=" + pwdUtente);
    // La connessione � avvenuta con successo
    connesso = true;
    } else {
    System.out.println("Manca il nome del database!!");
    System.out.println("Scrivere il nome del database da utilizzare all'interno del file \"config.xml\"");
    System.exit(0);
    } catch (Exception e) { errore = e.getMessage(); }
    return connesso;
    public static void main(String [] args) {
    connessione a=new connessione("asta","root","");
    if(a.connetti())
    System.out.println("Connessione al database riuscita");
    else
    System.out.println("Connessione al database non riuscita");
    [JAVA]

    With this line I always pass the username and password also:
    db = DriverManager.getConnection("jdbc:mysql://localhost/" + nomeDB);
    db = DriverManager.getConnection("jdbc:mysql://localhost/" + nomeDB, useName, Password);
    Make sure you create your users in MySQL with the correct permissions

  • Problems with PreparedStatement and MySQL selecting bytes

    Hi,
    i have a problem trying to select information when the "select" has a byte restrict.
    The table in database is:
    CREATE TABLE `positions` (
    `PKID` int(10) unsigned NOT NULL auto_increment,
    `POSCODE` varbinary(30) NOT NULL,
    `ISWTURN` binary(1) NOT NULL,
    `QTT_GAMES` int(10) unsigned NOT NULL default '1',
    PRIMARY KEY (`PKID`),
    UNIQUE KEY `UNIQ_POS` (`POSCODE`,`ISWTURN`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    And the test code to get the qtt_games is :
    conn = DriverManager.getConnection (url,user,pwd);
    byte bcode[] = poscode.getByteArrayCode();
    // bcode is inserted ok in another preparedstatement...
    String query = "SELECT qtt_games FROM positions "+
         "WHERE poscode=? and iswturn=?";
    PreparedStatement pstmt = conn.prepareStatement(query);
    pstmt.setBytes (1,bcode);
    pstmt.setByte (2,poscode.getIsWhiteTurn()); //it returns a byte
    ResultSet rs = pstmt.executeQuery (query);
    When pstmt.executeQuery is reached, it's thrown the exception:
    com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=? and iswturn=?' at line 1
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:3170)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:3099)
    at com.mysql.jdbc.Statement.execute(Statement.java:695)
    at app.server.bbdd.MYSQLBDManager.getGamesBasicInfo(MYSQLBDManager.java:942)
    at app.server.bbdd.MYSQLBDManager.main(MYSQLBDManager.java:1068)
    Can anybody tell me what's wrong?? I think the query is ok, but don't know what's happening with this...
    Lots of thanks.

    Don't cross-post, it's considered rude:
    http://forum.java.sun.com/thread.jspa?threadID=5122604&messageID=9430056#9430056
    http://forum.java.sun.com/thread.jspa?threadID=5122603&messageID=9430050#9430050
    One to a customer, please.
    %

  • Install problems Win XPSP2 and X-FI Xtreme Mu

    I read the sticky Sound Blaster FAQ and did everything it said to do. Clean boot was no good since driver and soundcard don't see each other, or driver not loaded right. This is driving me crazy, been working since Fri afternoon on this, now it;s late Sunday and it still doesn't work.
    I am unable to install drivers completely. System is in loop where at startup windows finds new hardware for sound card, when canceled out, system doesn't see sound card and it doesn't work. Has screen that says software you are installing for Creative X-Fi Audio Processor(WDM) has not passed Windows Logo testing, if told to install, it starts looking for files, but can't find them on disk, I have to browse to file location for first file, ctac32k.sys, which is on disk. Second file, crdnlstr.dat, is not on disk at all, I tried looking in search for it, but is located in several places in Windows/Temp and in System32. If any of those locations are used, system will reboot after a few seconds and then we start all over again.
    I reformatted and re-installed XP, the only thing the second time I put on was Service Pack 2 and microcode update from Microsoft for Intel KB 936357-x86-ENU the a slashdot article talked about that was supposed to help, no graphic drivers or chipset drivers yet, wanted to see if it wouldn't work better on clean install. I also updated BIOS to latest version from EVGA, the P30 released last month, nothing newer available yet. Still have same problem. I have 2 PCI slots, tried both of them, same thing. I've disabled on-board audio and don't even have the drivers for that loaded, just in case they were conflicting. This build had been running fine for 2 weeks, no problems at all. Everything started when I first tried to install the sound card drivers. I also cleaned out the CD drivers and tried the web drivers, that froze the computer then caused windows to not load, I had to use the recovery console to repair windows. Back to the CD and now we are where we are at. Please help, thank you. Here is my system.
    OS: Windows XP SP2
    Motherboard: EVGA 22-CK-NF68-A nForce 680i SLI chipset - using P30 BIOS
    Processor: Intel Core 2 Dual 6320
    Memory: 2 GB Corsair XMS2 DDR2 800 TWIN2X2048-6400C4 SLI
    Video: EVGA nVidia 8800GTS 320 MB Superclocked version
    Power Supply: Corsai HX 620w
    Hard Dri've (main): WD 74GB Raptor WD740ADFDMessage Edited by Dorsai on 08-27-200707:54 PM

    what a crock. 2 days of just looking at my posts. 2 days of stupid customer support people emailing me and telling me to do the stuff I was supposed to do before I emailed them, which I did, desperately hoping for a resolution to this issue. I don't think they read what I said at all, and they spent half the message trying to sell me on other Creative products. If you call this customer support, you can have it.
    The card is going back for a refund, I don't need the hassle and frustration. I've used Creative since the 998 Sound Blaster, but no more. They suck, their product for me sucks and their support is nonexistent. I'm going to buy a bgear card, at least they have updated drivers from this month, not last year. And support for all the Dolby, besides, who needs EAX 5, no games are going to use it anyway, and I'm more into music anyway. Thanks for all the help, good luck on getting your issues fixed, seems to me you're going to really need it.
    Dorsai!
    Saintly Dorsai the Viscount of Pemba
    Rogue Baron of Sentait
    Evil Marquis of Ea
    Very Military Deputy Premiere of the Supreme Soviet
    Incomparable Commander of the Forces of Nimball?
    Acolyte of the Way of Enlightned Self-Interest
    Heroic Champion of The Truth
    Arch Defender of The Name
    Puissant Protector of The Realm
    Ever-Watchful Sentinel of The Light
    Angelic Guardian of The Way
    Demonic Oppressor of The Stupid
    Silver-Throated Proselytizer of The Word
    Zealous Vanquisher of The Infidel
    Ultimate Preceptor of The Knowledge
    Custodian of the Endless Decanter of Delightful Tullamore Dew
    Stuperous Tippler of the Dorsai Whiskey
    Hellish Indoctrinator of the Miss Etiquette Rules of Conduct
    Death Bane of the Idiot named Soviet
    Serial Killer of Gavros(?)(Greek Soccer Fans?)
    Latin Lover of All Sorts of Titles
    Never-Ceasing Collector of Statements and Quotes
    Bringer of Enlightenment to One in Wonder
    Absent Non-Participator of Important Events
    "If you led the Dorsai, you'd drink too!"
    "Beware of His Evil UnHoliness Patriarch Smirnov I the High-Handed, leader of the Russian Inquisition and hater of misspellings"
    "Only a Warrior chooses pacifism; others are condemned to it"
    "Just like a penguin in bondage..."
    "And the torture never sto
    ps.
    "...see, you feed the rats to the cats and the cats to the rats, and you get the cat skins for free?"
    "Blazing Apostles, thieves in the night, messengers of the fall..."
    "If a cluttered desk is a sign of a cluttered mind, what is a empty desk a sign of?"
    "Life in the Air Age isn't all the brochures say..."
    "...for it is better to die than be vanquished and li've..."
    "A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools."
    ?...Ain?t this boogie a mess...

  • Performance problems with JDBC and mysql

    Hi,
    I have here a "one table" database which has 1.000.000 data rows. The problem is, that deleting a special entry (ie delete from mytable where da_value="foo1") takes between 10 and 60 seconds.
    Does anyone can help me out of this performance trap.
    LoCal

    table indexed and keys used?
    always preferred postgres! :)

  • Installing Problems with VS2003 and VS2005

    I have both Versions of VS (2003 and 2005) on my PC. The automtic Installation always finds VS 2003. How can I install the ODT for VS 2005 too.
    Klaus

    I have a regular Version of Visual Studio 2005. When I install ODT, the Extensions only appear in the Visual Studio 2003. How can i tell the Installation Routine to install ODT in VS 2005 when VS 2003 is installed at the same time ?
    Klaus

  • Problems with java and mysql error: 1064

    Hello,
    I have been struggling with the following java code for a day. I ALWAYS get the following error code : 1064 and I just can't figure out why. I am trying to insert data into a mysql table.
    Can anyone please help?
    Thanks in advance,
    Julien.
    package com.newedgegroup.pnr.misc;
    import java.sql.BatchUpdateException;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    * @author Julien Martin
    public class RunDataCopy {
        public static void main(String[] args) throws ClassNotFoundException, Exception , ParseException {
            Class.forName("com.ibm.as400.access.AS400JDBCDriver");
            String url_source = "jdbc:as400://as400a.calyonfinancial.com";
            Connection con_source = DriverManager.getConnection(url_source, "upload", "upload");
            Class.forName("com.mysql.jdbc.Driver");
            String url_target = "jdbc:mysql://localhost:3306/pnr";
            Connection con_target = DriverManager.getConnection(url_target, "root", "");
            Statement stat_source = con_source.createStatement();
    //        ResultSet rs_source = stat_source.executeQuery("select * from QS36F.GMIST4F1 po");
            String query = "SELECT " +
                    " sum (po.PGROSS) AS OPTION_PREMIUM, " +
                    "po.PFIRM, " +
                    "po.POFFIC, " +
                    "po.PACCT, " +
                    "po.PTDATE, " +
                    "po.PRR, " +
                    "po.PEXCH, " +
                    "po.PSUBEX, " +
                    "po.PFC, " +
                    "po.PSYMBL, " +
                    "po.PCLASS, " +
                    "po.PSUBCL, " +
                    "po.PSUBTY, " +
                    "po.PSDSC1, " +
                    "po.PCTYM, " +
                    "po.PSTRIK, " +
                    "po.PCLOSE, " +
                    "po.PUNDCP, " +
                    "po.PCURSY, " +
                    "po.PEXPDT, " +
                    "po.PLTDAT, " +
                    "po.PMULTF, " +
                    "po.PPTYPE, " +
                    "po.PBS " +
                    "FROM QS36F.GMIST4F1 as po " +
                    "WHERE " +
                    "0              = 0 " +
                    "AND po.PFIRM   = 'I' " +
                    "AND po.POFFIC  = '349' " +
                    "AND po.PRECID in ('T','B','Q') " +
                    "AND po.PSUBTY != ' ' " +
                    "AND po.PCMNT1 != ' E' " +
                    "AND po.PCMNT1 != ' A' " +
                    "GROUP BY " +
                    "po.PFIRM, " +
                    "po.POFFIC, " +
                    "po.PACCT, " +
                    "po.PTDATE," +
                    "po.PRR, " +
                    "po.PEXCH, " +
                    "po.PSUBEX," +
                    "po.PFC, " +
                    "po.PSYMBL, " +
                    "po.PCLASS, " +
                    "po.PSUBCL, " +
                    "po.PSUBTY, " +
                    "po.PSDSC1, " +
                    "po.PCTYM, " +
                    "po.PSTRIK, " +
                    "po.PCLOSE, " +
                    "po.PUNDCP, " +
                    "po.PCURSY, " +
                    "po.PEXPDT, " +
                    "po.PLTDAT, " +
                    "po.PMULTF, " +
                    "po.PPTYPE, " +
                    "po.PBS ";
            // System.out.println(query);
            ResultSet rss = stat_source.executeQuery(query);
            StringBuffer sb = new StringBuffer("");
            SimpleDateFormat df_s = new SimpleDateFormat("yyyyMMdd");
            SimpleDateFormat df_t = new SimpleDateFormat("yyyy-MM-dd");
            con_target.setAutoCommit(false);
            Statement stat_target = con_target.createStatement();
            int i = 0;
            try {
                while (rss.next()) {
                    i++;
                    sb.append("INSERT INTO `pnr`.`pnr_transaction` (").append("\n");
                    sb.append("`FIRM_ID`,").append("\n");
                    sb.append("`OFFICE_NUMBER`,").append("\n");
                    sb.append("`ACCOUNT_NUMBER`,").append("\n");
                    sb.append("`SALESMAN`,").append("\n");
                    sb.append("`EXCHANGE_CODE`,").append("\n");
                    sb.append("`SUBEXCHANGE`,").append("\n");
                    sb.append("`FUTURES_CODE`,").append("\n");
                    sb.append("`SYMBOL`,").append("\n");
                    sb.append("`ACCOUNT_CLASS_CODE`,").append("\n");
                    sb.append("`SUB_CLASS_CODE`,").append("\n");
                    sb.append("`SECURITY_SUB_TYPE`,").append("\n");
                    sb.append("`SECURITY_DESCRIPTION_LINE`,").append("\n");
                    sb.append("`CONTRACT_YR_MON`,").append("\n");
                    sb.append("`STRIKE_PRICE`,").append("\n");
                    sb.append("`CLOSING_MARKET_SETTLEMENT_PRICE`,").append("\n");
                    sb.append("`UNDERLYING_CLOSE_PRICE`,").append("\n");
                    sb.append("`PRODUCT_CURRENCY_SYMBOL`,").append("\n");
                    sb.append("`EXPIRATION_DATE`,").append("\n");
                    sb.append("`LAST_TRADING_DATE`,").append("\n");
                    sb.append("`MULTIPLICATION_FACTOR`,").append("\n");
                    sb.append("`PRODUCT_TYPE_CODE`,").append("\n");
                    sb.append("`CATEGORY_ID`,").append("\n");
                    sb.append("`MARKET_TYPE_ID`,").append("\n");
                    sb.append("`TAX_STATUS_ID`,").append("\n");
                    sb.append("`AMOUNT`").append("\n");
                    sb.append(") VALUES (").append("\n");
                    sb.append("'").append(rss.getString("PFIRM")).append("'").append(",").append("\n");
                    sb.append("'").append(rss.getString("POFFIC")).append("'").append(",").append("\n");
                    sb.append("'").append(rss.getString("PACCT")).append("'").append(",").append("\n");
                    sb.append("'").append(rss.getString("PRR")).append("'").append(",").append("\n");
                    sb.append("'").append(rss.getString("PEXCH")).append("'").append(",").append("\n");
                    sb.append("'").append(rss.getString("PSUBEX")).append("'").append(",").append("\n");
                    sb.append("'").append(rss.getString("PFC")).append("'").append(",").append("\n");
                    sb.append("'").append(rss.getString("PSYMBL")).append("'").append(",").append("\n");
                    sb.append("'").append(rss.getString("PCLASS")).append("'").append(",").append("\n");
                    sb.append("'").append(rss.getString("PSUBCL")).append("'").append(",").append("\n");
                    sb.append("'").append(rss.getString("PSUBTY")).append("'").append(",").append("\n");
                    sb.append("'").append(rss.getString("PSDSC1")).append("'").append(",").append("\n");
                    sb.append("'").append(rss.getString("PCTYM")).append("'").append(",").append("\n");
                    sb.append(rss.getString("PSTRIK")).append(",").append("\n");
                    sb.append(rss.getString("PCLOSE")).append(",").append("\n");
                    sb.append(rss.getString("PUNDCP")).append(",").append("\n");
                    sb.append("'").append(rss.getString("PCURSY")).append("'").append(",").append("\n");
                    sb.append("'").append(df_t.format(df_s.parse(rss.getString("PEXPDT")))).append("'").append(",").append("\n");
                    sb.append("'").append(df_t.format(df_s.parse(rss.getString("PLTDAT")))).append("'").append(",").append("\n");
                    sb.append(rss.getString("PMULTF")).append(",").append("\n");
                    sb.append("'").append(rss.getString("PPTYPE")).append("'").append(",").append("\n");
                    //sb.append(rss.getString("PBS")).append(",");
                    sb.append("1").append(",").append("\n");
                    sb.append("1").append(",").append("\n");
                    sb.append("1").append(",").append("\n");
                    sb.append(rss.getString("OPTION_PREMIUM")).append("").append("\n");
                    // sb.append(df_t.format(df_s.parse(rss.getString("PTDATE")))).append(",");
                    sb.append(") ").append("\n");
                    System.out.println(sb.toString());
                    //     stat_target.executeUpdate(sb.toString());
                    stat_target.addBatch(sb.toString());
    //        stat_target.executeUpdate(sb.toString());
                    if (i == 2) {
                        break;
                stat_target.executeBatch();
                con_target.commit();
            } catch (BatchUpdateException be) {
                System.out.println("be: "+be.getErrorCode());
                System.out.println("be: "+be.getMessage());
                be.printStackTrace();
                System.out.println("be: "+i);
            } catch (SQLException se) {
                System.out.println("se: "+se.getErrorCode());
                System.out.println("se: "+i);
    }

    What is the error message?
    I advice you to use prepared statement for batch inserting.

  • Install problems with CC and LR5 CC

    The CC install has Photoshop CC listed and is install it but I don't see LR CC.  How do I install the CC version of LR5?  
    I'm on a 6 core MacPro tower running OS 10.9 and the full orig versions of PS6 and LR5 are already installed.

    Zaptrack I am responding to your private message in this discussion as it is relevant.
         The current version of Lightroom available is Lightroom 5.2.  This is the version currently included with the Photoshop and Lightroom membership.  If you already have an exisiting license for Lightroom then you can continue to utilize your previous installation.  If you wish to remove your perpetual license and begin to utilize the license for Photoshop Lightroom included with your membership then you will need to remove and reinstall the software.   You can find more details on how to remove and reinstall the software included with your Photoshop and Lightroom Membership at Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html.

  • Problems with ACS4 and MySQL Server

    Hi,
    I am using acs4 with MySQL Server 5.0.67 as database under Windows. It all works fine except that very often I get a deadlock exception using the admin console.
    Here is what is logged in the admin.log:
    23 Apr 2009 12:20:15,231 TRACE DefaultSQLDatabaseRecordEnumerator: SELECT resourceid, voucherid, encryptionkey, permissions, defaultitem FROM resourcekey WHERE resourceid = ?
    23 Apr 2009 12:20:15,231 TRACE DefaultSQLDatabaseRecordEnumerator:   obj 1 = acc14cde-ea85-4f29-82ef-a771438bbcfc
    23 Apr 2009 12:20:15,262 ERROR DefaultSQLDatabaseConnection: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction
    23 Apr 2009 12:20:15,262 TRACE DefaultSQLDatabaseConnection: rollback
    23 Apr 2009 12:20:15,262 ERROR AdeptServlet: database error [192.168.2.101]
    com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
        at com.mysql.jdbc.Util.getInstance(Util.java:381)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1045)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3515)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3447)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1951)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2101)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2554)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1761)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2046)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1964)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1949)
        at com.adobe.adept.persist.DefaultSQLDatabaseConnection.deleteExpired(DefaultSQLDatabaseConn ection.java:479)
        at com.adobe.adept.shared.security.DistributorNonceUtil.checkNonce(DistributorNonceUtil.java :56)
        at com.adobe.adept.admin.servlet.ManagePersistent.doPost(ManagePersistent.java:291)
        at com.adobe.adept.admin.servlet.ManagePersistent.doPost(ManagePersistent.java:40)
        at com.adobe.adept.servlet.AdeptServlet.doPost(AdeptServlet.java:184)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Unknown Source)
    23 Apr 2009 12:20:15,278 TRACE AdeptServlet: request end http://...
    MySql is using InnoDB as storage engine.

    yes, you can do this via the admin gui by modifying the http listener port.
    You can also do this via the cli commandline as well http-listener-1 is the one you want to change the port for.
    http://docs.sun.com/source/817-6088/httpservice.html has details

  • Problem selecting uniqueness and last ddl from two tables

    I need to select uniqueness from user_indexes, and last_ddl_time from user_objects to determine the last ddl on all indexes within a schema.
    I have this code
    select a.object_name,a. object_type ,to_char(last_ddl_time, 'DD-MON-YYYY HH24:MI:SS'
    ) Last_Used , b.uniqueness
    from user_objects a, user_indexes b
    where object_type ='INDEX'
    and uniqueness = 'NONUNIQUE';Schema name not included beacuse i have it setup in my unix script.
    Is this correct?????

    SELECT a.object_name,
        a.object_type,
        to_char(last_ddl_time,     'DD-MON-YYYY HH24:MI:SS') last_used,
        b.uniqueness
    FROM user_objects a,
        user_indexes b
    WHERE object_type = 'INDEX'
    AND uniqueness = 'NONUNIQUE
    and a.object_name = b.index_name';  ------------------------------ missed joined condition.You are missing a join condtion..

  • SAP Vendor Number and MDG Business Partner mapping table name

    Hello Expert,
    We are using MDG for Materials and Suppliers, while using we found some times error on vendore number and business partner mis-matching.
    Could you please tell me which table I should check where I can see ECC vendor number with MDG business partner number.
    It will help us to validate the wrong mis-matched one to correct in one go.
    Regards,
    Vijay Mittal

    Hello Vijay,
    You can find the Vendors in table LFA1. Your Business Partners are in table BUT000.
    The number ranges transactions are as follows: Vendors - XKN1, Business Parners - BUCF
    You should check the NR Status and make sure your value is greater than the last created LFA1 record, so your PPO does not fail (that's in case you're going the direction BP -> Vendor and don't have the "Same flag" active in view V_TBC001). If you are trying to synch up from Vendor to BP, you'll have to check the view CVIV_VEND_TO_BP1 instead.
    Hope that helps,
    Boris

Maybe you are looking for

  • FCP sequence settings for Sony HandyCam video

    I'm working with video shot on a Sony Handycam HDR-CX550.  I had no problem importing it into iMovie and then to FCP, however I can't figure out what sequence settings I should use.  It appears to be 16x9, but shows up as 4x3 in my FCP bin.  Also, th

  • Settlement Run on Higher Level WBS

    Hello Experts, Scenarios is that I need to run settlement on 2nd Level WBSE where I have assigned asset class but my activities are linked on 3rd OR 4th Level WBS Elements due to the requirement of detailed level project planning. Cost is posted agai

  • Exception message"no BOM selected"

    Hi Experts,                   In what circumstances is the above error message i.e. "no BOM selected" thrown ? When I am running MD02 for a FG, I am getting this message. This FG has only one SFG as it's component in the BOM. Production version for F

  • IPod Sync Log

    My iPod Classic has come up missing. The last I saw it it was connected to my G4. I know it synced because the most recent songs I listened to show up in my recently played playlist. I would like to pinpoint when it was disconnected from the G4. Does

  • Swap Space not available while installation

    I am trying to install Primavera however it gives me error that swap space available is 0MB, minimum required is 500 MB. I checked in virtual memory and found that 3948 MB is available as virtual memory. Please advise solution immediately. Regards Ka