分类: Sevrice&IDE预览模式: 普通 | 列表
08-03
22

Could not find a getter for * in class ..

net.sf.hibernate.PropertyNotFoundException:Could not find a getter for isAdmin in class order.vo.UserStatus

   可能会有人纳闷这个Hibernate错误,我怎么会归类到Eclipse分类中,其实我今天遇到这个错误并不关hibernate什么事情,而是eclipse生成的getter/setter方法让hibernate不认,一般来说当值对象VO中有布尔类型变量,那么会把get方法取而代之为is.下面是ecplise自动生成的代码,也是hibernate报错的代码:
private boolean isAdmin;

public boolean isAdmin() {
        return isAdmin;
    }
    public void setAdmin(boolean isAdmin) {
        this.isAdmin = isAdmin;

查看更多...

Tags: 错误 Eclipse

分类:Sevrice&IDE | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 989
08-03
08

eclipse不能编译

    今天把原有的一个老网站升级,直接从新的网站搬过来了一些程序,因为老个网站是前后开发的,功能多数差不多,个别地方改改就好了,所以程序我多数采取了覆盖(如果抛出异常也是我意料之中)。但是让我没有想到的是,eclipse竟然'死'了,不能编译class文件,删了class下的文件后不会重新生成。重新部署也不成。接着我把lib下的jar全部清空重新加入,活过来了。这是什么个情况

查看更多...

Tags: 编译

分类:Sevrice&IDE | 固定链接 | 评论: 2 | 引用: 0 | 查看次数: 1189
08-02
10

eclipse3.1下配置Tomcat失败

    放假在家实在闲得发慌,本不想在过年时碰代码(如果是上班的话,回到家代码肯定我是不看的),但人还是闲不住。想想还是写写吧,其实早有准备——放假前项目都copy到我U盘了。结果因为家里的机器很久没有写程序,数据库都得重装下。可是我的光驱不给面子,只好今天去买了个光驱……
   家里的eclipse比较老古董,3.1的。将就了吧。。结果配置Web Server还老出错:

     打消我积极向上的决心啊...虽然我英语很烂,不过一看就是没有指定Tomcat的JDK目录。解决!
  
   接着,项目代码中报了很多错误,在单位写的时候可是全部通过的啊。
   错误:仅当源级别为 5.0 时类型参数才可用
   这个也好办:
引用内容 引用内容
    1、首选项-->Java-->编译器-->编译器一致性级别(选择5.0)

查看更多...

Tags: TOMCAT

分类:Sevrice&IDE | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 676
08-01
26

Eclipse中导入工程提示:invalid project description

Today, when I imported an existing project into eclipse's workspace, I got the following error:

Invalid project description.

D:/eclipse/workspace/report and D:/eclipse/workspace overlap

In the beginning, my project was located in D:/report instead of the workspace directory of eclipse, and its name was test. It worked well then. After googling on the internet, I found the root cause of the problem.

There are two kinds of places where projects can be located:

查看更多...

Tags: invalid project description

分类:Sevrice&IDE | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 1985
08-01
18

解决Eclipse内存不足

E:\tools\eclipse-SDK-3.2\eclipse\eclipse.exe -vmargs -Xms512M -Xmx1024M -XX:PermSize=128M -XX:MaxPermSize=256M
分类:Sevrice&IDE | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 916
MyEclipse中新建一个MessageBundle.properties文件,如果输入中文保存时就会提示错误:
Save could not be completed.
Reason:
some characters cannot be mapped using "ISO-8859-1" character encoding.
Either change the encoding or remove the characters which are not supported
by the "ISO-8859-1" character encoding.

引用内容 引用内容
解决办法:
打开Eclipse的Preferences,选择General->Content Types,然后修改右面的Text下的Java Properites File的默认编码方式为UTF-8,点击Update就可以了!

查看更多...

Tags: 未能保存 中文

分类:Sevrice&IDE | 固定链接 | 评论: 1 | 引用: 0 | 查看次数: 921