No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
28 Posted Topics
My query below has been working okay for 1 year now and suddenly it is giving an exception: [CODE] (SELECT distinct(R.imei),R.mobile,S.msg,S.reply,M.model, left(S.receiveTime,10) as receiveDate, right(S.receiveTime,8) as receiveTime,'' as 'Reason' from dbSAMSUNGmain.tREGDATA R,dbSAMSUNGmain.tMODELS M,dbSAMSUNGmain.tSMS_TRANSACTIONS S where S.mobile=R.mobile and replace(replace(S.msg,'/',''),' ','') LIKE concat('%',R.imei,'%') and (S.reply like '%Registration successful%' || S.reply like '%Reg … | |
Hi all, I am attempting to connect to a MS SQL Server Express Edition with Advanced Services (MS SQL10) on a remote Windows NT 5.2 machine on the LAN. My driver is [B]net.sourceforge.jtds.jdbc.Driver[/B] My url for the connection string is [B]jdbc:jtds:sqlserver://127.68.0.201:1433/LOD[/B] My user is [B]d[/B], password is [B]d[/B]. Now, when … | |
I have had a working jsp web applicationg for the last 2 months. All of a sudden, the application was not allowing users to log into it. After monitoring the logs upon a manual restart of glassfish, I saw the log output below: [CODE][#|2011-06-25T15:58:55.376+0300|WARNING|glassfish3.0.1||_ThreadID=26;_ThreadName=Thread-1;|Error sending syslog packet java.net.SocketException: Too many … | |
Re: [QUOTE=himmat.m4;1586499]Hi, In my project I am developing pagination concept. but here problem is data is too large so it takes too much time for fetching data. so anybody can give me solution like fetching data in some part so reduces data fetching time. Thanks in advance[/QUOTE] If you are using … | |
My java application has been running smoothly for the last 2 years in one linux server. Recently, we moved it to another linux server and it's then that it started giving the error as shown below: [CODE] java.sql.SQLException: Prepared statement needs to be re-prepared at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573) … | |
Re: [QUOTE=anand01;1600116]Cna any one telt me how can I add mysql connector in eclipse for web project Thanks in advance[/QUOTE] Hi, You could try the following: Create project say [I]Test[/I].Right-click on [I]Test[/I] and navigate to [B]Build Path[/B] then on to [B]Add Libraries[/B].Click on [B]User Library[/B] to select it then click Next.Click … | |
Hi guyz. My challenge is that I can manually run the following command from linux shell: [CODE] sh /usr/bin/sshlogin.sh 192.168.0.37|danga|dan1ga|java -jar /shared/smsfiles/coin/MySSH.jar [/CODE] successfully. The challenge from java is getting the same command to run. The snippet of my code that handles this is as follows, though it does not … | |
Hi guys, My code below works well when it's assumed that PuTTY is resident on the Windows machine where this application is running, and have PuTTY connect to a Linux server on the local network. [CODE] //more code Runtime r = Runtime.getRuntime(); Process p = null; String s = "C:\\Program … | |
Hi guys, I have a class called [B]Gen [/B]under a package [B]diaby[/B], project name diaby. I then have my other project andy, with class [B]Anders [/B]under package [B]andy[/B]. I have built successfully project dan, gone into its dist folder and copied the jar into project kim's common jars/libraries, included the … | |
Hi guys. I have a Java program that works in 3 stages after connecting to a MySQL database to give desired results. The first stage involves a function X that returns a value it finds in table A or zero. The second stage involves a function Y that's only allowed … | |
Hi guys. I have previously been developing a Java application using 2 Windows Vista PCs that both have MySQL as the database. I have always created a user for each PC (specifying their IPs as allowed hosts to connect) on the other and then in the application the code for … | |
The Windows 7 is a trial run due to lock out in 3 days. how can I quickly do away with it and install my genuine Vista in its stead? Thank you all in advance | |
Hi all, I have a running cron job as below: [CODE] */10 * * * * java -classpath "/shared/smsfiles/camps/jean.jar" emailrpts "71.25.24.45" "sile@lango.com" "password" >>/dev/null [/CODE] I would like to change the parameters "71.25.24.45" "sile@lango.com" "password" to "51.25.24.40" "jimbo@jalango.com" "passwordtwo". Whenever I change on the crontab and save, the application running … | |
Re: [QUOTE=rayden150;1360159]i have been in a java course it´s kinda expensive but anyways i am thinking that im going to quit cause its not hard but its really overwhelming dont you get that feeling?, theres just to much to learn!, i cant believe people learned more than 1 programming language also … | |
Re: [QUOTE=spades0001;1361571]import java.io.*; public class Amortization { public static void main (String[] args)throws IOException { BufferedReader dataIn=new BufferedReader (new InputStreamReader (System.in)); double loanamount=0.0, interestrate=0.0, numberofyears=0.0,amortization=0.0, a=(1+interestrate),b=numberofyears ; String TextInput; System.out.print ("Input the loan amount: ") ; TextInput=dataIn.readLine () ; loanamount=Integer.parseInt (TextInput) ; TextInput=dataIn.readLine () ; System.out.print ("Input the interest rate: ") … | |
Re: [QUOTE=llocks;1361883]Hello everyone, I am currently taking java and Im trying to learn how to write methods. I want to know learn the best way that I can learn how to read/write methods in a code. Im currently writing a code using lastindexOf. I do understand that im using this to … | |
Hi all, I am working on a program that will take up Excel files, with columns in a certain order and with specific names, and load the data into a MySQL database table. This I have already achieved. [B]My challenge is how to have an email address where the Excel … | |
Re: [QUOTE=jems5;1346522]My program requires that the user input values for an array do not exceed a declared final int variable. To control this I wrote this code to catch and throw exceptions in order to prevent computer from crashing the program. There are two conditions to be handled. (1) Exceeding array … | |
Re: My idea is a bit different since what I suggest is that you don't initialize the ArrayList at the place where the NullPointerException is being thrown at all. Simply have it this way: [CODE] ArrayList planes_array[] = null; //planes_array[0] = new ArrayList(); for(int i=0; i<planes.size(); i++) { ArrayList tmp_array = … | |
Re: I think the right way to achieve this is : [CODE] import java.util.*; public class DiscountBolts { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); double bolts, nuts, washers; double total; System.out.println("Enter number of bolts: "); bolts = keyboard.nextDouble(); System.out.println("Enter number of nuts: "); nuts = keyboard.nextDouble(); … | |
Hi all.I have been using a certain javascript code to display a "Please wait..." message on screen but it seems to work in some instances and not in others.Please assist me with javascript code that works in all instances Below is the code I currently use. In the head tags … | |
Hi all.Please assist me on this matter.I am developing a jsp web app on which I want to use jmaki widgets. After installing the jmaki plugin into Netbeans 6.7.1, I dragged and dropped the jquery datepicker and got the following on my jsp page. [CODE] <a:widget name="jquery.datepicker" /> [/CODE] Problem … | |
Re: Hi, Ensure you add the mysql connector jar file to your project.In Netbeans, right-click project name and then properties,then click on libraries, and then click on Add JAR to locate where you have it(download it if you don't have it).Code appropriately and build your project. Creating JAVA_HOME variable under Advanced … | |
Hi all, I have two jsp pages say jsp1 and jsp2. In jsp1 I have the following line: [code=jsp] <%@ page contentType="text/html;charset=UTF-8" language="Java" import="java.sql.*" %> <jsp:useBean id="one" scope="session" class="mypackage.myclass1" /> [/code] In jsp2 I have the following line: [code=jsp] <%@ page contentType="text/html;charset=UTF-8" language="Java" import="java.sql.*" %> <jsp:useBean id="two" scope="session" class="mypackage.myclass2" /> … | |
Hi all, Am having trouble trying to retrieve records using the following SQL statement: [code=SQL] SELECT distinct(dbS.tCline.mobile),dbS.tCline.msg,dbS.tCline.dest, dbS.tCline.reply,dbS.tCline.status FROM dbS.tCline,dbLaw.FORMER_GREY where dbS.tCline.msg LIKE '%'||dbLaw.FORMER_GREY.C||'%' and dbS.tCline.msg like '%ADMISSION%' [/code] My problem now is that, the resultset retrieved includes everything from dbLaw.FORMER_GREY.C instead of only those rows that match dbS.tCline.msg rows.Please … | |
Hi. I have a web application whereby I perform a search through 4 fields, namely:book serial no.,tel no.,gender and publishing date.In my jsp page variables picking the values respectively are:serial,tel,gender and datez.These are submitted to the java class.Currently, I perform my searches as follows(in java class): /***********************************************/ [code=Java]//......after connecting to … | |
I have already implemented AJAX (DWR) in a web application.My concern is that I don't want the users to lose the efficiency of AJAX simply because browser settings have disabled javascript.Already I have seen someone who has hinted on using degradable AJAX to implement AJAX regardless of whether javascript is … | |
Hi all.Am new to this forum so cut me some slack if I don't articulate my problem with utmost clarity.My problem is that I have a javascript function such as: function modReg(x,y) { <!-- var answer = confirm ("Do you really want to deregister user" +x+"?") if (answer) { document.leo["id"].value=x; … |
The End.