0
votes
0answers
12 views

How to send mail with attachment in GWT?

I would like to know if there is a way to send an email with attachment file with GWT. I managed to send a simple email without attachment, but I am having a problem when I try to add a file. The ...
1
vote
1answer
15 views

JUEL: What is the difference between ${} and #{}

I have seen and used both, but always wondered what the difference between the two expressions ${foo.bar()} and #{foo.bar()} is in juel. Any clues? Its hard to google "$" and "#" ....
5
votes
1answer
30 views

What does stripped JARs (no bytecode for methods) mean?

I am trying hard to find the cause of a weird JSF error. To do this, I try to debug the source code inside javaee-web-api module where a NullPointerException is thrown during JSF rendering. But I am ...
0
votes
0answers
21 views

How is a session being created before my Spring interceptor is reached?

Client device clears all cookies (so, no JSESSIONID cookie exists on the client). Client makes a request to Spring controller. Spring Interceptor intercepts the request. In the very first line of ...
0
votes
3answers
46 views

Ensure that type parameter is correct

I have create a class named Box which have one type parameter. It is declared like this: public class Box<T> {...} I have also created a table that contain these boxes and it have getters for ...
0
votes
1answer
47 views

What is wrong with this update query in java?

I am trying to make an update query in my managed bean. Here is the code: try { PreparedStatement checkDB1 = (PreparedStatement) con.prepareStatement("update pocket set balance=? where ...
0
votes
0answers
10 views

Why does the debugger not find the executed source code of javax.faces.component.UIViewRoot

I have a JSF 2 application. There is a NullPointerException in one page. The logs and stacktrace does not give any useful information. Therefore, I wanted to debug the exact location where the ...
0
votes
2answers
42 views

How to use not equal operator in java database query?

I am making a query in my managed bean. here is the code: try { PreparedStatement checkDB = (PreparedStatement) con.prepareStatement("SELECT * FROM boats where age= ? and color <> ?"); ...
2
votes
3answers
47 views

How to verify a list of objects is empty?

I have a list of objects that need to check if its empty or not, but I all the followings returns nullpointer exception. List <MyClass> mylist; mylist.isEmpty mylist.equal(null)
1
vote
1answer
51 views

How can I do injection inside a method body?

I have the following code: class Foo { @Resource(lookup=url) private DataSource ds; } But the url is dynamic and will be loaded inside a method body: class Bar { public static void ...
4
votes
1answer
58 views

how to determine the time when you end a sentence during registration?

I wrote on my own a set of code to record what I say through a microphone. I would like to understand the function that google uses for stopping this recording when there is "silence". For example if ...
0
votes
0answers
16 views

Running a JMS based java code on remote server

My code runs on a JMS server - SERVER1 with JBoss installed. This code initiates a Topic/Message based request to the JMS SERVER1 to kick start a job. import java.util.Properties; import ...
0
votes
0answers
40 views

Rest web service Java Vs C# [on hold]

So I am going to develop restful web services in one of the projects I am working on. I am now confused between the different approaches I may use to develop my application. Will using to develop ...
1
vote
1answer
32 views

Using URL pattern as /* in REST webservice?

<servlet-mapping> <servlet-name>JAX-RS REST Servlet</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> for my <servlet> ...
0
votes
1answer
32 views

need paging for large amount of json records [on hold]

I'm building a website (Java EE web application), and some client actions returning large amount of records in JSON. I need avoid returning all the data at once and provide paging, both for speed, ...

1 2 3 4 5 549
15 30 50 per page