主题:高手帮忙呀
java.lang.NullPointerException
at chat.ChatViewImpl.setComBox(ChatViewImpl.java:38)
at chat.ChatModel1Impl.refreshChaters(ChatModel1Impl.java:140)
at chat.ChatModel1Impl.registerClient(ChatModel1Impl.java:68)
at chat.ChatViewImpl.<init>(ChatViewImpl.java:27)
at chat.ChatApp.main(ChatApp.java:14)
这就是在MYSQL里建的数据库:
drop database if exists STOREDB;
create database STOREDB;
use STOREDB;
create table CLIENT(
NAME varchar(16) primary key,
MSG varchar(255)
);
insert into CLIENT(NAME,MSG) values('cleint1','');
先谢谢了
at chat.ChatViewImpl.setComBox(ChatViewImpl.java:38)
at chat.ChatModel1Impl.refreshChaters(ChatModel1Impl.java:140)
at chat.ChatModel1Impl.registerClient(ChatModel1Impl.java:68)
at chat.ChatViewImpl.<init>(ChatViewImpl.java:27)
at chat.ChatApp.main(ChatApp.java:14)
这就是在MYSQL里建的数据库:
drop database if exists STOREDB;
create database STOREDB;
use STOREDB;
create table CLIENT(
NAME varchar(16) primary key,
MSG varchar(255)
);
insert into CLIENT(NAME,MSG) values('cleint1','');
先谢谢了