• Register

Recent questions tagged exception

0 votes
1 answer 2 views
Problem: I'm using JDeveloper 11.1.1.6. Here is what I know: I've looked in my UI.war/WEB-INF/lib directory and I see the log4j-1.2.17.jar there. The class complaining about it is org.opensaml.xml.XMLConfigurator
asked 2 days ago Ali 4.4k points
0 votes
1 answer 3 views
Problem: "java.net.SocketException: Network is unreachable " during Tomcat startup PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net he client is pingable form the server side.but the problem still exit. What can i do?
asked 2 days ago Ali 4.4k points
0 votes
1 answer 2 views
Problem: Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at javafx.fxml.Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at javafx.fxml. Can anyone help me to tell me how to Solving a thread error in JavaFX
asked 2 days ago Ali 4.4k points
0 votes
1 answer 3 views
Problem: It compiles but JVM fails in runtime with the following error: Exception in thread "main" java.lang.VerifyError: Bad return type.ries to start, then crashes and it get this: This crashed whilst initializing game Error: java.lang.VerifyError: Bad return type I try to view crash report. >Can someone please help fix this
asked 3 days ago Ali 4.4k points
0 votes
1 answer 3 views
Problem: Whenever I used an –ve value or, the value greater than or equal to the size of the array, then the ArrayIndexOutOfBoundsException is thrown. Some Questions i want to learn? How do you overcome array index out of bound exception? How do you handle ArrayIndexOutOfBoundsException in Java? What is String index out of bound exception in Java?
asked 3 days ago Ali 4.4k points
0 votes
1 answer 2 views
Problem: interfaces that in turn require different exception handling, and the subtle ... java.lang.RuntimeException) that your bean may throw, such as a NullPointer exception.<ejb-class> The fully qualified name of the enterprise bean class.a null pointer exception is actually thrown,
asked 3 days ago Ali 4.4k points
0 votes
1 answer 2 views
Problem: Hi, I've tried to use google-gson-stream-2.2.jar in my application and got the java.lang.ClassNotFoundException (com.google.gson.internal.Maybe you should raise an issue. and in the logs java.lang.NoClassDefFoundError: com/google/gson/Gson. Any suggestions for what to do
asked 3 days ago Ali 4.4k points
0 votes
1 answer 4 views
Problem: I am trying to set up a java program that would send and receive a file. I know there are similar things for this problem on this website, It worked in his video, and I am not sure what I did wrong. The first java file runs just ... .SocketInputStream.read(Unknown Source) at fileSender.fileclient.main(fileclient.java:19) I tried using some other ports, but that did not solve the problem.
asked 4 days ago Ali 4.4k points
0 votes
1 answer 10 views
Problem: inputs the amount of minutes the user enters and calculates the grand total by adding the CostForMinutes and BasePlanCost. CostForMinutes is calculated by multiplying the minutes the user enters and the BaseCostPerMinute. The out is all the numbers outputted ... this error exception in thread "main" java.util.IllegalFormatConversionException: f != java.lang.String can anyone help me out?
asked 4 days ago Ali 4.4k points
0 votes
1 answer 7 views
Problem: I'm getting the exception java.lang.ClassNotFoundException when I am trying to run my code, I'm getting Error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native ... ) at java.lang.Class.forName(Class.java:169) at Simple.MyProg.main(MyProg.java:15) What am I doing wrong?
asked 4 days ago Ali 4.4k points
0 votes
1 answer 3 views
Problem: Someone teel me how to JVMs put restrictions on the total amount of memory available on the heap. If you are getting OutOfMemoryErrors while running Eclipse, the VM can be told to let the heap grow to a larger amount by passing the -vmargs command to ... example, the following command would run Eclipse with a heap size of 2048MB? eclipse [normal arguments] -vmargs -Xmx2048m [more VM args]
asked 4 days ago Ali 4.4k points
0 votes
1 answer 14 views
Problem: What's wrong with the following code (under Python 2.7.1): class TestFailed(BaseException): def __new__(self, m): self.message = m def __str__(self): return self.message try: raise TestFailed('Oops') except TestFailed as x: print x
asked 5 days ago Mashhoodch 9.1k points
0 votes
1 answer 8 views
Problem: I am getting the error as mentioned below, while running the feed utility. I am trying to load an image "logo.png". The slf4j jar file is also available in the runtime classpath. But still I am getting this error.
asked 5 days ago Ali 4.4k points
0 votes
1 answer 6 views
Problem: I am new to programming so I apologize beforehand. I am running a program and am having a problem with the System.out.printf method in Java. I know everything else in the program is working correctly (tested it). However this does not ... Unknown Source) at java.io.PrintStream.format(Unknown Source) at java.io.PrintStream.printf(Unknown Source) at Advisor_Score.main(Advisor_Score.java:17)
asked 6 days ago Ali 4.4k points
0 votes
1 answer 9 views
Problem: public class dereks { public static void main (String [] args){ int array [] = {1,2,3,5,6,7}; int sum =0; for(int counter=0; counter<=array.length; counter++){ sum+=array[counter]; } System.out.println(sum); } } Can anyone tell ... I can't understand why I'm getting the error message "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5 at dereks.main(dereks.java:7)" .
asked 6 days ago Ali 4.4k points
0 votes
1 answer 17 views
Problem: I am a beginner to programming. I'm a few weeks into my first programming class, so please bear with me. I am not a person to ask for help, so I have searched for an answer extensively with no luck. This is also my first time posting ... correct for future posts. This is what I got while running the program. Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:50 on line 23
asked 6 days ago Ali 4.4k points
0 votes
1 answer 24 views
Problem: The following program is throwing error: public class HelloWorld { public static void main(String args[]) { System.out.println("Hello World!"); } } CLASSPATH C:\Program Files\Java\jdk1.6.0_18\bin\ Path C:\Program Files\Java\jdk1.6.0_18\bin\ JAVAHOME C:\Program Files\Java\jdk1.6.0_18\bin Can you please tell me the root cause?
asked Feb 19 Ali 4.4k points
0 votes
1 answer 17 views
Prblem: The error ArrayIndexOutOfBoundsException: 1 means index 1 is invalid and it's out of bounding i.e. more than the length of the array. Since the array has a zero-based index in Java, this means you are trying to access the second element of an array which only contains one element.
asked Feb 19 Ali 4.4k points
0 votes
1 answer 8 views
Prblem: I am working on the knapsack problem, I am new to Java. I am able to add numbers manually like this in the main: // Fill the bag of weights. //myWeights.bagOfWeights.add(18); //myWeights.bagOfWeights.add(2); //System.out.println("Possible answers: "); // ... it up with whitespace, and then convert it to an integer. Next, I tried to do the parseInt 2 ways, but I was unsuccessful both way.
asked Feb 19 Ali 4.4k points
0 votes
1 answer 22 views
Problem: I am having a problem importing classes and setting variables and I need help with a test program I am doing. So I am testing out a program that just simply outputs what your input was and puts a time stamp ( Like Skype ). I am having an issue getting the message and time variable type to work!
asked Feb 18 Ali 4.4k points