MySql database query (exact match from a list)

I've got a list of keywords entered into a database field
called
'tour_keywords' like:
europe, austria, lakes, mountains, tyrol, alpine etc
What I want is for results to be return IF ONLY an exact
match is found
in the database. The way I have it at the moment (see mySql
query below)
I only need to type 'tain' or 'kes' and I get results for
'moun'tain's'
OR 'la'kes'' :(
Can I stop this and match only the keywords as specified in
the database
field.
This is the DB query I have:
$query_rsResultsList = sprintf("SELECT * FROM tours WHERE
tour_keywords
LIKE '%%%s%%' ", $colname_rsResultsList);
Thanks
Os.

Michael Fesser wrote:
> .oO(Osgood)
>
>
>>I've got a list of keywords entered into a database
field called
>>'tour_keywords' like:
>>
>>europe, austria, lakes, mountains, tyrol, alpine etc
>
>
> Uh ...
>>What I want is for results to be return IF ONLY an
exact match is found
>>in the database. The way I have it at the moment (see
mySql query below)
>>I only need to type 'tain' or 'kes' and I get results
for 'moun'tain's'
>>OR 'la'kes'' :(
>
>
> What about a different table design?
Yeah nice thought. I only have a little to no knowledge of
working with
one table, let alone two or three.
Your current approach is not only
> bad in terms of normalization, it's also very
inefficient, since the DB
> can't use any indexes when performing a search. Full
table scans are
> expensive.
Humm why can't mySql just search a field containing multiple
words for a
particular matching word with a simple query.....maybe that's
what's
inefficient. Granted, I'm totally inefficient as well
(unfortunately I
was born that way) but two inefficients dont make an
efficient ;)
> Since this is a typical m:n relation (many to many), I
would use three
> tables: one for the main tour data, one for the keywords
and a third one
> to connect these:
>
> tours
> -----
> tourId INT UNSIGNED
> ...
> PRIMARY KEY (tourId)
>
> keywords
> --------
> keywordId INT UNSIGNED
> keyword CHAR(20)
> PRINARY KEY (keywordId)
>
> tourKeywords
> ------------
> tourId INT UNSIGNED (FOREIGN KEY on tours.tourId)
> keywordId INT UNSIGNED (FOREIGN KEY on
keywords.keywordId)
> PRIMARY KEY (tourId, keywordId)
>
> This makes it very easy to insert new keywords and to
assign as many
> keywords as necessary to a particular tour. In addition
searching for
> all tours matching one or even multiple(!) keywords is
very efficient.
> Try that with your current design.
Here's wishing lol.
>>Can I stop this and match only the keywords as
specified in the database
>>field.
>>
>>This is the DB query I have:
>>
>>$query_rsResultsList = sprintf("SELECT * FROM tours
WHERE tour_keywords
>>LIKE '%%%s%%' ", $colname_rsResultsList);
>
>
> In the example above the search query would look like
>
> SELECT ...
> FROM tours t
> INNER JOIN tourKeywords USING(tourId)
> INNER JOIN keywords USING(keywordId)
> WHERE keyword = 'mountains'
>
> or for multiple keywords:
>
> ...
> WHERE keyword IN ('mountains', 'lakes')
> GROUP BY t.tourId
Damn.... stop messing with my head.
I'm sure youre 100% correct but I'm a long way off the pace
when it
comes to database structure.

Similar Messages

  • Database query in MaxL DBS-Name list all file information failed

    When I tried list all file information command in MaxL it gave me an error saying the user doesn't exist. When I check the user through display user; command in MaxL I get the information as listed below.
    Is there something wrong with the way the user was created ?
    How can I (Admin) get the index and data file information?
    MAXL> query database Application.Database list all file information;
       ERROR - 1051012 - User ADMIN@Native Directory does not exist.
    MAXL> display user;
    user                description         logged in           password_reset_days enabled             change_password     type                protocol
       conn param          application_access_
    +-------------------+-------------------+-------------------+-------------------+-------------------+-------------------+-------------------+-----------------
    --+-------------------+-------------------
    ADMIN@Nati                                    TRUE                   0                TRUE               FALSE                   3 CSS
       native://DN=cn=911,                   1

    Has anyone resolved the problems with using TNSFormat?
    As is, I want to move to a shared server setup and to do that I want to use TNSFormat and point to a tns entry which is setup for IPC+Shared connection.
    But the Oracle Home that has the Oracle HTTP Server (from the companion CD) does not have SQL*net installed and does not seem to understand TNS.
    I have TNS_ADMIN setup, I have ORACLE_HOME_LISTENER poiting to the DB Home.
    for the OHS home, using "sqlplus login/pw@ipcshared" works, but "tnsping ipcshared" does not, since tnsping does not exist in the OHS home.
    I cannot install SQL*Net from the CD1, since it requires a dedicated/new home and does not want to install in the OHS Home.
    The only format that works in a dedicated OHS Home setup is ServiceNameFormat.
    Any help or input would be very helpful.
    Regards
    ps. This is a redhat linux setup.
    Message was edited by:
    Oli_t

  • Polulate textfield(s) from a MS SQL Database based on selection from DropDown List

    I am new to LiveCycle Designer. I am trying to create a Master Bill of Lading form. I want the user to be able to enter a Store Number from a in a text field and, based on what they enter I want to populate the address information from a database on my SQL Server.
    When I bind the address fields from the database, I only see the first record in the database.
    I'm not sure where to go from here...
    Thanks in advance,
    Jeremy

    That seemed to fix my error and returned the value to my DDL.
    I have modified the code so it looks at the clone of my dataConnection (dcStoreData)
    CODE:
    btnClear.MainPage.sStNo::change - (JavaScript, client)
    var inStrNbr = xfa.event.newText;
    if (inStrNbr == ""){
    app.alert("You must enter a valid name - try again!") } var nIndex = 0;
    while(xfa.sourceSet.nodes.item(nIndex).name != "dcStoreData")
    nIndex++;
    tfStoreID.rawValue = inStrNbr;
    var oDB = xfa.sourceSet.nodes.item(nIndex).clone(1);
    // the node pertaining to the data connection specified
    //app.alert(oDB.saveXML("pretty"));
    //set up sql call to DB to get specifics about employee
    oDB.nodes.item(1).query.setAttribute("text", "commandType");
    oDB.nodes.item(1).query.select.nodes.item(0).value = "Select * from tblStoreMast_LastVersion where StorNbr = '" + inStrNbr + "'";
    //app.alert(oDB.nodes.item(1).saveXML("pretty"));
    //now connect to DB and get a record
    oDB.open()
    oDB.close();
    it runs with no error and I am seeing the value it has given my DDL.rawValue
    Now I get the "error:"
    GeneralError: Operation failed.
    XFAObject.open:16:XFA:btnClear[0]:MainPage[0]:sStNo[0]:change
    ado2xfa operation failed.  Item cannot be found in the collection corresponding to the requested name or ordinal.
    My Store Number is stored as an int in the database.
    Do I have to somehow cast it as a character?
    Sorry for the headache!
    Jeremy

  • OT: MySQL Database Query

    If I open up a particular database in phpMyAdmin and click on
    Privileges, I see the following line:
    USER HOST TYPE PRIVILEGES GRANT
    root localhost global ALL PRIVILEGES Yes
    Shouldn't I be able to connect to this database without a
    password? When
    I try the following database connection...
    $link = mysql_connect ("localhost" , "root", "") or
    die(mysql_error());
    mysql_select_db ("Gypsy", $link) or die(mysql_error());
    I get this error message:
    Warning: mysql_connect() [function.mysql-connect]: Access
    denied for
    user 'root'@'localhost' (using password: NO) in
    /Users/MyName/Sites/Geobop/index.php on line 189
    Access denied for user 'root'@'localhost' (using password:
    NO)
    I've tried several variations...
    $link = mysql_connect ("localhost" , "root") or
    die(mysql_error());
    mysql_select_db ("Gypsy", $link) or die(mysql_error());
    $link = mysql_connect ("localhost" , "" , "") or
    die(mysql_error());
    mysql_select_db ("Gypsy", $link) or die(mysql_error());
    $link = mysql_connect ("localhost") or die(mysql_error());
    mysql_select_db ("Gypsy", $link) or die(mysql_error());
    ...but nothing works.
    Thanks.
    www.geobop.org - Family Websites
    www.invisible-republic.org - Adult political websites (Mature
    adults only)

    If I open up a particular database in phpMyAdmin and click on
    Privileges, I see the following line:
    USER HOST TYPE PRIVILEGES GRANT
    root localhost global ALL PRIVILEGES Yes
    Shouldn't I be able to connect to this database without a
    password? When
    I try the following database connection...
    $link = mysql_connect ("localhost" , "root", "") or
    die(mysql_error());
    mysql_select_db ("Gypsy", $link) or die(mysql_error());
    I get this error message:
    Warning: mysql_connect() [function.mysql-connect]: Access
    denied for
    user 'root'@'localhost' (using password: NO) in
    /Users/MyName/Sites/Geobop/index.php on line 189
    Access denied for user 'root'@'localhost' (using password:
    NO)
    I've tried several variations...
    $link = mysql_connect ("localhost" , "root") or
    die(mysql_error());
    mysql_select_db ("Gypsy", $link) or die(mysql_error());
    $link = mysql_connect ("localhost" , "" , "") or
    die(mysql_error());
    mysql_select_db ("Gypsy", $link) or die(mysql_error());
    $link = mysql_connect ("localhost") or die(mysql_error());
    mysql_select_db ("Gypsy", $link) or die(mysql_error());
    ...but nothing works.
    Thanks.
    www.geobop.org - Family Websites
    www.invisible-republic.org - Adult political websites (Mature
    adults only)

  • Replace exact string from a list seperated by ":" delimeiter

    Hi,
    How can I replace PROJ1 with PROJ4 and cover all the following options, when items are seperated by ":" delimiter.
    1)     PROJECT_NAME=PROJ1
    2)     PROJECT_NAME=PROJ1:PROJ2
    3)     PROJECT_NAME=PROJ2:PROJ1
    4)     PROJECT_NAME=PROJ1:PROJ11
    5)     PROJECT_NAME=PROJ3:PROJ1:PROJ2
    in case #4 i want to save PROJ11 and to replace only PROJ1
    Thanks,
    Sheli

    Hi, Etbin,
    Sorry, I can't figure out what you're asking.
    Etbin wrote:
    Not wanting to write regular expressions without database checkingAre you asking if this can be done without regular expressions? Yes, but it's not pretty. It would involve several layers of nested REPLACE (and/or other string manipulation) functions, even without worrying about multiple consecutive occurrences of the target string.
    I wonder whether in replacing PROJ1 with PROJ4 we could request to replace PROJ1 only as a complete word ?The solutions above already replace 'PROJ1' only when it is a complete word, not when it is a sub-string of a larger word such as 'PROJ11' or 'SUBPROJ1'.
    In this problem, I'm thinking of a "word" as being something delimited by '=', ':' or end-of-string. Does your question involve some different meaning of "word"?
    PROJ11 seems to represent the only threat to obtain the wrong PROJ41'PROJ11' is the only example in the given sample data, where the word starts with the target, but then continues. Both solutions above would also handle cases where a word ends with the target, but has something extra first (such as 'SUBPROJ1') or where there are extra characters both before and after the target (e.g. 'SUBPROJ11').
    or I'm (lately much too often) missing somethingI'm definitely missing something: a clear idea of what your question is.
    Maybe you're just trying to get me to use my funny name for this problem" "I found love in Slovenia". If so, thank you. I'm always happy to have such an oppoortunity.

  • Problem connecting a webservice to a mysql database

    Hi,
    I am trying to connect a webservice to a mysql database. I am using sun application server 8.1 and Mysql 4.1.
    I have been using the application servers examples to achieve my goals thus far. I have made the following progress.
    - I have got a simple jdbc web application on the application server to access my mysql database.
    - I have got a web service on the application server to work properly, in regards to performing a simple rpc method such as 'sayHello'.
    - I now want my webservice to have similar functionality to the jdbc application. A simple query or update to the database installed on the application server invoked from the webservice deployed on the application server.
    I have been having difficulty in achieveing this. I don't understand why I can't get this to work as i can achieve access to the database from the jdbc app. I am getting the following errors on the application server log:
    [#|2005-03-01T14:22:59.739+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    retrieving_initial_context...|#]
    [#|2005-03-01T14:22:59.789+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    retrieved_initial_context_successfully|#]
    [#|2005-03-01T14:22:59.789+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    recording_the_greeting...|#]
    [#|2005-03-01T14:22:59.789+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    getting_datasource...|#]
    [#|2005-03-01T14:22:59.799+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    got_datasource_successfully|#]
    [#|2005-03-01T14:22:59.799+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    getting_connection...|#]
    [#|2005-03-01T14:22:59.819+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    got_connection_successfully|#]
    [#|2005-03-01T14:22:59.819+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    getting_statement...|#]
    [#|2005-03-01T14:22:59.819+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    got_statement_successfully|#]
    [#|2005-03-01T14:22:59.819+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    executing_query...|#]
    [#|2005-03-01T14:22:59.900+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    could_not_interact_with_db|#]
    [#|2005-03-01T14:22:59.910+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    excpetion: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.io.IOException
    MESSAGE: An established connection was aborted by the software in your host machine
    STACKTRACE:
    java.io.IOException: An established connection was aborted by the software in your host machine
    at sun.nio.ch.SocketDispatcher.read0(Native Method)
    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
    at sun.nio.ch.IOUtil.read(IOUtil.java:206)
    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207)
    at com.sun.enterprise.server.ss.ASInputStream.read(ASInputStream.java:75)
    at com.sun.enterprise.server.ss.ASInputStream.read(ASInputStream.java:66)
    at com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:75)
    at com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(Re adAheadInputStream.java:94)
    at com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:122)
    at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1842)
    at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2292)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2788)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1534)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1625)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:2291)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:2226)
    at com.mysql.jdbc.Statement.executeQuery(Statement.java:1159)
    at goodbyeservice.GoodbyeImpl.sayGoodbye(Unknown Source)
    at goodbyeservice.GoodbyeIF_Tie.invoke_sayGoodbye(GoodbyeIF_Tie.java:54)
    at goodbyeservice.GoodbyeIF_Tie.processingHook(GoodbyeIF_Tie.java:124)
    at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:321)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate. java:443)
    at com.sun.enterprise.webservice.JAXRPCServlet.doPost(JAXRPCServlet.java:50)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterCha in.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.ja va:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextVal ve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:13 2)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:184)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:653)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:534)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.jav a:403)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    ** END NESTED EXCEPTION **
    I can't think of what the problem may be other then the following issues:
    - the mysql database would allow access from the jdbc application as it is seen as a local process whereas it may not for the webservice as it is seen as a remote process???
    - I may need to utilize a different datasource class to give the webservice access rights?
    Any help or advice in how this problem might be resolved or even just what it is would help me greatly. Thanks for you time in advance.
    Alvee

    Hi,
    I am trying to connect a webservice to a mysql database. I am using sun application server 8.1 and Mysql 4.1.
    I have been using the application servers examples to achieve my goals thus far. I have made the following progress.
    - I have got a simple jdbc web application on the application server to access my mysql database.
    - I have got a web service on the application server to work properly, in regards to performing a simple rpc method such as 'sayHello'.
    - I now want my webservice to have similar functionality to the jdbc application. A simple query or update to the database installed on the application server invoked from the webservice deployed on the application server.
    I have been having difficulty in achieveing this. I don't understand why I can't get this to work as i can achieve access to the database from the jdbc app. I am getting the following errors on the application server log:
    [#|2005-03-01T14:22:59.739+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    retrieving_initial_context...|#]
    [#|2005-03-01T14:22:59.789+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    retrieved_initial_context_successfully|#]
    [#|2005-03-01T14:22:59.789+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    recording_the_greeting...|#]
    [#|2005-03-01T14:22:59.789+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    getting_datasource...|#]
    [#|2005-03-01T14:22:59.799+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    got_datasource_successfully|#]
    [#|2005-03-01T14:22:59.799+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    getting_connection...|#]
    [#|2005-03-01T14:22:59.819+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    got_connection_successfully|#]
    [#|2005-03-01T14:22:59.819+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    getting_statement...|#]
    [#|2005-03-01T14:22:59.819+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    got_statement_successfully|#]
    [#|2005-03-01T14:22:59.819+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    executing_query...|#]
    [#|2005-03-01T14:22:59.900+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    could_not_interact_with_db|#]
    [#|2005-03-01T14:22:59.910+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    excpetion: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.io.IOException
    MESSAGE: An established connection was aborted by the software in your host machine
    STACKTRACE:
    java.io.IOException: An established connection was aborted by the software in your host machine
    at sun.nio.ch.SocketDispatcher.read0(Native Method)
    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
    at sun.nio.ch.IOUtil.read(IOUtil.java:206)
    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207)
    at com.sun.enterprise.server.ss.ASInputStream.read(ASInputStream.java:75)
    at com.sun.enterprise.server.ss.ASInputStream.read(ASInputStream.java:66)
    at com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:75)
    at com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(Re adAheadInputStream.java:94)
    at com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:122)
    at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1842)
    at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2292)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2788)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1534)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1625)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:2291)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:2226)
    at com.mysql.jdbc.Statement.executeQuery(Statement.java:1159)
    at goodbyeservice.GoodbyeImpl.sayGoodbye(Unknown Source)
    at goodbyeservice.GoodbyeIF_Tie.invoke_sayGoodbye(GoodbyeIF_Tie.java:54)
    at goodbyeservice.GoodbyeIF_Tie.processingHook(GoodbyeIF_Tie.java:124)
    at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:321)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate. java:443)
    at com.sun.enterprise.webservice.JAXRPCServlet.doPost(JAXRPCServlet.java:50)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterCha in.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.ja va:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextVal ve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:13 2)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:184)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:653)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:534)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.jav a:403)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    ** END NESTED EXCEPTION **
    I can't think of what the problem may be other then the following issues:
    - the mysql database would allow access from the jdbc application as it is seen as a local process whereas it may not for the webservice as it is seen as a remote process???
    - I may need to utilize a different datasource class to give the webservice access rights?
    Any help or advice in how this problem might be resolved or even just what it is would help me greatly. Thanks for you time in advance.
    Alvee

  • Problems connectig my webservice to my mysql database.

    Hi,
    I am trying to connect a webservice to a mysql database. I am using sun application server 8.1 and Mysql 4.1.
    I have been using the application servers examples to achieve my goals thus far. I have made the following progress.
    - I have got a simple jdbc web application on the application server to access my mysql database.
    - I have got a web service on the application server to work properly, in regards to performing a simple rpc method such as 'sayHello'.
    - I now want my webservice to have similar functionality to the jdbc application. A simple query or update to the database installed on the application server invoked from the webservice deployed on the application server.
    I have been having difficulty in achieveing this. I don't understand why I can't get this to work as i can achieve access to the database from the jdbc app. I am getting the following errors on the application server log:
    [#|2005-03-01T14:22:59.739+0000|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=16;|
    retrieving_initial_context...|#]
    [#|2005-03-01T14:22:59.789+0000|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=16;|
    retrieved_initial_context_successfully|#]
    [#|2005-03-01T14:22:59.789+0000|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=16;|
    recording_the_greeting...|#]
    [#|2005-03-01T14:22:59.789+0000|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=16;|
    getting_datasource...|#]
    [#|2005-03-01T14:22:59.799+0000|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=16;|
    got_datasource_successfully|#]
    [#|2005-03-01T14:22:59.799+0000|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=16;|
    getting_connection...|#]
    [#|2005-03-01T14:22:59.819+0000|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=16;|
    got_connection_successfully|#]
    [#|2005-03-01T14:22:59.819+0000|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=16;|
    getting_statement...|#]
    [#|2005-03-01T14:22:59.819+0000|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=16;|
    got_statement_successfully|#]
    [#|2005-03-01T14:22:59.819+0000|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=16;|
    executing_query...|#]
    [#|2005-03-01T14:22:59.900+0000|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=16;|
    could_not_interact_with_db|#]
    [#|2005-03-01T14:22:59.910+0000|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=16;|
    excpetion: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.io.IOException
    MESSAGE: An established connection was aborted by the software in your host machine
    STACKTRACE:
    java.io.IOException: An established connection was aborted by the software in your host machine
         at sun.nio.ch.SocketDispatcher.read0(Native Method)
         at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)
         at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
         at sun.nio.ch.IOUtil.read(IOUtil.java:206)
         at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207)
         at com.sun.enterprise.server.ss.ASInputStream.read(ASInputStream.java:75)
         at com.sun.enterprise.server.ss.ASInputStream.read(ASInputStream.java:66)
         at com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:75)
         at com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:94)
         at com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:122)
         at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1842)
         at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2292)
         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2788)
         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1534)
         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1625)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:2291)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:2226)
         at com.mysql.jdbc.Statement.executeQuery(Statement.java:1159)
         at goodbyeservice.GoodbyeImpl.sayGoodbye(Unknown Source)
         at goodbyeservice.GoodbyeIF_Tie.invoke_sayGoodbye(GoodbyeIF_Tie.java:54)
         at goodbyeservice.GoodbyeIF_Tie.processingHook(GoodbyeIF_Tie.java:124)
         at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:321)
         at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:443)
         at com.sun.enterprise.webservice.JAXRPCServlet.doPost(JAXRPCServlet.java:50)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:184)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    ** END NESTED EXCEPTION **
    I can't think of what the problem may be other then the following issues:
    - the mysql database would allow access from the jdbc application as it is seen as a local process whereas it may not for the webservice as it is seen as a remote process???
    - I may need to utilize a different datasource class to give the webservice access rights?
    Any help or advice in how this problem might be resolved or even just what it is would help me greatly. Thanks for you time in advance.
    Alvee

    I am getting this problem from java nio server to java nio client. I get it intermittently on windows. Have not tried other os's. It almost seems like some kind of race condition as my unit test case was passing for the past few weeks and when i changed some code today, it started failing intermittently with this error.
    IOException: An established connection was aborted by the software in your host machine

  • Problem connecting my webservice to mysql database

    Hi,
    I am trying to connect a webservice to a mysql database. I am using sun application server 8.1 and Mysql 4.1.
    I have been using the application servers examples to achieve my goals thus far. I have made the following progress.
    - I have got a simple jdbc web application on the application server to access my mysql database.
    - I have got a web service on the application server to work properly, in regards to performing a simple rpc method such as 'sayHello'.
    - I now want my webservice to have similar functionality to the jdbc application. A simple query or update to the database installed on the application server invoked from the webservice deployed on the application server.
    I have been having difficulty in achieveing this. I don't understand why I can't get this to work as i can achieve access to the database from the jdbc app. I am getting the following errors on the application server log:
    [#|2005-03-01T14:22:59.739+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    retrieving_initial_context...|#]
    [#|2005-03-01T14:22:59.789+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    retrieved_initial_context_successfully|#]
    [#|2005-03-01T14:22:59.789+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    recording_the_greeting...|#]
    [#|2005-03-01T14:22:59.789+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    getting_datasource...|#]
    [#|2005-03-01T14:22:59.799+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    got_datasource_successfully|#]
    [#|2005-03-01T14:22:59.799+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    getting_connection...|#]
    [#|2005-03-01T14:22:59.819+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    got_connection_successfully|#]
    [#|2005-03-01T14:22:59.819+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    getting_statement...|#]
    [#|2005-03-01T14:22:59.819+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    got_statement_successfully|#]
    [#|2005-03-01T14:22:59.819+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    executing_query...|#]
    [#|2005-03-01T14:22:59.900+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    could_not_interact_with_db|#]
    [#|2005-03-01T14:22:59.910+0000|INFO|sun-appserver-pe8.1|javax.enterprise.syste m.stream.out|_ThreadID=16;|
    excpetion: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.io.IOException
    MESSAGE: An established connection was aborted by the software in your host machine
    STACKTRACE:
    java.io.IOException: An established connection was aborted by the software in your host machine
    at sun.nio.ch.SocketDispatcher.read0(Native Method)
    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
    at sun.nio.ch.IOUtil.read(IOUtil.java:206)
    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207)
    at com.sun.enterprise.server.ss.ASInputStream.read(ASInputStream.java:75)
    at com.sun.enterprise.server.ss.ASInputStream.read(ASInputStream.java:66)
    at com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:75)
    at com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(Re adAheadInputStream.java:94)
    at com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:122)
    at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1842)
    at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2292)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2788)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1534)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1625)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:2291)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:2226)
    at com.mysql.jdbc.Statement.executeQuery(Statement.java:1159)
    at goodbyeservice.GoodbyeImpl.sayGoodbye(Unknown Source)
    at goodbyeservice.GoodbyeIF_Tie.invoke_sayGoodbye(GoodbyeIF_Tie.java:54)
    at goodbyeservice.GoodbyeIF_Tie.processingHook(GoodbyeIF_Tie.java:124)
    at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:321)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate. java:443)
    at com.sun.enterprise.webservice.JAXRPCServlet.doPost(JAXRPCServlet.java:50)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterCha in.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.ja va:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextVal ve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:13 2)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:184)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:653)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:534)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.jav a:403)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    ** END NESTED EXCEPTION **
    I can't think of what the problem may be other then the following issues:
    - the mysql database would allow access from the jdbc application as it is seen as a local process whereas it may not for the webservice as it is seen as a remote process???
    - I may need to utilize a different datasource class to give the webservice access rights?
    Any help or advice in how this problem might be resolved or even just what it is would help me greatly. Thanks for you time in advance.
    Alvee

    The driver is in right place
    Originally I placed him in wrong directory and got an error, indicationg, that Driver class is not found, but then I corrected it, The problem is in connection to database - it doesn't work.
    I tired to load the same driver into Netbeans and could easyli create a connection to database, but I get it not working ander Sun Application server

  • How to connect to a MySQL database in another server

    Dear friends,
    I am using Oracle SQL Developer 1.5.3 and I need to connect to a MySQL database located in another server.
    I am trying to create a new connection, informing connection name, username and password. Supposing that "Hostname" is the IP server address, I click on "Choose database", but I always receive the following error message: "Status : Failure - Cannot connect to MySQL server".
    Please tell me what I should do to solve this situation. Thanks in advance.
    Best regards,
    Franklin

    You need to configure your mysql database to accept connection from your PC for the user you used.
    For example,
    GRANT ALL ON *.* TO 'someuser'@'somehost';
    FLUSH PRIVILEGES;

  • [b] Populating List Box from MySQL Database[/b]

    Hi all,
    I'm trying to populate a JComboBox from MySQL database, I Have an applet which send's the query to a server through sockets on the localhost, but when i try to retrieve the result set from the MySQL database, i get an index out of bounds exception, It's probably something simple, any help regarding the above problem!! I've included the code below!!
    Cheers
    Dave
    java.lang.ArrayIndexOutOfBoundsException: 1
    at dbWrapper1.Select(dbWrapper1.java:97)
    at TestUpdateDB.main(TestUpdateDB.java:29)
    Applet Code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    import java.util.*;
    import java.io.*;
    import java.net.*;
    *     @version  04/18/05
    *     @author David Lawless
    public class cust extends JApplet implements ActionListener
    //Declare Labels for Form
    private JLabel titleLabel;
    private JLabel firstNameLabel;
    private JLabel lastNameLabel;
    private JLabel addressLabel;
    private JLabel countyLabel;
    private JLabel countryLabel;
    //Declare Input fields for user
    private JTextField firstNameText;
    private JTextField lastNameText;
    private JTextField addressLineOneText;
    private JTextField addressLineTwoText;
    private JTextField addressLineThreeText;
    //Declare list for title box
    private JComboBox titleList;
    private String[] title = {"Mr.","Mrs.","Miss","Ms","Dr."};
    //Declare list for county box
    private JComboBox countyList;
    //Called when this applet is loaded into the browser.
    public void init()
    lookAndFeel();
    //Initialise Labels
    firstNameLabel = new JLabel("First Name * ");
    lastNameLabel = new JLabel("Last Name * ");
    titleLabel = new JLabel("Title * ");
    addressLabel = new JLabel("Address *");
    countyLabel = new JLabel("County *");
    countryLabel = new JLabel("Country *");
    //Initialise title List
    titleList = new JComboBox( title );
    titleList.setActionCommand("Title");
    //Set up Text fields
    firstNameText = new JTextField(30);
    firstNameText.setToolTipText("Please enter your first name here");
    lastNameText = new JTextField(30);
    lastNameText.setToolTipText("Please enter your surname here");
    addressLineOneText = new JTextField(30);
    addressLineTwoText = new JTextField(30);
    addressLineThreeText = new JTextField(30);
    //Retrieve County List From Database
    //countyList = new JComboBox( counties );
    try
         try
              Socket mySocket = new Socket ("127.0.0.1", 1983 );
              ObjectOutputStream out = new ObjectOutputStream(mySocket.getOutputStream());
              String entry1 ="SELECT county FROM data";
              out.writeObject(new String(entry1));
              ObjectInputStream in = new ObjectInputStream(mySocket.getInputStream());
              int size = in.readInt();
              Object [] results = new Object[size];
              for (int i=0; i < size  ; i++ )
                   results[i] = in.readObject();
              countyList = new JComboBox( results );
              countyList.setActionCommand("County");
              mySocket.close ();
         catch (Exception exp)
              exp.printStackTrace();
    // detect problems interacting with the database
    catch ( Exception sqlException )
         System.exit( 1 );
    //set up command buttons
    submitButton = new JButton("Submit");
    submitButton.setToolTipText("Click here to submit your details ");
    submitButton.addActionListener(this);
    cancelButton = new JButton("Cancel");
    cancelButton.setToolTipText("Click here to cancel order");
    cancelButton.addActionListener(this);
    Container topLevelContainer = getContentPane();
    getContentPane().setBackground(Color.blue);
    //Create Layout
    JPanel contentPane = new JPanel();
    //Set transparent background instead of blue
    contentPane.setBackground(Color.white);
    contentPane.setLayout(null);
    contentPane.setOpaque(true);
    titleLabel.setBounds(37,10,75,20);
    contentPane.add(titleLabel);
    firstNameLabel.setBounds(93,10,100,20);
    contentPane.add(firstNameLabel);
    lastNameLabel.setBounds(198,10,100,20);
    contentPane.add(lastNameLabel);
    titleList.setBounds(37,35,50,20);
    contentPane.add(titleList);
    firstNameText.setBounds(93,35,100,20);
    contentPane.add(firstNameText);
    lastNameText.setBounds(198,35,100,20);
    contentPane.add(lastNameText);
    addressLabel.setBounds(37,65,100,20);
    contentPane.add(addressLabel);
    addressLineOneText.setBounds(37,90,125,20);
    contentPane.add(addressLineOneText);
    addressLineTwoText.setBounds(37,115,125,20);
    contentPane.add(addressLineTwoText);
    addressLineThreeText.setBounds(37,140,125,20);
    contentPane.add(addressLineThreeText);
    countyLabel.setBounds(37,165,100,20);
    contentPane.add(countyLabel);
    countyList.setBounds(37,190,100,20);
    contentPane.add(countyList);
    submitButton.setBounds(60,250,100,20);
    contentPane.add(submitButton);     
    cancelButton.setBounds(180,250,100,20);
    contentPane.add(cancelButton);
    topLevelContainer.add(contentPane);
    }//End init()
    static void lookAndFeel()
         try
              UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
         catch(Exception e)
    }//End look and feel method
    public synchronized void actionPerformed(ActionEvent e)
    String actionCommand = e.getActionCommand();
    if (e.getSource() instanceof JButton)
         if (actionCommand.equals("Cancel"))
                   int returnVal = JOptionPane.showConfirmDialog(null,
                        "Are you sure you want cancel and discard your order?",
                        "Cancel Order", JOptionPane.YES_NO_OPTION);
                   if(returnVal == JOptionPane.YES_OPTION)
                        System.exit(0);
         if (actionCommand.equals("Submit"))
              firstName = firstNameText.getText();
              Surname = lastNameText.getText();
         }//end action command for submit button
    }//end method actionperformed
    }//End class customerDatabase Connection Code:
    import java.sql.*;
    import java.util.*;
    class dbWrapper1
        private Statement statement;
        private Connection connection;
        private String strUserName;
        private String strPassword;
         Object [] results = null;
         static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
         static final String DATABASE_URL = "jdbc:mysql://localhost:3306/ecommerce";
        public dbWrapper1()
            // the DSN for the Db connection
            strUserName = "root";
            strPassword = "password";
        public void Open()
            try
                // Load the jdbc-odbc bridge driver
                Class.forName ( JDBC_DRIVER );
                   //                    ***** TESTING PURPOSES *****
                   //Check currently loaded drivers
                   System.out.println("Currently loaded drivers...");   
                   for
                        Enumeration enum1 = DriverManager.getDrivers() ;
                        enum1.hasMoreElements();
                   System.out.println(enum1.nextElement().getClass().getName());
                // Attempt to connect to a driver.
                connection = DriverManager.getConnection ( DATABASE_URL, strUserName, strPassword );
                // Create a Statement object so we can submit
                // SQL statements to the driver
                statement = connection.createStatement();
            catch (SQLException ex)
                while (ex != null)
                    System.out.println ("SQL Exception:  " + ex.getMessage () );
                    ex = ex.getNextException ();
            catch (java.lang.Exception ex)
                ex.printStackTrace ();
        public void Update( String strUpdate )
            try
                // Submit an update or create
                statement.executeUpdate( strUpdate );
              catch (SQLException ex)
                while (ex != null)
                    System.out.println ("SQL Exception:  " + ex.getMessage () );
                    ex = ex.getNextException ();
        public Object[] Select( String strQuery )
            try
                // Submit a query, creating a ResultSet object
                ResultSet resultSet = statement.executeQuery( strQuery );
                // process query results
                   ResultSetMetaData metaData = resultSet.getMetaData();
                   int numberOfColumns = metaData.getColumnCount();
                   results = new Object[numberOfColumns];
                   while ( resultSet.next() )
                        for ( int i = 1; i <= numberOfColumns; i++ )
                             results[i] = resultSet.getObject(i);
                             System.out.print(resultSet.getString(i) + " | " );
                        System.out.println();
                   resultSet.close();
            catch (SQLException ex)
                while (ex != null)
                    System.out.println ("SQL Exception:  " + ex.getMessage () );
                    ex = ex.getNextException ();
              for (int i=0;i<results.length ;i++ )
                   System.out.println(results);
              return results;
    public void Close()
    try
    statement.close();
    connection.close();
    catch (SQLException ex)
    while (ex != null)
    System.out.println ("SQL Exception: " + ex.getMessage () );
    ex = ex.getNextException ();
    Server Code:
    import java.io.*;
    import java.net.*;
    public class TestUpdateDB
         public static void main(String[] args)
              System.out.println ( "Server is active" );
              try {
              ServerSocket sock = new ServerSocket ( 1983 );
              while ( true )
                   try
                        Socket mySock = sock.accept();
                        ObjectInputStream iStream = new ObjectInputStream(mySock.getInputStream());
                        ObjectOutputStream oStream = new ObjectOutputStream(mySock.getOutputStream());
                        Object temp = iStream.readObject();
                        String entry = (String)temp;
                        System.out.println ( entry );
                        dbWrapper1 myDB = new dbWrapper1();
                        myDB.Open();
                        Object [] query = myDB.Select(entry);
                        int size = query.length;
                        oStream.writeInt(size);
                        for (int i=1 ; i <= query.length ; i++)
                             oStream.writeObject( query );
                        myDB.Close();
                   catch ( Exception exp )
                        exp.printStackTrace ();
              catch ( Exception exp ) {
                exp.printStackTrace();

    Sir,
    The exception is probably in here.
    for ( int i = 1; i <= numberOfColumns; i++ ){
      results[i] = resultSet.getObject(i);
      System.out.print(resultSet.getString(i) + " | " );
    }ResultSet counting begins with 1 but array indexing begins with 0 your code should look more like.
    for ( int i = 0; i <= numberOfColumns; i++ ){
      results[i] = resultSet.getObject(i+1);
      System.out.print(resultSet.getString(i+1) + " | " );
    }Sincerely,
    Slappy

  • Don't get a result set from a query to mySql database

    Hello everyone,
    I am writing a program in which i refer to a mySql database.
    I encountered a problem using the executeQuery in which i don't get a resultSet at the end of the run,
    instead i get a null.
    gust for the record, the api says that it will never return null(se 6), also i queried the DB with a mySql client and the data is there
    and when i use execute("") everything works fine.
    I just can't get my wished result.
    the peace of code I am referring to is here, please feel free to say if you need more code...
    public static ResultSet getAccountResSet(int id) throws SQLException {
             //String query = "SELECT acctNum, acctOwnerId, acctOwnerName, balance, acctType, creditLimit, yearlyInterest, duration, creationDate, relatedCheckingAccoun FROM accounts WHERE acctNum="+id;
             String query = "select * from accounts where id="+id;
             ResultSet rs = statement.executeQuery(query);//this line falls, rs is null and i get null pointer exception
             return rs;
        }thanks for you help :)
    Edited by: gizmokaka on Mar 29, 2008 8:37 AM

    Maybe it's not the function executeQuery(query) that gives you the nullpointer. I think it may be that there is no connection to the DB, in which case the statement variable is null. Call to a method through this variable will trigger a nullpointer. Could you please post the exception text here? It may tell you where the NullPointerException occurs.
    //Chris

  • Database query from jsp

    hi! All
    i am making the following query to the MySQL database from a jsp page but I get error. please help.
    i am asking user to type in first few letters of person's first name and i use that string to find the match.
    String getName = request.getParameter("search_name"); // gets the few letters entered by user
    // fname is a field in the Employee table
    rs = statement.excuteQuery("Select fname, lname, from Employee where fname.indexOf('" + getName + "') != -1");
    Thanks in advance

    It looks like you have Java code in your select statement.
    I don't know what database your using but you want something
    like this.
    <%
    String getName = request.getParameter("search_name");
    /* I use ingress for my rdms and in ingress you use the keywork 'like'
       to match against character data. The '%' character is the wild card. So, this
       query looks for fname's that have any number of characters followed
       by the value stored in the java string getName, followed by any
       number of characters. */
    rs = statement.excuteQuery("Select fname, lname, from Employee where fname like '%" + getName + "%'");
    %>-S-

  • Query to match Sales Analysis output exactly

    Hello,
    I have tried several queries to match the output of the Sales Analysis report.  I have done so by customer and by sales employee.  I have failed to create a query that always matches the outcome of the Sales Analysis query exactly.  I would greatly appreciate it if someone could provide such a query even if it just matches net A/R invoice total by date range so that it can be compared with Sales Analysis tool.  From there I can use joins to see other results, e.g., net sales by sales employee by customer.
    Thank you,
    Lang

    Thanks for your response.  Yes, we need to account for credit memos and have already done so.  I had not thought to check for canceled state on invoices though, so thanks for that.  I did a quick query and there were no canceled invoices in the database, however, it will be good to incorporate regardless.  My annual net is close to being correct, but must be exact.  I don't need any other information to be output except net balance, i.e., balance after credit memos, document discounts, miscellaneous expenses recorded in freight field, and ?.  Using doctotal on documents takes into account the document discounts and miscellaneous expenses.  Another way to go is work at the line item level, e.g., INV1 or JDT1, and then account for the document discount and freight (totalexpns).  Approaches that use INV1 linetotal naturally fail on their own since they don't account for document discounts and freight expenses.  At the risk of being redundant, any approaches that don't include credit memos will naturally fail as well.  Here is a few approaches I have tried (that have been almost correct, but not exact, i.e., off by hundreds or a few thousand with net being in the single digit millions):
    Approach #1:
    declare @start datetime
    declare @end datetime
    set @start = '01/01/2008'
    set @end = '12/31/2008'
    select sum(t2.subtotal) from (select t0.doctotal as subtotal
    from oinv t0
    where t0.docdate between @start and @end
    union all
    select -1*t0.doctotal as subtotal
    from orin t0
    where t0.docdate between @start and @end) t2
    Note: this approach was off by a couple hundred dollars or so.  I would like to run this query in B1, but it summarizes a union and that seems to cause B1 to not be able to handle it. It runs fine in any other SQL Server client.  I would rather run it in B1 with dynamically selectable start and end dates, via '[%0]' etc.  The same is true for Approach #2 below.
    Approach #2:
    declare @start datetime
    declare @end datetime
    set @start = u201801/02/2008u2019
    set @end = u201812/31/2008u2019
    Select sum(t5.subtotal) from (Select SUM as subtotal
    From INV1 T0
    Inner JOIN OINV T1 ON T1.DocEntry = T0.DocEntry
    Where T1.DocDate BETWEEN @start AND @end
    Union All
    Select -SUM as subtotal
    From RIN1 T0
    Inner JOIN ORIN T1 ON T1.DocEntry = T0.DocEntry
    Where T1.DocDate BETWEEN @start AND @end
    union all
    select sum(t0.totalexpns) as subtotal
    from oinv t0
    where t0.docdate between @start and @end union all
    select sum(t0.totalexpns) as subtotal
    from orin t0
    where t0.docdate between @start and @end) t5
    Note: the outcome of this is identical to Approach #1. 
    Approach #3:
    SELECT SUM as u2018Net Balanceu2019
    from JDT1 T0
    Inner Join OJDT T1 ON T1.TransId = T0.TransID and
    (T1.TransType = u201813u2019 or T1.TransType = u201814u2019)
    Inner Join OCRD T2 ON T2.CardCode = T0.ShortName
    LEFT JOIN OINV T3 ON T3.TransId = T1.TransId
    LEFT JOIN ORIN T4 ON T4.TransID = T1.TransId
    Where T1.refdate Between u2018[%0]u2019 and u2018[%1]u2019 and T2.CardType = u2018Cu2019
    Note: This query fails because it does not account for miscellaneous expenses recorded in the freight field of invoices and credit memos.  Adding those in is possible, but fails due to the 'Inner Join OCRD T2 ON T2.CardCode = T0.ShortName.  This is because in the case of freight expense journal line items the shortname does not match the cardcode of the BP, but rather the system account it references.  I haven't spent more time to rework the logic of the join to overcome this, but it could possibly be added back in via a union which is subsequently totaled.
    I think I tried a few other approaches as well, but to no avail. 
    A related question/annoyance: I have noticed that certain queries in B1 cannot be executed correctly (they throw an error or have strange behavior like returning only the first row returned) though they can run fine in SQL Server Manager or other SQL Server clients.  Why is that?  It is annoying and unrealistic to have clients have to use another tool for certain queries.  Examples of such queries are those involving cursors, certain summarizing selects that work on a union as input, and queries that contain certain elements of TSQL, like variable declarations (not sure about this last one, but it seems to sometimes cause the query to fail in B1).  I wish I knew how to overcome this so that all queries could run in B1.
    Edited by: Lang Riley on Jan 22, 2009 8:08 PM
    Edited by: Lang Riley on Jan 22, 2009 8:15 PM

  • Query - Get values from list

    I will start a new thread for this one.
    When I do:
    <!--- Get Selected Groups --->
    <cfquery name="selGroups" datasource="access">
    SELECT * FROM tblSelectedGroups
    </cfquery>
    <!--- Show Records --->
    Selected Groups:<br>
    <cfloop query="selGroups">
    <cfoutput>#selGroups.name#, </cfoutput>
    </cfloop>
    <hr>
    <!--- Put Selected Groups In List --->
    <cfparam name="lstDepts" default="">
    <cfloop query="selGroups">
    <cfset lstDepts = listAppend(lstDepts,selGroups.name)>
    </cfloop>
    <!--- Show Records --->
    Array/List:<br><cfoutput>#lstDepts#</cfoutput>
    <hr>
    <!--- Select 'personen' --->
    <cfquery name="persons" datasource="access">
    SELECT *
    FROM tblPeople
    WHERE dept IN (#lstDepts#)
    </cfquery>
    <!--- Show Records --->
    Array/List of people:<br>
    <cfloop query="personen">
    <cfoutput>#persons.name#<br></cfoutput>
    </cfloop>
    I get the following result & error:
    Selected Groups:
    Belgie, Nederland, Zweden,
    Array/List:
    Belgie,Nederland,Zweden
    Error Occurred While Processing Request
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][ODBC Microsoft Access Driver] Too few
    parameters. Expected 3.
    The error occurred in C:\Alex Data\AAA Sites\Site -
    Coldfusion Test\arrayQuery.cfm: line 29
    27 : SELECT *
    28 : FROM tblPeople
    29 : WHERE dept IN (#lstDepts#)
    30 : </cfquery>
    31 :
    SQL SELECT * FROM tblPeople WHERE dept IN
    (Belgie,Nederland,Zweden)

    The correct use of ListQualify works fine!!
    <!--- LIST WITH CATEGORIES --->
    <cfparam name="categoriesOpNaam" default="">
    <cfloop query="allCatsForEntry">
    <cfset categoriesOpNaam =
    listAppend(categoriesOpNaam,allCatsForEntry.categoryname)>
    </cfloop>
    <!--- GET SUBSCRIBERS WHERE BLOG IN LIST --->
    <cfquery name="qSubs"
    datasource="#application.broadcasts#">
    SELECT DISTINCT email FROM tblBlogSubscribers
    WHERE blog in (#ListQualify(categoriesOpNaam,"'")#)
    </cfquery>

  • I can't connect to MySQL database from The JSP Standard Tag Library

    Hi All !
    I have a problem, please help me anybody !
    I don't connect to MySQL database from jsp page using JSTL tag but from servlet all work correctly. I set my path and put �mysql-connector-java-3.1.13-bin.jar� in ENVIRONMENT WinXP(classpath=C:\Java\jdk1.5.0_10\jre\lib\ext\mysql-connector-java-3.1.13-bin.jar) and in War project folder �WEB-INF/lib� and in [TomcatServer]\common\lib.
    I have in folder�WEB-INF/lib� following files:
    antlr.jar
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-fileupload.jar
    commons-logging.jar
    commons-validator.jar
    jakarta-oro.jar
    jsf-api.jar
    jsf-impl.jar
    jstl.jar
    mysql-connector-java-3.1.13-bin.jar
    standard.jar
    struts.jar
    I'm using:
    NetBeans 5.5 Build200610171010 (bundled Tomcat 5.5.17)
    Ent.Pack 20061020 Visual Wb Pack 061103
    OS WinXP SP2
    Java 1.5.0_10
    MySQL 5.0.18-nt
    1:<%@page contentType="text/html"%>
    2:<%@page pageEncoding="UTF-8"%>
    8: <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    9: <%@taglib uri="http://java.sun.com/jstl/sql" prefix="sql"%>
    10:
    11: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    12: "http://www.w3.org/TR/html4/loose.dtd">
    13:
    14: <sql:setDataSource var="ds"
    15: driver="com.mysql.jdbc.Driver"
    16: url="jdbc:mysql://localhost:3306/test"
    17: user="root"
    18: password="xxxx"/>
    19:
    20:
    21:<sql:query sql="select name, age from People" var="res"
    22: dataSource="${ds}"/>
    I have received report on mistake when entered code at the top:
    �/index.jsp [21;0] According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions�
    I used instead of (dataSource="${ds}")->(dataSource="ds") but this did not work.
    After build and run I have received
    =========================================START=================================
    HTTP Status 500
    type Exception report:
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    root cause
    org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:146)
    org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:955)
    org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:710)
    org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
    org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
    org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
    org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
    org.apache.jasper.compiler.Validator.validate(Validator.java:1489)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17
    =======================================END================================
    Error: "According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions" - but according to documentation such parameter possible.
    BUT WHEN JOINING With DATABASE FROM SERVLET ALL WORK FINE.
    I read this doc - [http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html], this applicable if I Tomcat Admin, but i'am not Admin
    I simply user, i.e. I want to place its database on virtual host (Tomcat+(JSP-JSTL)+MySQL).
    There is idea how can resolve this problem
    Thank you in advance ;)

    For all how have similar problem.
    Decision instead of these ways
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    it is necessary to indicate these
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

Maybe you are looking for

  • Printing 1 page on screen over 8 pages- why?

    Here's a frustrating print problem Yosemite: The problem is that a single page document open On SCREEN prints multiple pages in large print size instead of the 1 page on screen Example: Quicken 2007 updated for Yosemite has a financial one page repor

  • HT4191 upgraded to new itunes and no longer able to sync my notes in outlook with my iphone 4s

    I use outlook notes and in itunes 10 you could sync notes when you plugged in your iphone and opened itunes. after itunes 11, you cannot sync notes via usb so how can i sync notes from my desk top to iphone and vis versa? The only thing i have not tr

  • I cannot access all of my hard drive space on my OSX.

    When I bought my Macbook Air in 2012, the hard drive was already partitioned into two parts one OS and the other OSX. The OSX part with the operation system only contains about 30 GB of memory, while the other partition has 90 GB. I deleted the secon

  • Mass Change ERS in PO + BAPI

    Hi All, I need to make mass change in lot of PO at itme detail level. I need to uncheck ERS and GR based IV check box in invoice tab. I dont want to make use of Mass change tcode for this as it cause lot of work and chances of manual error are lot. I

  • Reading File in LSMW

    Hi All, I got a message while i ma reading a file in LSMW...The error is "Generation cancelled : No field with this name"... kindly tell me why this error has occured.. Regards, Gowri Rao