0 / 0 / 0
Регистрация: 19.03.2012
Сообщений: 22
1
24.04.2014, 18:11. Показов 8496. Ответов 4
Помогите пожалуйста разобраться с ошибкой.
Java | ||
|
Java | ||
|
Текст ошибки
Connected.
clean
123
456
Exception in thread «AWT-EventQueue-0» java.lang.NullPointerException
at MainDebt.note(MainDebt.java:26)
at DebtWin$2.actionPerformed(DebtWin.java:76)
at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)
at javax.swing.AbstractButton$Handler.actionPerformed (Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent( Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPri vilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPri vilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPri vilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь
0
-
Этот сайт использует файлы cookie. Продолжая пользоваться данным сайтом, Вы соглашаетесь на использование нами Ваших файлов cookie. Узнать больше.
-
Вы находитесь в русском сообществе Bukkit. Мы — администраторы серверов Minecraft, разрабатываем собственные плагины и переводим на русский язык плагины наших собратьев из других стран.
Скрыть объявление
- Статус темы:
-
Закрыта.
-
Доброго времени суток, у меня проблемка..
когда жму авторизоваться в лаунчере сашка, мне пишет ошибка подключения
не стоит говорить, что руки не с того места, ведь проверил все по 10 раз, все правильно написано!
может кто поможет?
я заплачу и лайк поставлю=) -
Руки не из того места
Лог кидай -
лог чего?
в netBeans вот
run:
Exception in thread «AWT-EventQueue-0» java.lang.NullPointerException
at javax.swing.text.FlowView$FlowStrategy.layoutRow(FlowView.java:563)
at javax.swing.text.FlowView$FlowStrategy.layout(FlowView.java:477)
at javax.swing.text.FlowView.layout(FlowView.java:201)
at javax.swing.text.BoxView.setSize(BoxView.java:397)
at javax.swing.text.BoxView.updateChildSizes(BoxView.java:366)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:348)
at javax.swing.text.BoxView.layout(BoxView.java:708)
at javax.swing.text.BoxView.setSize(BoxView.java:397)
at javax.swing.text.BoxView.updateChildSizes(BoxView.java:366)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:348)
at javax.swing.text.BoxView.layout(BoxView.java:708)
at javax.swing.text.BoxView.setSize(BoxView.java:397)
at javax.swing.text.BoxView.updateChildSizes(BoxView.java:366)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:348)
at javax.swing.text.BoxView.layout(BoxView.java:708)
at javax.swing.text.BoxView.setSize(BoxView.java:397)
at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1714)
at javax.swing.plaf.basic.BasicTextUI.viewToModel(BasicTextUI.java:1100)
at javax.swing.text.html.HTMLEditorKit$LinkController.mouseMoved(HTMLEditorKit.java:697)
at java.awt.AWTEventMulticaster.mouseMoved(AWTEventMulticaster.java:330)
at java.awt.Component.processMouseMotionEvent(Component.java:6550)
at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3339)
at java.awt.Component.processEvent(Component.java:6274)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4505)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) -
Та же проблема,все раз по 10 перепроверил тоже..
Если понял в чем проблема,отпиши,пожалуйста. -
исходники другие взял, теперь норм!
- Статус темы:
-
Закрыта.
Поделиться этой страницей
GET: version.md5
Java Path: C:/Program Files (x86)/MinecraftLauncher1/jreAMD64/bin/java.exe
Heap size: 679.0
System Arch: amd64
16 achievements
Head acc: + 87
Body acc: + 8
CONFLICT @ -134
452 recipes
lang: ru_RU
water_mode: 0
anti_aliasing: 2
reflection_resolution: 4
reflective_items: true
reflective_clouds: false
reflect_player: true
render_v3: 1.0
water_surface_transparency: 0.05
waterfall_transparency: 0.4
water_color: 0.0, 0.4, 0.3
waterfall_color: 1.0, 1.0, 1.0
waterfall_fog: true
WARNING: Found unknown Windows version: Windows 7
Attempting to use default windows plug-in.
Loading: net.java.games.input.DirectAndRawInputEnvironmentPlugin
Starting up SoundSystem…
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
OpenAL initialized.
Card name: NVIDIA Corporation
Connecting to n1.mcgl.ru, 1138
Remove /gui/planets/13.png
Remove /gui/planets/14.png
Remove /gui/systems/1024×512/0-on.png
Remove /gui/systems/1024×512/0-off.png
Remove /gui/systems/1024×512/1-on.png
Remove /gui/systems/1024×512/1-off.png
Remove /gui/systems/1024×512/2-on.png
Remove /gui/systems/1024×512/2-off.png
Remove /gui/systems/1024×512/3-on.png
Remove /gui/systems/1024×512/3-off.png
Remove /gui/systems/1024×512/4-on.png
Remove /gui/systems/1024×512/4-off.png
Remove /gui/systems/1024×512/bg.png
IP: 86.62.89.4
Server proto: 2
LOGIN: user = rostislav.bat, uid = 295684, proto = 2
Hogwarts
pos: -2,30,-46
Loc: 0 : 1377720000000
Add paint: http://forum.mcgl.ru/images/shyvakin/strelka, tm: 0
pos: -5,28,-20
Loc: 1381480628960 : 1380139200000
Add paint: http://forum.mcgl.ru/images/-_LeOn_-/gonki, tm: 0
pos: 1,30,-46
pos: 0,32,-25
pos: 6,28,-20
pos: 1,29,-25
Spawn PLAYER: CraftMan18RUS
Spawn PLAYER: DUMBASS77
Spawn PLAYER: vlad2003vlad
New max size: 324
New max size: 484
New max size: 784
Load URL: http://forum.mcgl.ru/getdata/295684/skin
Load region: map_57_-256_-256.png
Load URL: http://forum.mcgl.ru/getdata/295684/cloak
Load region: map_57_-256_0.png
Load region: map_57_0_-256.png
Load region: map_57_0_0.png
Load URL: clans/_npc
Load URL: http://forum.mcgl.ru/getdata/110344/skin
Load URL: http://forum.mcgl.ru/getdata/110344/cloak
Load URL: http://forum.mcgl.ru/getdata/391442/skin
Load URL: http://forum.mcgl.ru/getdata/391442/cloak
Load URL: http://forum.mcgl.ru/getdata/378035/skin
Load URL: http://forum.mcgl.ru/getdata/378035/cloak
java.lang.NullPointerException
at net.minecraft.I.em.B(Unknown Source)
at net.minecraft.I.em.A(Unknown Source)
at net.minecraft.N.e.C(Unknown Source)
at net.minecraft.N.cb.G(Unknown Source)
at net.minecraft.U.mo.A(Unknown Source)
at net.minecraft.G.ky.A(Unknown Source)
at net.minecraft.U.ro.A(Unknown Source)
at net.minecraft.U.mo.B(Unknown Source)
at net.minecraft.N.cb.?(Unknown Source)
at net.minecraft.client.Minecraft.S(Unknown Source)
at net.minecraft.client.Minecraft.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at net.minecraft.L.D.A(Unknown Source)
at net.minecraft.L.H.I(Unknown Source)
at net.minecraft.L.A.run(Unknown Source)
java.lang.NullPointerException
at net.minecraft.L.D.A(Unknown Source)
at net.minecraft.L.H.I(Unknown Source)
at net.minecraft.L.A.run(Unknown Source)
java.lang.NullPointerException
at net.minecraft.L.D.A(Unknown Source)
at net.minecraft.L.H.I(Unknown Source)
at net.minecraft.L.A.run(Unknown Source)
java.lang.NullPointerException
at net.minecraft.L.D.A(Unknown Source)
at net.minecraft.L.H.I(Unknown Source)
at net.minecraft.L.A.run(Unknown Source)
java.lang.NullPointerException
at java.util.Hashtable.hash(Unknown Source)
at java.util.Hashtable.get(Unknown Source)
at java.util.Properties.getProperty(Unknown Source)
at java.util.Properties.getProperty(Unknown Source)
at net.minecraft.C.ogb.D(Unknown Source)
at net.minecraft.M.hrl.‹init›(Unknown Source)
at net.minecraft.client.Minecraft.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Stopping!
Exception in thread «AWT-EventQueue-0» java.lang.NullPointerException: component argument pData
at sun.java2d.windows.GDIWindowSurfaceData.initOps(Native Method)
at sun.java2d.windows.GDIWindowSurfaceData.‹init›(Unknown Source)
at sun.java2d.windows.GDIWindowSurfaceData.createData(Unknown Source)
at sun.java2d.d3d.D3DScreenUpdateManager.getGdiSurface(Unknown Source)
at sun.java2d.d3d.D3DScreenUpdateManager.createGraphics(Unknown Source)
at sun.awt.windows.WComponentPeer.getGraphics(Unknown Source)
at java.awt.Component.getGraphics(Unknown Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
SoundSystem shutting down…
Author: Paul Lamb, www.paulscode.com
Содержание
- Exception in Thread AWT-EventQueue-0 java.lang.NullPointerException
- Exception in thread «AWT-EventQueue-0» java.lang.NullPointerException in Java
- Exception in thread «AWT-EventQueue-0» java.lang.NullPointerException
- All 14 Replies
Exception in Thread AWT-EventQueue-0 java.lang.NullPointerException
The «AWT-EventQueue-0» java.lang.NullPointerException exception occurs when we work with Java AWT package methods, and a null value is passed to any method. This tutorial demonstrates how to solve this NullPointerException in Java.
Exception in thread «AWT-EventQueue-0» java.lang.NullPointerException in Java
The «AWT-EventQueue-0» java.lang.NullPointerException occurs when we pass a null value to the AWT package. The NullPointerException exception is the most common in Java.
The NullPointerException occurs when any of the following conditions meet.
- When accessing and modifying the null object field.
- When we invoke a method from a null object.
- When accessing and modifying the slots of the null object.
- When taking the length of any null array.
- When we try to synchronize over a null object.
- When we are throwing a null value.
Let’s try an example that will throw the «AWT-EventQueue-0» java.lang.NullPointerException in Java.
The code above is about a simple game with a cow standing, and the cow will start moving on pressing the button. It will throw the «AWT-EventQueue-0» java.lang.NullPointerException because the AWT method new ImageIcon(getClass().getResource()) is getting a null entry.
The output for this code is:
We can solve this issue by moving the images to the class folder path. We can also remove the / as Windows use \ for path in Java.
And if it is still not working, we can give the full path to the images. Further explanations are commented-out in the code above.
Sheeraz is a Doctorate fellow in Computer Science at Northwestern Polytechnical University, Xian, China. He has 7 years of Software Development experience in AI, Web, Database, and Desktop technologies. He writes tutorials in Java, PHP, Python, GoLang, R, etc., to help beginners learn the field of Computer Science.
Источник
Exception in thread «AWT-EventQueue-0» java.lang.NullPointerException
there are no visible error in the syntax but when i run the application i keep getting the following error. i have been trying to fix it for hours and simply cant find the problem. the error that appears when running is;
Exception in thread «AWT-EventQueue-0» java.lang.NullPointerException
at javax.swing.JComboBox.setModel(JComboBox.java:292)
at Application.UserManagement.initComponents(UserManagement.java:234)
at Application.UserManagement. (UserManagement.java:52)
at Application.UserManagement$7.run(UserManagement.java:448)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
BUILD SUCCESSFUL (total time: 1 second)
hopefully somone can help
- 9 Contributors 14 Replies 32K Views 3 Years Discussion Span Latest Post 9 Years Ago Latest Post by bguild
If you read the messages they tell you at which line you get the error and what the error is.
You are using something which is null
It seems that you are setting a null model for ComboBox in your initComponents() method (which is not listed in the code you’ve shown us).
Check your code at line 292 as shown in the error log.
. and next time please use [code] tags for your code
Thrown when an application attempts to use null in a case where an object is required. These include:
* Calling the instance method of a null object.
* Accessing or modifying the field of a null object.
* Taking the length of null as if it were …
Why are you talking about editing the «fixed Java classes»? The error is in your code. The error messages relate to a single error and show the sequence of calls (starting deep in the Swing event handler), via your faulty code, and maybe back into a Java API method before …
If you read the messages they tell you at which line you get the error and what the error is.
You are using something which is null
yeah i am unable to locate the thing that is null, and the errors are inside the java fixed classes which i have in no way edited.
here is the syntax from my mainGUI. does it show where the NullPointer is?
It seems that you are setting a null model for ComboBox in your initComponents() method (which is not listed in the code you’ve shown us).
Check your code at line 292 as shown in the error log.
. and next time please use [code] tags for your code
now i am getting a new set of error codes, i am unable to edit anything within the fixed java classes.
Exception in thread «AWT-EventQueue-0» java.lang.NullPointerException
at Application.UserManagement.showUsersDetails(UserManagement.java:121)
at Application.UserManagement.cmbUsersClicked(UserManagement.java:449)
at Application.UserManagement.access$000(UserManagement.java:35)
at Application.UserManagement$1.actionPerformed(UserManagement.java:268)
at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1240)
at javax.swing.JComboBox.setSelectedItem(JComboBox.java:567)
at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:603)
at Application.UserManagement. (UserManagement.java:65)
at Application.UserManagement$7.run(UserManagement.java:479)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
A NullPointerException is
Thrown when an application attempts to use null in a case where an object is required. These include:
* Calling the instance method of a null object.
* Accessing or modifying the field of a null object.
* Taking the length of null as if it were an array.
* Accessing or modifying the slots of null as if it were an array.
* Throwing null as if it were a Throwable value.
Check your showUserDetails method for one of this cases.
Hope this helps,
GL
Why are you talking about editing the «fixed Java classes»? The error is in your code. The error messages relate to a single error and show the sequence of calls (starting deep in the Swing event handler), via your faulty code, and maybe back into a Java API method before the error is detected. However, the fault will be in the few lines of your code that are listed, specifically:
at Application.UserManagement.showUsersDetails(UserManagement.java:121)
Somewhere on that line is an uninitialised variable or a method call that has returned null. If you don’t know which it is, try printing each and every value on that line to System.out
yeah i am unable to locate the thing that is null, and the errors are inside the java fixed classes which i have in no way edited.
No you were too lazy to read the messages, as I told you. That is why you couldn’t locate the error.:
Exception in thread «AWT-EventQueue-0» java.lang.NullPointerException
at javax.swing.JComboBox.setModel(JComboBox.java:292)
at Application.UserManagement.initComponents(UserManagement.java:234)
at Application.UserManagement. (UserManagement.java:52)
at Application.UserManagement$7.run(UserManagement.java:448)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
BUILD SUCCESSFUL (total time: 1 second)
Did I have to point that out to you? When you get any error, don’t you even bother to read it, or just post the error and expect others to do it for you?
If you still can’t fix it, then point out at the code where that line is. Although the problem is that you are using something which is null (you haven’t initialized something) as stated by the exception and other posters:
Источник
Hello I’m a new programmer at an high school level as a result I do not know much about programming and am getting quite a few errors which have been resolved while others I completely do not understand. I am to make a simple Check Box
selection program where the user gets to pick between a variety of choices and depending on their action the image changes. The program itself compiles perfectly but when I run it however it gives me some complications. Here is my program:
package components;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Workshop extends JPanel
implements ItemListener {
JCheckBox winterhatButton;
JCheckBox sportshatButton;
JCheckBox santahatButton;
JCheckBox redshirtButton;
JCheckBox brownshirtButton;
JCheckBox suitButton;
JCheckBox denimjeansButton;
JCheckBox blackpantsButton;
JCheckBox khakipantsButton;
StringBuffer choices;
JLabel pictureLabel;
public Workshop() {
super(new BorderLayout());
//Create the check boxes.
winterhatButton = new JCheckBox("Winter Hat");
winterhatButton.setMnemonic(KeyEvent.VK_Q);
sportshatButton = new JCheckBox("Sports Hat");
sportshatButton.setMnemonic(KeyEvent.VK_W);
santahatButton = new JCheckBox("Santa hat");
santahatButton.setMnemonic(KeyEvent.VK_E);
redshirtButton = new JCheckBox("Red Shirt");
redshirtButton.setMnemonic(KeyEvent.VK_R);
brownshirtButton = new JCheckBox("Brown Shirt");
brownshirtButton.setMnemonic(KeyEvent.VK_T);
suitButton = new JCheckBox("Suit");
suitButton.setMnemonic(KeyEvent.VK_Y);
suitButton = new JCheckBox("Denim Jeans");
suitButton.setMnemonic(KeyEvent.VK_U);
blackpantsButton = new JCheckBox("Black Pants");
blackpantsButton.setMnemonic(KeyEvent.VK_I);
khakipantsButton = new JCheckBox("Khaki Pants");
khakipantsButton.setMnemonic(KeyEvent.VK_O);
//Register a listener for the check boxes.
winterhatButton.addItemListener(this);
sportshatButton.addItemListener(this);
santahatButton.addItemListener(this);
redshirtButton.addItemListener(this);
brownshirtButton.addItemListener(this);
suitButton.addItemListener(this);
denimjeansButton.addItemListener(this);
blackpantsButton.addItemListener(this);
khakipantsButton.addItemListener(this);
//Indicates
choices = new StringBuffer("---------");
//Set up the picture label
pictureLabel = new JLabel();
pictureLabel.setFont(pictureLabel.getFont().deriveFont(Font.ITALIC));
updatePicture();
//Put the check boxes in a column in a panel
JPanel checkPanel = new JPanel(new GridLayout(0, 1));
checkPanel.add(winterhatButton);
checkPanel.add(sportshatButton);
checkPanel.add(santahatButton);
checkPanel.add(redshirtButton);
checkPanel.add(brownshirtButton);
checkPanel.add(suitButton);
checkPanel.add(denimjeansButton);
checkPanel.add(blackpantsButton);
checkPanel.add(khakipantsButton);
add(checkPanel, BorderLayout.LINE_START);
add(pictureLabel, BorderLayout.CENTER);
setBorder(BorderFactory.createEmptyBorder(20,20,20,20));
}
/** Listens to the check boxes. */
public void itemStateChanged(ItemEvent e) {
int index = 0;
char c = '-';
Object source = e.getItemSelectable();
if (source == winterhatButton) {
index = 0;
c = 'q';
} else if (source == sportshatButton) {
index = 1;
c = 'w';
} else if (source == santahatButton) {
index = 2;
c = 'e';
} else if (source == redshirtButton) {
index = 3;
c = 'r';
} else if (source == brownshirtButton) {
index = 4;
c = 't';
} else if (source == suitButton) {
index = 5;
c = 'y';
} else if (source == denimjeansButton) {
index = 6;
c = 'u';
} else if (source == blackpantsButton) {
index = 7;
c = 'i';
} else if (source == khakipantsButton) {
index = 8;
c = 'o';
}
if (e.getStateChange() == ItemEvent.DESELECTED) {
c = '-';
}
//Apply the change to the string.
choices.setCharAt(index, c);
updatePicture();
}
protected void updatePicture() {
//Get the icon corresponding to the image.
ImageIcon icon = createImageIcon(
"images/bear/bear-"
+ choices.toString()
+ ".gif");
pictureLabel.setIcon(icon);
pictureLabel.setToolTipText(choices.toString());
if (icon == null) {
pictureLabel.setText("Missing Image");
} else {
pictureLabel.setText(null);
}
}
/** Returns an ImageIcon, or null if the path was invalid. */
protected static ImageIcon createImageIcon(String path) {
java.net.URL imgURL = Workshop.class.getResource(path);
if (imgURL != null) {
return new ImageIcon(imgURL);
} else {
System.err.println("Couldn't find file: " + path);
return null;
}
}
private static void createAndShowGUI() {
//Create and set up the window.
JFrame frame = new JFrame("Build a Bear at Safeer's Workshop!");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Create and set up the content pane.
JComponent newContentPane = new Workshop();
newContentPane.setOpaque(true); //content panes must be opaque
frame.setContentPane(newContentPane);
//Display the window.
frame.pack();
frame.setVisible(true);
}
public static void main(String[] args) {
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}
});
}
}
Well up to this part it runs smoothly and complies but when I proceed to run the program I get this error.
> run components.Workshop
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at components.Workshop.<init>(Workshop.java:75)
at components.Workshop.createAndShowGUI(Workshop.java:195)
at components.Workshop.access$0(Workshop.java:189)
at components.Workshop$1.run(Workshop.java:209)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Might be a silly mistake however I cant seem to figure this out. Please Help and thank you
Here is the line that generates that error
private void jButtonSendActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
String message;
if(messageBox.getText().length() > 0){
message = messageBox.getText();
chatBox.append(message+"n");
printStream.println(message);//this line
printStream.flush();
//printStream.close();
messageBox.setText("");
}
}
- HowTo
- Java Howtos
- Exception in Thread AWT-EventQueue-0 …

The "AWT-EventQueue-0" java.lang.NullPointerException
exception occurs when we work with Java AWT package methods, and a null
value is passed to any method. This tutorial demonstrates how to solve this NullPointerException
in Java.
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
in Java
The "AWT-EventQueue-0" java.lang.NullPointerException
occurs when we pass a null value to the AWT package. The NullPointerException
exception is the most common in Java.
The NullPointerException
occurs when any of the following conditions meet.
- When accessing and modifying the
null
object field. - When we invoke a method from a
null
object. - When accessing and modifying the slots of the
null
object. - When taking the length of any
null
array. - When we try to synchronize over a
null
object. - When we are throwing a
null
value.
Let’s try an example that will throw the "AWT-EventQueue-0" java.lang.NullPointerException
in Java.
package delftstack;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.Timer;
@SuppressWarnings("serial")
public class Example extends JFrame implements ActionListener , KeyListener {
static Dimension Screen_Size = new Dimension(Toolkit.getDefaultToolkit().getScreenSize());
Insets Scan_Max = Toolkit.getDefaultToolkit().getScreenInsets(getGraphicsConfiguration());
int Task_Bar_Size = Scan_Max.bottom;
static JFrame Start_Screen = new JFrame("Start Screen");
static JFrame Game_Frame = new JFrame("Begin the Game!");
static JLabel Cow_Label = new JLabel();
static int Sky_Int = 1;
static JLabel Sky_Label = new JLabel();
static int SECONDS = 1;
static boolean IS_Pressed = false;
public static void main(String[] args) {
new Example();
}
public Example() {
JPanel Buttons_Panel = new JPanel();
Buttons_Panel.setLayout(null);
Start_Screen.setSize(new Dimension(Screen_Size.width - getWidth(), Screen_Size.height - Task_Bar_Size - getHeight()));
Start_Screen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Start_Screen.setVisible(true);
System.out.println(Start_Screen.getSize());
//buttons
JButton Start_Button = new JButton("Start");
Start_Button.addActionListener(this);
Start_Button.setSize((int) Start_Screen.getWidth()/7, (int) (Start_Screen.getHeight()/15.36));
Start_Button.setBounds((Start_Screen.getWidth()/2) - Start_Button.getWidth()/2,((int)Start_Screen.getHeight()/2) - Start_Button.getHeight(),Start_Button.getWidth(),Start_Button.getHeight());
Start_Button.setActionCommand("Start");
Buttons_Panel.add(Start_Button);
Start_Screen.add(Buttons_Panel);
}
@Override
public void actionPerformed(ActionEvent Action_Event) {
Object CMD_Object = Action_Event.getActionCommand();
if(CMD_Object == "Start") {
Start_Screen.setVisible(false);
// getClass().getResource("/cow.png") and getClass().getResource("/grass.png") is giving null
// because there is no image in folder named cow.png or grass.png
ImageIcon Cow_Image = new ImageIcon(getClass().getResource("/cow.png"));
ImageIcon Grass_Image = new ImageIcon(getClass().getResource("/grass.png"));
Game_Frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Game_Frame.setSize(Start_Screen.getSize());
Game_Frame.setVisible(true);
JPanel Demo_Panel = new JPanel();
Demo_Panel.setBackground(Color.white);
Demo_Panel.setLayout(null);
Demo_Panel.setFocusable(true);
Game_Frame.add(Demo_Panel);
Demo_Panel.addKeyListener(this);
Cow_Label.setBounds( (Start_Screen.getWidth()/2)-105, (Start_Screen.getHeight()/2)-55, 210, 111);
Cow_Label.setIcon(Cow_Image);
Demo_Panel.add(Cow_Label);
Demo_Panel.setVisible(true);
Cow_Label.setVisible(true);
JLabel Grass_Label = new JLabel();
System.out.println("grass");
// getClass().getResource("/Sky.png") will throw a nullpointerexception because there is no image in the folder
ImageIcon Sky1 = new ImageIcon(getClass().getResource("/Sky.png"));
Sky_Label.setIcon(Sky1);
Grass_Label.setIcon(Grass_Image);
Grass_Label.setBounds(0, ( Start_Screen.getHeight()-308), Start_Screen.getWidth(), 350);
System.out.println("mOooow");
Demo_Panel.add(Grass_Label);
Sky_Label.setBounds(1, 56, 1366, 364);
Demo_Panel.add(Sky_Label);
System.out.println("google");
}
}
@Override
public void keyPressed(KeyEvent Key_Event) {
int CMD_Int = Key_Event.getKeyCode();
// getClass().getResource("/cow moving.gif") will throw a nullpointerexception because there is no image in the folder
ImageIcon Moving_Cow = new ImageIcon(getClass().getResource("/cow moving.gif"));
System.out.println(CMD_Int);
IS_Pressed = true;
if(CMD_Int == 39){
System.out.println("Key is Pressed");
Cow_Label.setIcon(Moving_Cow);
}
else if(CMD_Int == 37){
}
System.out.println("End");
while(IS_Pressed==true){
Timer Wait_Please = new Timer("Wait Please");
try {
Wait_Please.wait(1000);
}
catch(InterruptedException p){}
int SKY = 1;
SKY += 1;
String SKY_String = "/Sky" + String.valueOf(SKY) + ".png";
ImageIcon SKy = new ImageIcon(getClass().getResource(SKY_String));
Sky_Label.setIcon(SKy);
if(IS_Pressed==false){
Wait_Please.cancel();
break;
}
}
}
@Override
public void keyReleased(KeyEvent Key_Event) {
// getClass().getResource("/cow.png") and getClass().getResource("/grass.png") is giving null
// because there is no image in folder named cow.png or grass.png
ImageIcon Cow_Image = new ImageIcon(getClass().getResource("/cow.png"));
int CMD_Int = Key_Event.getKeyCode();
IS_Pressed = false;
if(CMD_Int == 39){
Cow_Label.setIcon(Cow_Image);
}
else if(CMD_Int == 37){
Cow_Label.setIcon(Cow_Image);
}
}
@Override
public void keyTyped(KeyEvent c) {
// TODO Auto-generated method stub
}
}
The code above is about a simple game with a cow standing, and the cow will start moving on pressing the button. It will throw the "AWT-EventQueue-0" java.lang.NullPointerException
because the AWT method new ImageIcon(getClass().getResource())
is getting a null
entry.
The output for this code is:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null
at java.desktop/javax.swing.ImageIcon.<init>(ImageIcon.java:234)
at delftstack.Example.actionPerformed(Example.java:48)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313)
...
We can solve this issue by moving the images to the class folder path. We can also remove the /
as Windows use \
for path in Java.
And if it is still not working, we can give the full path to the images. Further explanations are commented-out in the code above.
Sheeraz is a Doctorate fellow in Computer Science at Northwestern Polytechnical University, Xian, China. He has 7 years of Software Development experience in AI, Web, Database, and Desktop technologies. He writes tutorials in Java, PHP, Python, GoLang, R, etc., to help beginners learn the field of Computer Science.
LinkedIn
Facebook
Related Article — Java Exception
This thread was marked as Locked by Lord_Ralex.
-
Search
-
Search all Forums
-
Search this Forum
-
Search this Thread
-
-
Tools
-
Jump to Forum
-
-
#1
Apr 24, 2014
123ang-
View User Profile
-
View Posts
-
Send Message
- Out of the Water
- Join Date:
12/13/2012
- Posts:
4
- Member Details
I have an error while trying to run version 2.1.2 of «Agrarian Skies: Hardcore Quest» This is my full log.
[07:47:52] [INFO] LaunchFrame.main:200: FTBLaunch starting up (version 1.3.8) [07:47:52] [INFO] JGoogleAnalyticsTracker$2.run:483: AnalyticsBackgroundThread started [07:47:52] [INFO] LaunchFrame.main:201: Java version: 1.7.0_45 [07:47:52] [INFO] LaunchFrame.main:202: Java vendor: Oracle Corporation [07:47:52] [INFO] LaunchFrame.main:203: Java home: C:Program FilesJavajre7 [07:47:52] [INFO] LaunchFrame.main:204: Java specification: Java Virtual Machine Specification version: 1.7 by Oracle Corporation [07:47:52] [INFO] LaunchFrame.main:206: Java vm: Java HotSpot(TM) 64-Bit Server VM version: 24.45-b08 by Oracle Corporation [07:47:52] [INFO] LaunchFrame.main:207: OS: amd64 Windows 7 6.1 [07:47:52] [INFO] LaunchFrame.main:208: Launcher Install Dir: C:UsersAngusDownloads [07:47:52] [INFO] LaunchFrame.main:209: System memory: 6044M free, 8130M total [07:47:52] [INFO] DownloadUtils.run:314: Balance has selected Automatic:CreeperRepo [07:47:53] [INFO] DownloadUtils.run:362: DL ready [07:47:53] [INFO] LocaleUpdater.run:67: [i18n] Checking for updates ... [07:47:53] [INFO] I18N.setLocale:127: [i18n] enUS English language file loaded! [07:47:53] [INFO] DownloadUtils.run:403: Using download server Automatic:Miami on host miami1.creeperrepo.net (50.7.65.98) [07:47:53] [INFO] JavaFinder.parseWinJavaVersion:103: The FTB Launcher has found the following Java versions installed: [07:47:53] [INFO] JavaFinder.parseWinJavaVersion:105: Java Version: 1.7.0_55 sorted as: 1.7.0_55 32 Bit Java at : C:Program Files (x86)Javajre7binjava.exe [07:47:53] [INFO] JavaFinder.parseWinJavaVersion:105: Java Version: 1.7.0_45 sorted as: 1.7.0_45 64 Bit Java at : C:Program FilesJavajre7binjava.exe [07:47:53] [INFO] JavaFinder.parseWinJavaVersion:105: Java Version: 1.7.0_45 sorted as: 1.7.0_45 32 Bit Java at : C:Program Files (x86)Javajdk1.7.0_45binjava.exe [07:47:53] [INFO] JavaFinder.parseWinJavaVersion:105: Java Version: 1.7.0_45 sorted as: 1.7.0_45 64 Bit Java at : C:Windowssystem32java.exe [07:47:53] [INFO] JavaFinder.parseWinJavaVersion:105: Java Version: 1.7.0_55 sorted as: 1.7.0_55 32 Bit Java at : C:WindowsSysWOW64java.exe [07:47:53] [INFO] JavaFinder.parseWinJavaVersion:124: Preferred: Java Version: 1.7.0_45 sorted as: 1.7.0_45 64 Bit Java at : C:Program FilesJavajre7binjava.exe [07:47:53] [INFO] OptionsPane.<init>:157: [i18n] Added 0 enUS to options pane [07:47:53] [INFO] I18N.setLocale:127: [i18n] enUS English language file loaded! [07:47:53] [INFO] LocaleUpdater.run:80: [i18n] remoteVer = 10 [07:47:53] [INFO] LocaleUpdater.run:93: [i18n] localVer = 10 [07:47:53] [INFO] LocaleUpdater.run:98: [i18n] Files are up to date [07:47:53] [INFO] I18N.addFiles:104: [i18n] Fallback enUS loaded [07:47:54] [INFO] AuthlibDLWorker.doInBackground:62: Downloading Jars [07:47:57] [INFO] AuthlibDLWorker.doInBackground:68: Adding Authlib to Classpath [07:47:58] [INFO] ModpackLoader.run:60: Loading modpack information for modpacks.xml... [07:47:58] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 1 (Monster) [07:47:58] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 2 (Pax East 2014 Map) [07:47:58] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 3 (Direwolf20) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 4 (Horizons) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 5 (Tech World 2) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 6 (Magic World 2) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 7 (FTBLite2) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 8 (FTB Unleashed) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 9 (FTB Ultimate) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 10 (Unstable 1.7.2) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 11 (FTB Lite) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 12 (Magic Farm 2:Adventures in Technology) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 13 (BloodNBones) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 14 (Agrarian Skies: Hardcore Quest) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 15 (Voxel) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 16 (Infamy) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 17 (Lapito's Galacticraft Modpack) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 18 (Direwolf20 1.5 v2) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 19 (Direwolf20 Pack) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 20 (MindCrack Pack) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 21 (YogCraft Modpack) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 22 (FTB Unhinged) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 23 (New World Mod Pack) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 24 (RPG Immersion Pack) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 25 (BronyModPack) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 26 (Ampz Modpack) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 27 (VoxelModPack) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 28 (Magic Farm) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 29 (Magic World) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 30 (Tech World) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 31 (Pax Challenge Pack) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 32 (Feed The Beast Retro SSP) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 33 (Feed The Beast Retro SMP) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 34 (Slow's Stream Pack) [07:47:59] [INFO] ModpacksPane.onModPackAdded:314: Adding pack 35 (Feed The Beast Beta Pack A) [07:47:59] [INFO] MapLoader.run:42: loading map information... [07:47:59] [INFO] TexturePackLoader.run:42: loading texture pack information... [07:48:00] [INFO] TexturepackPane.onTexturePackAdded:221: Adding texture pack 1 (Soartex Fanver) [07:48:00] [INFO] TexturepackPane.onTexturePackAdded:221: Adding texture pack 2 (Jadedcat Mixpack) [07:48:00] [INFO] TexturepackPane.onTexturePackAdded:221: Adding texture pack 3 (Faithful) [07:48:00] [INFO] TexturepackPane.onTexturePackAdded:221: Adding texture pack 4 (JohnSmith Technicians Remix) [07:48:00] [INFO] TexturepackPane.onTexturePackAdded:221: Adding texture pack 5 (Familiar yet Different) [07:48:00] [INFO] TexturepackPane.onTexturePackAdded:221: Adding texture pack 6 (Love And Tolerance) [07:48:00] [INFO] MapsPane.onMapAdded:226: Adding map 1 (Direwolf20 Map Ep.0) [07:48:00] [INFO] MapsPane.onMapAdded:226: Adding map 2 (FTB Pax Challenge) [07:48:00] [INFO] MapsPane.onMapAdded:226: Adding map 3 (Direwolf20 Map Ep.0) [07:48:00] [INFO] MapsPane.onMapAdded:226: Adding map 4 (Direwolf20 Map Ep.10) [07:48:00] [INFO] MapsPane.onMapAdded:226: Adding map 5 (Direwolf20 Map Ep.20) [07:48:00] [INFO] MapsPane.onMapAdded:226: Adding map 6 (Direwolf20 Map Ep.30) [07:48:00] [INFO] MapsPane.onMapAdded:226: Adding map 7 (Direwolf20 Map Ep.40) [07:48:00] [INFO] MapsPane.onMapAdded:226: Adding map 8 (Direwolf20 Map Ep.50) [07:48:00] [INFO] MapsPane.onMapAdded:226: Adding map 9 (Direwolf20 Map Ep.80) [07:48:00] [INFO] MapsPane.onMapAdded:226: Adding map 10 (FTB Normal) [07:48:00] [INFO] MapsPane.onMapAdded:226: Adding map 11 (FTB Insanity) [07:48:04] [INFO] LaunchFrame.doLogin:700: Logging in... [07:48:04] [INFO] AuthlibHelper.authenticateWithAuthlib:21: Beginning authlib authentication attempt [07:48:04] [INFO] AuthlibHelper.authenticateWithAuthlib:23: successfully created YggdrasilAuthenticationService [07:48:06] [INFO] LoginWorker.doInBackground:54: using Authlib authentication data [07:48:06] [INFO] LaunchFrame$14.done:759: Login complete. [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.ssl.Alerts.getSSLException(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.ssl.Handshaker.fatalSE(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.ssl.Handshaker.fatalSE(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.ssl.Handshaker.processLoop(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.ssl.Handshaker.process_record(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at java.net.URL.openStream(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at net.ftb.util.DownloadUtils.downloadToFile(DownloadUtils.java:161) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at net.ftb.gui.LaunchFrame.gatherAssets(LaunchFrame.java:1053) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at net.ftb.gui.LaunchFrame.setupNewStyle(LaunchFrame.java:895) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at net.ftb.gui.LaunchFrame.runGameUpdater(LaunchFrame.java:836) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at net.ftb.gui.LaunchFrame.access$600(LaunchFrame.java:128) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at net.ftb.gui.LaunchFrame$14.done(LaunchFrame.java:760) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at javax.swing.SwingWorker$5.run(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.swing.AccumulativeRunnable.run(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at javax.swing.Timer.fireActionPerformed(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at javax.swing.Timer$DoPostEvent.run(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at java.awt.event.InvocationEvent.dispatch(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at java.awt.EventQueue.access$200(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at java.awt.EventQueue$3.run(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at java.awt.EventQueue$3.run(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at java.security.AccessController.doPrivileged(Native Method) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at java.awt.EventQueue.dispatchEvent(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at java.awt.EventDispatchThread.run(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: Caused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.validator.PKIXValidator.doValidate(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.validator.PKIXValidator.engineValidate(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.validator.Validator.validate(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: ... 39 more [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: Caused by: java.security.cert.CertPathValidatorException: timestamp check failed [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.provider.certpath.PKIXCertPathValidator.doValidate(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at java.security.cert.CertPathValidator.validate(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: ... 45 more [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: Caused by: java.security.cert.CertificateNotYetValidException: NotBefore: Sat Apr 12 10:00:00 EST 2014 [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.x509.CertificateValidity.valid(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.x509.X509CertImpl.checkValidity(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.provider.certpath.BasicChecker.verifyTimestamp(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: at sun.security.provider.certpath.BasicChecker.check(Unknown Source) [07:48:06] [ERROR] LauncherConsole$OutputOverride.write:93: From Console: ... 49 more [07:48:06] [ERROR] LaunchFrame.setupNewStyle:897->LaunchFrame$1$2.uncaughtException:362: Unhandled exception in Thread[AWT-EventQueue-0,6,main]: java.lang.NullPointerException net.ftb.gui.LaunchFrame.setupNewStyle(LaunchFrame.java:897) net.ftb.gui.LaunchFrame.runGameUpdater(LaunchFrame.java:836) net.ftb.gui.LaunchFrame.access$600(LaunchFrame.java:128) net.ftb.gui.LaunchFrame$14.done(LaunchFrame.java:760) javax.swing.SwingWorker$5.run(Unknown Source) javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source) sun.swing.AccumulativeRunnable.run(Unknown Source) javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source) javax.swing.Timer.fireActionPerformed(Unknown Source) javax.swing.Timer$DoPostEvent.run(Unknown Source) java.awt.event.InvocationEvent.dispatch(Unknown Source) java.awt.EventQueue.dispatchEventImpl(Unknown Source) java.awt.EventQueue.access$200(Unknown Source) java.awt.EventQueue$3.run(Unknown Source) java.awt.EventQueue$3.run(Unknown Source) java.security.AccessController.doPrivileged(Native Method) java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) java.awt.EventQueue.dispatchEvent(Unknown Source) java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) java.awt.EventDispatchThread.pumpEvents(Unknown Source) java.awt.EventDispatchThread.pumpEvents(Unknown Source) java.awt.EventDispatchThread.run(Unknown Source)
The Last line of the log error is this
Unhandled exception in Thread[AWT-EventQueue-0,6,main]: java.lang.NullPointerException
I have no idea how this happened, this is my first time using Feed The Beast. By the way my Java is the most recent update at this time of posting (Version 7 Update 55)
Please Help Me!
-
-
#2
May 21, 2014
eareos-
View User Profile
-
View Posts
-
Send Message
- The Meaning of Life, the Universe, and Everything.
- Join Date:
6/19/2012
- Posts:
55
- Minecraft:
eareos
- Member Details
Im Getting The Same Problem. Only FTB was working before now its not.
-
-
#3
May 21, 2014
eareos-
View User Profile
-
View Posts
-
Send Message
- The Meaning of Life, the Universe, and Everything.
- Join Date:
6/19/2012
- Posts:
55
- Minecraft:
eareos
- Member Details
FIx!
Change Your Profile Name To Match The Email Address Accosceated With Your Minecraft Account.
-
- To post a comment, please login.
Posts Quoted:
Reply
Clear All Quotes