Source is thought that there is no problem, but NullpointException happens.
private Object createObject(String name)
Object obj = null;
try
Class cls = Class.forName(name);
obj = cls.newInstance();//<=Error point
catch(Throwable e)
System.err.println(e);
return obj;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Above source is method that have class'name and create instance.
I made new class beside existent class.
This method does not create new instance.
Source is thought that there is no problem, but NullpointException happens.
Ask your opinion.
Class.forName( name ) probably can't find the class you are looking for. Do remember that it must be the full path to the class regardless of where the class resides.
For example, if you want a new JFrame you need.
Class cls = Class.forName( "javax.swing.JFrame" ).
See if that helps.
Bryan
Similar Messages
-
A couple of days ago, my I opened up my iMovie and it just goes into the blank screen. I am able to click on things like, "import" or "create" and it will take me into the next window, but when I choose an option, I receive a message that there is a problem, but they don't know what the problem is. It has been like this for the past couple of days. I have deleted and re-downloaded the app about 3 times and it still comes out the same. Please assist in any way possible!
Try a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider if it appears), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
When it's rebooted you can force a backup via Settings > iCLoud -
I've had MS Office:mac 2011 on my imac for around 18 months now. Outlook has just disappeared and when I find the file and open it it tells me that there is a problem and I may need to re-install it. I've just done this using the installation disc which, then said the installation had been successful.
Outlook is still not working. Can anyone please advise me on what to do next.Remove MS Office 2011 completely (here are instructions) and reinstall it.
It's not a simple or fast process but it is important to follow all of the steps in order to get all the files that Office scatters around. This will not affect your data files, only MS Office and its preferences. -
So my itunes says that there is a problem with my itunes and i have to restore it but i have purchased ne songs through itunes on my ipod not through the computer so of course i would have to transfer purchases on my ipod to the computer before i restore it so it does not delete everyting and then i cant back them up. So i went to transfer purchases and It wouldent let me. So how do i transfer my purchases before i restore my ipod so i can back it uup so i dont lose everything. Thanks
There is a backup plan after doing the Restore. Read this.
-
I can't seem to update my software, every time I do it says that there is a problem and to close everything that is open. Once I close everything it still doesn't work. How do I get it to complete?
Make sure there's enough free space on the startup disk to install software updates...
Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
Freeing Up Hard Disk Space - Mac Guides -
I installed Firefox 3.6. Since then, I am unable to open pdf documents in Firefox. I get a black page. I tried opening the same document in Internet Explorer. It worked fine. I recently installed Nuance's pdf reader and thought that might be the problem. Uninstalled it. Still have the problem with Firefox.
== This happened ==
Every time Firefox openedHow about if you right click on the PDF and select Save Link As..., and then open it locally from within Reader? Does it work ok then? That might be a workaround until the issue within the browser is resolved.
Rob Jaworski
Intl Program Manager -
I have have an early 2008 imac 8,1 It has been a good machine no problems. UNTIL we downloaded Mt Lion. We can no longer use facetime. We click on the icon it comes up, tries to connect then it disappears with the message that there was a problem with the C_L Kernel Plugin. We can go on line without difficulty, everything else seems to be working. Searching the internet shows that others have had the same problem with Mt Lion. But so far I haven't found a solution. We have wiped the drive reloaded snow leopard then downloaded Mt Lion again. We put in a NEW hard drive and reloaded snow leopard then Mt Lion. We have changed out ram using apple ram. But we still get the same result. Everything works except for Facetime. Is there some patch we have missed? Facetime DOES work on our ipads without a hitch so I doubt it's the internet connection. We've tried the imac both wirelessly as the ipads run and hardwired and get no where fast. So any help at all would be appreciated. We live in the boonies, the nearest mac repair is over 150 miles away so this is pretty nuch a do it myself affair. We know the machine is old by most standards today. But we pretty much run our machines until they can't power up. So we'd like to get this one back on its perch so to speak with its face time working.
Thank you ahead of time for any advise help given.A log may help determine what the issue is ...
Open the Console app located in HD > Applications > Utilites
Select: System Diagnostic Reports on the left.
Copy and paste the most recent kernel panic or crash log in your Reply. -
I just got my new iPad Mini2, and when I choose "sign in with your apple ID", it says that "there was a problem connecting to the server". What's wrong with this, and how can I deal with this problem?
1. Turn router off for 30 seconds and on again
2. Settings>General>Reset>Reset Network Settings -
When trying to install io5 on my iphone4 I get an error message during the updtae that there is a problem with backup and if I continue with the update, all the data will be deleted from my phone. I cancelled the update and my phone is fne. Has anyone else experience this? What is the cause/solution?
Yhanks!DON'T DO IT! Read the threads ... there is a MAJOR problem with updating iPhones 3GS/4 to iOS 5.
Take it to the Apple store and ask them to do it.
I repeat: DON'T DO IT YOURSELF.
(Voice of experience.) -
When I enter my password to start my atv it tells me, that "there was a problem connecting to the network." My Ipad works fine in my house, but not my new atv. I have reset my password multiple times with no help. I have also rebooted my wireless server. Do I take it back?
Where is everyone???? Does anyone have an answer???
Allik1 -
I am getting an error message that there is a problem connecting with the service
I am getting an error message that there is a problem trying to connect with the service when I try to convert a pdf to word on my subscription service. I checked to see if my subscription is still active and it is. My account is for Blaise Mazzoni. EMail: [removed]. Please advise asap.
Thank you,
BlaiseHello, 2 other users in the French forum reported the same issue.: http://forums.adobe.com/thread/1402933 I don't know if there was a particular change in their machine/environment.
-
when i try to update my itunes on my pc i keep getting the messaage that there was a problem with the installer and it could not finish. how do i fix this? i`ve tried to download 3 times already.
Hi
I've got a similar problem. iTunes v10.2 worked fine, but when I tried to update it to 10.5 I got a 'Bonjour' error. I eventually solved that but I still couldn't upgrade to 10.5, so I deleted every single Apple, Quicktime, iTunes, etc file on my PC using Revo Unistaller (because the normal Windows Add/Delete programs wouldn't work) but now, when I install the latest iTunes version from scratch (on XP SP3), it says: "the installer encountered errors before it could be configured.... your system has not been modified"
Any ideas?
Rick -
I downloaded several tv shows on my computer and attempted to drag and drop to my iPod touch. I received an error message indicating that there was a problem syncing to my iPod. What steps should I take next? This has never happened before.
Force Quit .
Press command + option + esc keys together at the same time. Wait.
When Force Quit window appears, select the Safari if not already.
Press Force Quit button at the bottom of the window. Wait.
Safari will quit.
Relaunch Safari holding the shift key down.
http://www.thesafemac.com/fbi-ransomware-virus-rampant/ -
When trying to open a PDF format using Adobe XI I get an error message that there's a problem opening the document (57)
Hi chasore,
Are you still facing this issue?
Is this issue happening with all the documents you have. If yes, i would suggest try uninstall and reinstall. Or if the documents are located on some shared drive try to copy them on local machine and test again.
Regards,
Ajlan Huda. -
Why can't I down load a free app I get a message that there is a problem with my payment method but I gave all information correctly , I did recently change my card no because I lost my old one .i did change the no. On my account HOPE YOU HAVE SOME SUGGESTIONS I DON'T SEE WHY THEY HAVE TO CHECKMY PAYMENT METHOD FOR A FREE GAME
Contact iTunes customer support.
We're all users like yourself and as such have no access to your account.
Maybe you are looking for
-
I just had my motherboard replaced and when I go to my itunes playlist it says that "itunes is unable to browse album covers on this computer" Any idea why this is coming up.
-
In Adobe 7 Pro can you link to a certain page in another pdf document? Apprecaiate advise
-
Captivate 4 won't launch while off my network (it was installed off network)!
HELP! Captivate won't start Captivate 4 is installed onto my C: drive. All Captivate files are on this drive. As long as I am connected to my network, Captivate will open. However, if I am not connected to my network, Captivate will not open. I so
-
I was trying to update my ipad and it froze up and I can't get into the home page to delete or uninstall the update, I have and itune logo and a plug on the screen
-
When my 3g bogs down, I've found that opening then force quitting Mail improves performance considerably, and increases the amount of free ram from around 5mb to almost 20mb. To force quit an application, press and hold the Sleep/Wake button until th