Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Java error "java.lang.NullPointerException"(java error)
Java error "java.lang.NullPointerException" [message #736738] Fri, 14 October 2011 09:31 Go to next message
samer borgi is currently offline samer borgiFriend
Messages: 10
Registered: October 2011
Junior Member
I get this java error while running an application that needs internet to set up an account(adoble flash player and java updated):

java.lang.NullPointerException
at com.positscience.bfc.license.BFCLicenseManager.init(SourceFile:58)
at com.positscience.bfcapplication.views.BFCHomeView.cJ(SourceFile:207)
at com.positscience.bfcapplication.views.BFCHomeView.(SourceFile:135)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:170)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:788)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:235)
at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:69)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:327)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:227)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:531)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:179)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1604)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:649)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:576)
at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:563)
at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:270)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:931)
at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2497)
at org.eclipse.ui.internal.WorkbenchWindow$23.run(WorkbenchWindow.java:2837)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2818)
at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:735)
at org.eclipse.ui.internal.Workbench$20.runWithException(Workbench.java:1023)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:797)
at org.eclipse.ui.internal.Workbench$25.runWithException(Workbench.java:1342)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2309)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.positscience.bfcapplication.Application.bI(SourceFile:261)
at com.positscience.bfcapplication.Application.start(SourceFile:134)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)


so what should I do to fix it,I'm using windows 7 service pack 1,64-bit.
Re: Java error "java.lang.NullPointerException" [message #736839 is a reply to message #736738] Fri, 14 October 2011 11:26 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 10/14/2011 3:01 PM, samer borgi wrote:
> I get this java error while running an application that needs internet
> to set up an account(adoble flash player and java updated):

This is not the right place for this question. You should report this
error to the application provider.
Re: Java error "java.lang.NullPointerException" [message #736869 is a reply to message #736839] Fri, 14 October 2011 12:15 Go to previous messageGo to next message
samer borgi is currently offline samer borgiFriend
Messages: 10
Registered: October 2011
Junior Member
Ok,thank you.I will
Re: Java error "java.lang.NullPointerException" [message #737290 is a reply to message #736869] Fri, 14 October 2011 21:55 Go to previous messageGo to next message
samer borgi is currently offline samer borgiFriend
Messages: 10
Registered: October 2011
Junior Member
I reported this issue to the application provider,they replied "this seems to strictly be a Java problem. Our program requires Java but Java is an Oracle product and unfortunately we dont do technical support for it. " I need someone to help me in this java error
Re: Java error "java.lang.NullPointerException" [message #737509 is a reply to message #737290] Sat, 15 October 2011 04:44 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 10/15/2011 3:25 AM, samer borgi wrote:
> I reported this issue to the application provider,they replied "this
> seems to strictly be a Java problem. Our program requires Java but Java
> is an Oracle product and unfortunately we dont do technical support for
> it. " I need someone to help me in this java error

You can talk to Oracle folks then. This forum is strictly about Eclipse
Java Development tools.

> java.lang.NullPointerException
> at com.positscience.bfc.license.BFCLicenseManager.init(SourceFile:58)
> at com.positscience.bfcapplication.views.BFCHomeView.cJ(SourceFile:207)
> at com.positscience.bfcapplication.views.BFCHomeView.(SourceFile:135)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

Though, the stack trace you posted looks like an application issue,
rather than a Java issue.
Re: Java error "java.lang.NullPointerException" [message #737548 is a reply to message #737290] Sat, 15 October 2011 05:48 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 10/14/2011 04:55 PM, samer borgi wrote:
> I reported this issue to the application provider,they replied "this
> seems to strictly be a Java problem. Our program requires Java but Java
> is an Oracle product and unfortunately we dont do technical support for
> it. " I need someone to help me in this java error
The problem is with the code in BFCLicenseManager. Who ever wrote the
code is the one you should talk to. My guess is it is the people you
contacted. The statement that this seems to strictly be a Java problem
is a cop out. If they wrote the program, they should support it.

Their program runs on Java, but a Null Pointer Exception in a class
written by them is not an Oracle problem. It is their problem. Their
developers need to trouble shoot it.
Re: Java error "java.lang.NullPointerException" [message #737846 is a reply to message #736738] Sat, 15 October 2011 14:28 Go to previous messageGo to next message
Vikrant Yadav is currently offline Vikrant YadavFriend
Messages: 7
Registered: October 2011
Location: Delhi, India
Junior Member
samer borgi wrote on Fri, 14 October 2011 15:01
I get this java error while running an application that needs internet to set up an account(adoble flash player and java updated):

java.lang.NullPointerException


so what should I do to fix it,I'm using windows 7 service pack 1,64-bit.



Basically NullPointerException occurs when a data needs to be passed upon and instead of that a null value is passed to the class file which tries to perform various type of operations on that passed variable or value and gets nowhere.
I don't know exactly what kind of application is it that you are trying to work upon but what i see is that the default classes shows some problem here. It maybe that your JDK is not properly installed and or the files maybe corrupted or damaged. It is also possible that the application using these classes is unable to pass the resource needed by the classes.
I would suggest that try looking application code that you are running.
Re: Java error "java.lang.NullPointerException" [message #737979 is a reply to message #737846] Sat, 15 October 2011 17:28 Go to previous messageGo to next message
samer borgi is currently offline samer borgiFriend
Messages: 10
Registered: October 2011
Junior Member
Thank you guys Smile so What do you suggest me to do? I didn't find any email related to Oracle customer support,so I can't contact them..I'm outside usa,I can't call them
Vikrant Yadav,how can I look to the application code?

this is a screenshot of this error:

[Updated on: Sat, 15 October 2011 17:40]

Report message to a moderator

Re: Java error "java.lang.NullPointerException" [message #737995 is a reply to message #737979] Sat, 15 October 2011 17:59 Go to previous messageGo to next message
Vikrant Yadav is currently offline Vikrant YadavFriend
Messages: 7
Registered: October 2011
Location: Delhi, India
Junior Member
means you don't have application code with you and provided with just the running end.
so in that case you can report to guys who have provided you with the application and give them the detailed error report so they can also get to code and check for it..
and sameer borgi, no need for contacting oracle support because problem is with your application as it's unable to create the view window also. Sorry to say but Oracle guys called for this problem is like calling up microsoft when one of the user program is not installing or working fine. I hope you got what i am pointing out.
Re: Java error "java.lang.NullPointerException" [message #738003 is a reply to message #737995] Sat, 15 October 2011 18:10 Go to previous messageGo to next message
samer borgi is currently offline samer borgiFriend
Messages: 10
Registered: October 2011
Junior Member
Okay I got your point,I'll contact again the application provider and tell them what you said to me about this issue..
thank you
Re: Java error "java.lang.NullPointerException" [message #738026 is a reply to message #738003] Sat, 15 October 2011 18:51 Go to previous messageGo to next message
samer borgi is currently offline samer borgiFriend
Messages: 10
Registered: October 2011
Junior Member
Also I tried this application on another pc,my friend's pc, and it worked ,I didn't get this error..

[Updated on: Sat, 15 October 2011 19:59]

Report message to a moderator

Re: Java error "java.lang.NullPointerException" [message #738284 is a reply to message #738026] Sun, 16 October 2011 03:12 Go to previous messageGo to next message
Vikrant Yadav is currently offline Vikrant YadavFriend
Messages: 7
Registered: October 2011
Location: Delhi, India
Junior Member
Then there is a problem with your JDK it's not installed properly or it's not getting with the application. Try reinstalling JDK again and set the paths accurately(have JDK 1.6 preferably because it's most stable(1.7 is just in release) and featured) and if still unresolved then do post.
Thank you.
Re: Java error "java.lang.NullPointerException" [message #738486 is a reply to message #738284] Sun, 16 October 2011 09:46 Go to previous messageGo to next message
samer borgi is currently offline samer borgiFriend
Messages: 10
Registered: October 2011
Junior Member
I uninstalled all the previous versions and I have updated my java,I have java 6 update 27 (32-bit version) and java 7 (64-bit version),but still getting the same error message.. I have JRE versions,I don't develop Java applications and applets, so I don't need the JDK

I also found this .log file,it contains more details about the error I think..It is attached to this message

[Updated on: Sun, 16 October 2011 10:29]

Report message to a moderator

Re: Java error "java.lang.NullPointerException" [message #738758 is a reply to message #738486] Sun, 16 October 2011 18:10 Go to previous messageGo to next message
Vikrant Yadav is currently offline Vikrant YadavFriend
Messages: 7
Registered: October 2011
Location: Delhi, India
Junior Member
I saw the log and it showed:
!MESSAGE Unable to create view ID BFC.Home.View: Plug-in "com.positscience.BFCApplication" was unable to instantiate class "com.positscience.bfcapplication.views.BFCHomeView".
!STACK 0
java.lang.NullPointerException
...//then from next line it contained all the instances of code which were affected by this error above...

the instance of this class is not crated it maybe due to some security issues like protected or private classes. but as you mentioned in earlier post that the application is running fine on your friends PC then the classes are fine at their places there is some problem at your part. :-/
can you brief a bit about what your application does exactly maybe there we can find something that might get through in your system. Smile
Re: Java error "java.lang.NullPointerException" [message #738904 is a reply to message #738758] Sun, 16 October 2011 22:46 Go to previous messageGo to next message
samer borgi is currently offline samer borgiFriend
Messages: 10
Registered: October 2011
Junior Member
I attached 2 screenshots about my application.
Before I can begin to use this application,I need to activate the software, and set up
my personal account. To complete this process,I must be connected to the internet,so I can activate my license.
When I click set up account ,I get the blank screen and when I try to close it using the task manager ,it gives the error code "java.lang.NullPointerException"

Thank you Smile


  • Attachment: 1.jpg
    (Size: 52.99KB, Downloaded 374 times)
  • Attachment: 2.jpg
    (Size: 88.41KB, Downloaded 389 times)

[Updated on: Mon, 17 October 2011 13:54]

Report message to a moderator

Re: Java error "java.lang.NullPointerException" [message #739472 is a reply to message #738904] Mon, 17 October 2011 14:09 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
You need to contact the company that makes the software. No one will be able to debug this problem without looking at the source code. The only people who have the source code are the developers at the company that sells the software. If they continue to tell you to contact Oracle, I would ask for my money back and look for another product.
Re: Java error "java.lang.NullPointerException" [message #739534 is a reply to message #739472] Mon, 17 October 2011 15:31 Go to previous messageGo to next message
Vikrant Yadav is currently offline Vikrant YadavFriend
Messages: 7
Registered: October 2011
Location: Delhi, India
Junior Member
It's a possible chance that your system is misbehaving with the workings of the application. First of all as dpwegener mentioned in his post contact the company to get this solved. They have to send in an engineer if you have paid for the part and it's your right to demand for it. If they insist to contact ORACLE then please step off as it's impossible to get it solved in there. As a Oracle guy won't step in your home to resolve what's the matter with your JRE so worthless trying that part.

last thing i would suggest try one thing maybe it gets through.
Goto you installed JDK there in copy the jre folder and therein go to "lib" (path is like C:\Program Files\Java\jdk1.6.0_20\jre\lib ) and copy all content in it and paste it in your "jre"(path is like C:\Program Files\Java\jre6\lib).
Then copy server directory from "C:\Program Files\Java\jdk1.6.0_20\jre\bin" to "C:\Program Files\Java\jre6\bin"
There is a slight possibility of getting the problem solved.
Re: Java error "java.lang.NullPointerException" [message #739566 is a reply to message #739534] Mon, 17 October 2011 16:01 Go to previous messageGo to next message
samer borgi is currently offline samer borgiFriend
Messages: 10
Registered: October 2011
Junior Member
Thank you guys for your help,I really appreciate that. I don't have the jdk version of java,I only have the jre version,so what should I do?

[Updated on: Tue, 18 October 2011 14:02]

Report message to a moderator

Re: Java error "java.lang.NullPointerException" [message #740445 is a reply to message #739566] Tue, 18 October 2011 14:15 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
Contact the company that wrote the software. They have a bug. We can't help you.
Re: Java error "java.lang.NullPointerException" [message #740457 is a reply to message #740445] Tue, 18 October 2011 14:32 Go to previous message
samer borgi is currently offline samer borgiFriend
Messages: 10
Registered: October 2011
Junior Member
I contacted them again and told them what you guys said about this issue and that it is their responsibility.Finally they are convinced and they are going to escalate the situation I'm having to their IT department to contact me directly.
Thank you guys for your help Smile
Previous Topic:Hot Deployment Through Eclipse on Weblogic
Next Topic:Can't type in eclipse for no reason.
Goto Forum:
  


Current Time: Fri Apr 19 18:08:25 GMT 2024

Powered by FUDForum. Page generated in 0.04353 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top