• All Sites

1 answer

What deserializes GWT RPC calls client side

As far as I have understood it is the RemoteServiceServlet that deserializes and serializes incoming and outgoing data on the server side in my GWT project. But what about client-side? My ...

1 answer

Spring Cache not working in doFilter

Spring Cache not working if called from doFilter. Note that Spring cache is working if NOT called from doFilter() (e.g if called from rest service) How can I enable cache in doFilter() ? (maybe ...

3 answers

How to workaround null objects in Java?

I am currently working on a program which has a method which computes the average of a course which contains five students. My question is what to do to the average method so that it ignores any ...

3 answers | 1 min ago by ScaVenGerS on Stack Overflow
1 answer

Getting error “Access restriction: The type 'Ignore' is not API”

Here is the long version Access restriction: The type 'Ignore' is not API (restriction on required library 'C:\Program Files\Eclipse\plugins\org.junit_4.11.0.v201303080030\junit.jar') I also get ...

1 answers | 2 mins ago by Carson on Stack Overflow
0 answers

Using a different lib version then the one provided by the parent classloader

I'm trying to build a java based plug-in for a 3rd party servlet container (closed source). The issue I have is that some of my libs (let's call it lib A) require another lib (call it lib B) in ...

2 answers

What is the multiplicity

I am not sure what is the multiplicity between A & C, and also between B & C, for the following Java classes... FYI: Class A and Class B may invoke either some or all the methods in this ...

2 answers | 3 mins ago by user614454 on Stack Overflow
1 answer

search for a record in hibernate if exist then link with table employee else create and then link

code for package Data; import; import java.util.*; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import ...

0 answers

Handling of HTML entities using String/BufferString?

I am using SAX Parser in Android to fetch XML data, One of the XML feed title was this, <title>Oracle&apos;s Quarterly Critical Patch Update Includes 25 Java Security Patches</title> ...

0 answers

Pass parameter to another panel swing java

I have a problem. For example: We have MainFrame, on this form we have mainPanel. Next, creates new classes with names FirstPanel and SecondPanel wich extends JPanel. Now in MainFrame writes: public ...

0 answers

How do you use the Scanner util with boolean arrays?

First of all, thank you for coming and taking the time to help with the problem. I am a complete noob (3rd day programming) which explains why I have spent countless head-aching hours trying to solve ...

1 answer

Issue with setting up JavaMail for IMAP

I am trying to connect to my company's Exchange server using an app that I have written. I have searched for 2 days straight and I can't figure out why it won't work. First, here is my code: ...

1 answer

JSF and Libraries Unclarity

After some time spent with servlets and JSPs now i'm trying to learn something about JSF. I've learned the basics, made a couple of simple examples, have a basic ideea of the 'workflow' but I still ...

1 answers | 5 mins ago by erasmus77 on Stack Overflow
4 answers

Program for mixstring

I have written program to mix two strings. For example string1 =hi string2=there outputs htihere but i am getting java.lang.StringIndexOutOfBoundsException. import java.util.*; public class Test2 { ...

4 answers | 6 mins ago by Raj Kamal on Stack Overflow
0 answers

Play framework [UnexpectedTypeException: HV000030: No validator could be found for type: java.lang.String.]

I have a problem with play framework 2.3.6. My method is: public static Result newUser() { Form<User> filledForm = userForm.bindFromRequest(); if(filledForm.hasErrors()) { ...

4 answers

Saving EditTexts on App close

on the homepage of my app i have edittexts that represent counters for each row in my list. whenever i change activity and return back to my main screen all the numbers disappear, the same happens ...

4 answers | 7 mins ago by Rory on Stack Overflow
2 answers

Switch case in java with condition on selection of cases

The following code consists of a switch case which executes five times asking the customer for the five icecream options ,but the condition is that each time the customer must select a different ...

2 answers | 8 mins ago by Allen Deva on Stack Overflow
3 answers

Cast exception?

So im getting this ClassCastException when trying to cast my Node<T> to my AVLNode<T>. No idea why. Here is where it throws an exception. Node<Integer> n1 = new ...

0 answers

How can I find the line numbers of a method invocation in Java

I need to get the line numbers a specific method is invoked in a .class file. I took a look at How can I find all the methods that call a given method in Java? It returns the methods that call a ...

1 answer

JOptionPane title bar icon

I'd like to replace the icon in a JOptionPane title bar (as it currently shows the default Java coffee logo). I tried the following: JOptionPane.showMessageDialog(null, "Some Text", "Login", ...

1 answers | 11 mins ago by Tom on Stack Overflow
2 answers

Having pairs of static and instanced methods that perform the same tasks?

While developing a two-dimensional vector class as part of a math library, I'm considering having static and instance method pairs for stylistic and usability reasons. That is, two equivalent ...

1 answer

GWT File download on optional location

I have found this example on gwt:!CwFileUpload But instead of uploading a file I want to download a file to an optional location. I ...

1 answers | 12 mins ago by Klelund on Stack Overflow
2 answers

How does the 'actionPerformed' method get called without an explicit call to it?

I just started learning GUI with Swing and don't exactly understand how the actionPerformed method works. Consider the following code: //code to create a button and change its text when clicked ...

3 answers

Modifying private instance variables in Java

So, I came across an example in a Java book I found: public class Account { private String name; private double balance; private int acctNumber; public Account(){} public ...

3 answers | 13 mins ago by Dimitri on Stack Overflow
1 answer

Java appletviewer on arm ubuntu

I have an Ubuntu on arm CPU, where I would like to run a java applet standalone (i.e. not in the browser) I have the iced tea plugin installed and it works in Firefox. When I type appletviewer ...

1 answers | 16 mins ago by clamp on Unix & Linux
0 answers

How do I add .jpg image to corrispond with list items?

I have my program displaying a random restaurant when a radio button is selected. What I'm wanting to do now is have an image of the restaurants logo show up underneath the text that shows up when the ...

0 answers

Jersey Error: MessageBodyReader not found for media type=application/json

i'm trying to implement a small REST API using Jersey as framework, in principle the code worked fine but when I try to do a 'GET' of a hash table, I get the following error: nov 23, 2014 4:27:40 PM ...

4 answers

Why did guava/java use possible.isPresent() as opposed to Optional.isPresent(possible)?

On it is explained that guava (and later java 8) adds a generic class Optional in order to clear up null checking. If a ...

4 answers | 19 mins ago by Ryan The Leach on Stack Overflow
0 answers

input Date = erro 400 - The request sent by the client was syntactically incorrect

Toda vez que insiro um input Date no meu form, retorna erro 400, já tentei de tudo, quando retiro o date não dá o erro, se alguém puder ajudar, meu controller package ...

0 answers

Trouble Using FileInputStream To Copy Large Files

I'm writing a program which copies files from one PC to another across a network. While this file copy is going on, I display the progress to the user and how much of the file has been copied ...

1 answer CreateProcess error=206, The filename or extension is too long

I'm trying to build a project using ant and it gives above exception and faild to build. What is the solution to this problem. Here is the build.xml compile target that i'm running <property ...

1 answers | 19 mins ago by Chann on Stack Overflow
15 30 50 per page
1 2 3