32,204 Topics

Member Avatar for
Member Avatar for Raziuddin

Hi all, Am a fresher with logj4 and trying to configure my properties file. My question is that how can i log differrent priorities of messages to different files using categories and appenders. help would me greatly appreciated. This is my properties file. I ma not able to get the …

Member Avatar for Raziuddin
0
222
Member Avatar for jigvesh

Well, I did go through the site mentioned in one of the earlier queries, but still i am not able to solve it........ I want an image to be displayed instead of the mouse cursor when it is over a panel.........which in the code is mainPane...........i think i am making …

Member Avatar for sanjrockz
0
427
Member Avatar for sasidharnet

This is sasidhar. I am getting problem with JNDI. please help to solve this problem. This is the program I used to work on JNDI. I am using weblogic 10.0 [CODE] import javax.naming.*; import java.rmi.*; import java.util.*; public class UseJndi{ public static void main(String args[]){ try{ Hashtable h = new …

0
107
Member Avatar for alejalv

hi, i was given this project to do in my java class but i dont exactly know what i have to do.... i understand that i need to create 2 classes, point that extends pair and labeledpoint that extends point.... but i have no idea what else the professor wants …

Member Avatar for VernonDozier
0
172
Member Avatar for crabs_crab

I Want To Make Programme Such That I Make The Programme In Two Sockets One For Client Other For Server, A Server Establish A Connection With The Client, Then Client Has To Enter Username Either John Or Jammi Then The Password For The Username Any Of The Above, Please Tell …

Member Avatar for jwenting
0
100
Member Avatar for Noliving

Alright basically I have an assignment due at 11:59 pm tonight and so I would appreciate all the help I can get. I have code that I wish for those to look over and see if its correct I also have a question about some of the questions and whether …

Member Avatar for Noliving
0
229
Member Avatar for srinivasrk

I am developing one intranet application. i want to get the windows login username to log into my application. because i want to check whether the same user is logging into the application or not. i worked on using req.getRemoteUser() but it is returning null. i am using the server …

Member Avatar for stultuske
0
391
Member Avatar for Ankita B

Hi,I wish to make a configuration file for db connection parameters. I read about properties file.I have made a properties file that contains the following info--- String jdbcDriver="oracle.jdbc.driver.OracleDriver"; String connectionURLThin="jdbc:oracle:thin:@ hostname:AIPUAT1"; String DbUserId="abc"; String DbUserpassword="abc"; and saved it as DbConnection.properties. i have also made a java file that uses these …

Member Avatar for Ankita B
0
137
Member Avatar for Ankita B

Hi, I have written a piece of code to add site for my web based application.If the site entered is already present then flag should be false and it should exit from function. If new site id is not present in db then flag should be true and addtion must …

Member Avatar for stultuske
0
142
Member Avatar for roqval

Hi all I am getting the output is a completely black image/ anyone know how to fix it... please here is the subject and java and classes in zip file . thank you Image processing is done in two general ways: scalar processing, by treating each colour plane as an …

0
46
Member Avatar for neelunova

I am using itext to create a pdf file for slovakia in java ,and after the pdf is created some characters are not displayed properly.I am using cp 1250 as charecter set and ARIALUNI.TTF file for font.How do i resolve the problem?

Member Avatar for neelunova
0
79
Member Avatar for Danii

can someone give me example of what this means Define the addSortedData method such that it adds the dataAdd argument to the list in the proper sorted location according to ticker symbol. If a company is already in the list with this ticker symbol, it is not added. There can …

Member Avatar for jwenting
0
101
Member Avatar for Grantmitch1

Hello Daniweb community, I am and probably will always be amazed at Java. I was just wondering where did people learn Java... I was thinking about taking it up in my spare time to learn Java, and as a college student its not like I dont have plenty of spare …

Member Avatar for majestic0110
0
87
Member Avatar for jatin29

hi ..problem in uploading image..using servlet to upload image in mysql..use html form so user given the path of image..but giving error.here is the code..help me on this. import java.sql.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class LoadImage extends HttpServlet{ public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException …

0
79
Member Avatar for toshibata

So i did my code, he asks for the string then i put it, then he tells me what string i put in but for some reason i dont understand he doesnt show the capitalized first letter for each word coverted string. Here is my code: import java.io.*; public class …

Member Avatar for stultuske
0
99
Member Avatar for kilermage

I need help on these errors I get, I don't know how to fix them. Can someone help me please. [B]errors:[/B] theiving.java:6: <identifier> expected public void theiving(playerId) { ^ theiving.java:8: illegal start of expression public int stealtimer; ^ theiving.java:143: illegal start of type if ((c.objectID == 4462)) ^ theiving.java:143: <identifier> …

Member Avatar for stultuske
0
153
Member Avatar for Samudricka

[CODE] E:\CatalinaHome\webapps\axis\samples\userguide\example3>java org.apache.axis.cli ent.AdminClient deploy.wsdd - Processing file deploy.wsdd - Exception: AxisFault faultCode: {http://xml.apache.org/axis/}Server.userException faultString: java.net.ConnectException: Connection refused: connect faultActor: null faultDetail: stackTrace: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.&lt;init&gt;(Unknown …

0
59
Member Avatar for edchabz

I thought I knew what I was doing but I obviously don't. I have to make a file that takes numbers that the user inputs and converts them into fractions. I have most of the work done. I have constructors and return methods that create fractions and change some numbers …

Member Avatar for edchabz
0
100
Member Avatar for CaffeineCoder

I'm getting an error message below and can't figure out why. The message is as follows: Exception in thread "Thread-3" java.lang.StackOverflowError at java.awt.geom.Ellipse2D$Float.getX(Ellipse2D.java:92) at java.awt.geom.EllipseIterator.<init>(EllipseIterator.java:25) at java.awt.geom.Ellipse2D.getPathIterator(Ellipse2D.java:405) at java.awt.geom.Path2D$Float.<init>(Path2D.java:215) at java.awt.geom.Path2D$Float.<init>(Path2D.java:190) at sun.java2d.pipe.LoopPipe.fill(LoopPipe.java:249) at sun.java2d.pipe.LoopPipe.fillOval(LoopPipe.java:123) at sun.java2d.SunGraphics2D.fillOval(SunGraphics2D.java:2158) I'm getting this on the specified line of the code below (`explosion[i].paintSprite(g);`). If …

Member Avatar for CaffeineCoder
0
243
Member Avatar for karinmorena

I have been trying to work on this calculator for a while and I need help. I'm getting "12" errors. I'm very new at this and I really need the help of someone that can please take the time to explain what I'm doing wrong. I would really appreciated. [CODE]/* …

Member Avatar for karinmorena
0
325
Member Avatar for eddy556

I have a JSP which inserts date into a MS Access database. But I keep receiving the error: 24: statement.executeUpdate("INSERT INTO Questions WHERE ID ='"+ID+"'(\"Question\", \"Answer\", \"Timestamp\", \"Author\", \"Customer_Useful\", \"Customer_NotUseful\") VALUES ('"+Question+"','"+Answer+"','this has been updated','"+Author+"','0','0')"); I have checked and checked all the values are there and correct and that the …

Member Avatar for masijade
0
400
Member Avatar for Noliving

Basically is this my test file for some reason is just giving me problems and so I'm currently in the moment trying to correct the problem. I'm also trying to beat a deadline tonight that would give me 20% EC on this assignment. What I need is for someone to …

Member Avatar for javaAddict
0
140
Member Avatar for Aman0711

Hi All, I am in a real confused state. I am graduating next month and my masters was mostly concentrated on theoretical concepts of software engineering. So I didnt get much chance to hone my programming skills. I have done java for few months back in india.. now I dont …

Member Avatar for Aman0711
0
88
Member Avatar for Javaman31

just in case someone does not know what mode is it is the number that appears most in a set of numbers The output of the following program is messed up( not just the mode but other parts of it too). It compiles but the output is not right. Her …

Member Avatar for stultuske
0
90
Member Avatar for abhishekkhandel

I'm attempting to write a directory monitor in java but I'm stuck. I'm trying to find something in Java that is like FileSystemWatcher in .NET but I don't think java does. From what I read is that you have to continually poll the directory for changes. What I would like …

Member Avatar for ithelp
0
74
Member Avatar for shaikh_mshariq

I am developing an application in which i want to set up ServerSocket's port on requirement. I have given an interface which accepts port number and this port number i want to assign my previously running serverSocket but serverSocket.accept() method blocks and I am unable to execute the code after …

Member Avatar for shaikh_mshariq
0
509
Member Avatar for lord12

A code is ambiguous when there exists a message using that code that can be partitioned into different sequences of code words. In other words, in an ambiguous code a message may have more than one meaning. For example, consider the binary alphabet, composed of symbols {0,1}. For the code …

Member Avatar for VernonDozier
0
188
Member Avatar for EASports

Hi everyone! I am trying to implement a red black tree and I'm having one huge problem. I recursively call my insert() method to find a null leaf, and after a rotation, the right child and parent of the rotated center are incorrect. Things may have gotten out of hand, …

0
47
Member Avatar for eddy556

Okay, here we go. I am trying to learn how to use javabeans properly and so I've created a small bean which just writes text to the screen. I keep getting the error: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 6 in the generated java …

Member Avatar for ~s.o.s~
0
226
Member Avatar for brinze

Hello - I'm a brand new student of programming and I'm needing help. I'm stonewalled. I've got an assignment that requires me to create a class named Dice that another program will use to roll dice. The instructions are: - The class must be named Dice - A method named …

Member Avatar for brinze
0
139

The End.