The Java exception thrown when an application attempts to use null in a case where an object is required.
0
votes
0answers
5 views
Null pointer exception using Spring ldap
I'm trying to access some datas in a Ldap directory. To do so, I use Spring Ldap.
I found out recently there is a magical way to use it, aka the DirContextAdapter. However, when I could browse the ...
0
votes
0answers
3 views
Pointers to structures in IDL structures
I have the following structures defined:
point_str={loop_point, x:0d, y:0d}
loop_time_str={loop_time_struct, points:ptr_new(/allocate_heap), loop_id:0d, time:0d}
...
0
votes
0answers
9 views
Running TestNG randomly throws a nullpointer exception
I'm trying to run Unit tests in JEE using TestNG (on Eclipse and IBM Websphere 8.x). I'm using the Apache DeltaSpike CDI Container (http://deltaspike.apache.org/container-control.html).
Sometimes ...
0
votes
0answers
7 views
kSoap-2 android nullpointer exception
I am working with ksoap2 for android and I am sending SOAP requests. I was googling for a whole day and couldn't find solution for my problem. The first problem was with i:type, my service was ...
3
votes
2answers
78 views
How to get rid of a java.lang.NullPointerException when output is acceptable?
This is a bit complicated for me to explain so please bear with me. I am simulating a process identifier (PID) manager that allocate PIDs. It's been expanded to consist of a multithreaded program that ...
0
votes
2answers
21 views
Null Point Exeption on Service
In my application i use a service that is responsible for positioning and AsynсTask that transmits position data and others to the server. In AsyncTask I use a function that read the data from the ...
0
votes
0answers
16 views
BackStackRecord NullPointer on BackKeyPress
im having a big problem with fragment, it keeps telling me that im having a NullPointerException at android.support.v4.app.BackStackRecord.run; im implementing the slidingUpDemo View on a Fragment ...
0
votes
3answers
52 views
nullpointerexection while executing setVisibility.GONE for radiobuttons
Basically I have singleitemactivity where the information about a single item is displayed after fetching JSON data through URL. I am getting a nullpointerexception (Please view the logcat output) ...
0
votes
0answers
33 views
How to Debug NullPointerException
I am working a map application using osm data. I was able to display a map and then get route between two points set by users using OSMR. Till this point my app is running fine. I now add code to pass ...
0
votes
2answers
35 views
Getting Null Pointer Exception when calling an Activity from onMenuItemClick() method
public class MainActivity extends FragmentActivity implements ActionBar.TabListener, OnMenuItemClickListener, OnClickListener {
private PopupMenu popupMenu;
private final static int ONE = 1;
...
-1
votes
0answers
19 views
java.lang.NullPointerException at com.sun.javaws.security.AppPolicy.grantRestrictedAccess
In JRE 7 update 21 I am getting the following error. While in previous JRE version it is working fine. I am loading the jar using ...
0
votes
2answers
48 views
Exception in thread error in Java
I'm trying to make a game with Java and in the game, the object that moves side ways called 'Pinko' is supposed to fire small objects called 'pellets' when the up or down arrow keys are pressed. It ...
0
votes
1answer
21 views
Invocation TargetException and null Pointer Exception in android
i have this part of code in the project, in which getting "null pointer exception" in this line CGRect shipRect = CGRect.make(ship.getPosition().x - (ship.getContentSize().width), but i have declared ...
0
votes
0answers
18 views
Play renderBinary throws NullPointerException with two immediate calls
I have created the following methods:
The first one accepts pictures and saves them:
public static void uploadProfilePicture(File file, String name, String token) {
User u = ...
2
votes
1answer
65 views
Why isn't NullPointerException thrown in the console?
I'm building my web application with Spring MVC 3.2 and Spring Security 3.1.
For authentication, I implement UserDetailsService and use DaoAuthenticationProvider.
Everything works fine!
However I ...