设为首页收藏本站

JEECG官方网站-企业级JAVA快速开发平台

 找回密码
 立即注册

关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 最新动态 - 技术支持 - 师徒架构班

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务 QQ: 3102411850、418799587 商务热线: 18611788525 客服电话: 010-64808099 官方邮箱: jeecgos@163.com

楼主: admin

[开发环境搭建] JEECG 常见问题大全

  [复制链接]

1

主题

0

好友

23

积分

新手上路

Rank: 2

发表于 2018-6-13 21:36:27 |显示全部楼层
今天下载,maven run报错
[2018-06-13 20:56:54] [INFO] [org.quartz.impl.StdSchedulerFactory:1362] Quartz scheduler 'schedulerFactory' initialized from an externally provided properties instance.
[2018-06-13 20:56:54] [INFO] [org.quartz.impl.StdSchedulerFactory:1366] Quartz scheduler version: 2.3.0
[2018-06-13 20:56:54] [INFO] [org.quartz.core.QuartzScheduler:2287] JobFactory set to: org.jeecgframework.web.system.sms.util.JQuartzJobFactory@5b30bf22
[2018-06-13 20:56:55] [ERROR] [com.alibaba.druid.pool.DruidDataSource:2469] create connection SQLException, url: jdbc:mysql://localhost:3306/jeecg?useUnicode=true&characterEncoding=UTF-8, errorCode 0, state S1009
java.sql.SQLException: java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1078)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)
        at com.mysql.jdbc.ConnectionImpl.buildCollationMapping(ConnectionImpl.java:1074)
        at com.mysql.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:3600)
        at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541)
        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2311)
        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:834)
        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:347)
        at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:149)
        at com.alibaba.druid.filter.stat.StatFilter.connection_connect(StatFilter.java:218)
        at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:143)
        at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1515)
        at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1578)
        at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2466)
Caused by: java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long
        at com.mysql.jdbc.ConnectionImpl.buildCollationMapping(ConnectionImpl.java:1019)
        ... 18 more

求助
回复

使用道具 举报

0

主题

0

好友

19

积分

新手上路

Rank: 2

发表于 2018-7-23 11:36:38 |显示全部楼层
[2018-07-23 11:12:46] [ERROR] [org.springframework.web.context.ContextLoader:336] Context initialization failed
java.lang.NoClassDefFoundError: javax/websocket/Session
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.lang.Class.getDeclaredMethods(Unknown Source)
        at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:406)
        at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:333)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:909)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
        at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
        at org.apache.catalina.startup.Embedded.start(Embedded.java:825)
        at org.codehaus.mojo.tomcat.AbstractRunMojo.startContainer(AbstractRunMojo.java:558)
        at org.codehaus.mojo.tomcat.AbstractRunMojo.execute(AbstractRunMojo.java:255)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
        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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.ClassNotFoundException: javax.websocket.Session
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)
        ... 49 more
请各位看下这个问题是什么原因导致的
回复

使用道具 举报

83#
无效楼层,该帖已经被删除
84#
无效楼层,该帖已经被删除

0

主题

0

好友

19

积分

新手上路

Rank: 2

发表于 2018-8-4 00:27:55 |显示全部楼层
按照入门教程设置完,使用maven启动成功后输入网址出现错误,然后根据新手教程里面所有的文件都下载完成后工程里面依然有错误,可以看一下么?

启动出错

启动出错
2.JPG
3.JPG
4.JPG
5.JPG
回复

使用道具 举报

3

主题

1

好友

94

积分

注册会员

Rank: 3Rank: 3

发表于 2018-8-18 22:38:52 |显示全部楼层
sql语句查询结果集封装好后给前台, 分页只能展示第一页的内容, page只是1, total只是第一页最大条数, 下面是我写的:

dao:====================
/**
* 查询客户信息
*
* @param resultVo
* @param page
* @param rows
* @param request
* @return
*/
@Override
public DataReturn getAllEntities(ResultVo resultVo, int page, int rows, HttpServletRequest request) {
    StringBuilder sql = new StringBuilder(
            " SELECT " +
            " a.acc_no, " +
            " a.address, " +
            " a.premise_type, " +
            " b.BALANCE, " +
            " m.meter_id " +
            " FROM " +
            " A_CUSTOMER_INFO a " +
            " LEFT JOIN A_ACCT_BAL b ON a.acc_no = b.ACC_NO " +
            " LEFT JOIN A_METER_INFO m ON a.acc_no = m.acc_no " +
            " WHERE 1=1 "
);

    StringBuilder condition = new StringBuilder("");
    ArrayList params = new ArrayList();

    String accNo = resultVo.getAccNo();
    if (accNo != null && !"".equals(accNo)) {
        condition.append(" and a.acc_no like ? ");
        params.add("%" + accNo + "%");
    }

    String sqlQuery = sql.append(condition.toString()).toString();
    Query q = getSession().createSQLQuery(sqlQuery);

    if (params != null && params.size() > 0) {
        for (int i = 0; i < params.size(); i++) {
            q.setParameter(i, params.get(i));
        }
    }
    q.setFirstResult((page - 1) * rows).setMaxResults(rows);
    List<Object[]> list = q.list();

    List<ResultVo> resultVos = new ArrayList<>();
    DecimalFormat df = new DecimalFormat("0.00");
    if (list != null && list.size() > 0) {
        ResultVo resultVo1 = null;
        for (int i = 0; i < list.size(); i++) {
            resultVo1 = new ResultVo();
            Object[] objects = list.get(i);
            if (objects != null) {
                resultVo1.setAccNo(objects[0] != null ? (String) objects[0] : "");
                resultVo1.setAddress(objects[1] != null ? (String) objects[1] : "");
                resultVo1.setPremiseType(objects[2] != null ? (String) objects[2] : "");
                if (objects[3] != null) {
                    BigDecimal big3 = ((BigDecimal) objects[3]).setScale(2, BigDecimal.ROUND_HALF_UP);
                    double db3 = big3.doubleValue();
                    String format = df.format(db3);
                    BigDecimal bigbal = new BigDecimal(format);
                    resultVo1.setBalance(bigbal);
                }
                resultVo1.setMeterId(objects[4] != null ? (String) objects[4] : "");
                resultVos.add(resultVo1);
            }
        }
    }

    int count = list.size();
    DataReturn data = new DataReturn();
    data.setRows(resultVos);
    data.setTotal(count);

    return data;
}

controller:====================
@RequestMapping(params = "definedDatagrid")
public void definedDatagrid(ResultVo resultVo, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
   DataReturn dataReturn = this.topupRecordService.getAllEntities(resultVo,dataGrid.getPage(),dataGrid.getRows(),request);
   dataGrid.setResults(dataReturn.getRows());
   dataGrid.setTotal((int)dataReturn.getTotal());
   TagUtil.datagrid(response, dataGrid);
}

jsp:====================
<div class="easyui-layout" fit="true">
    <div region="center" style="padding:0px;border:0px">
        <t:datagrid name="collectionAgentInfoList" checkbox="false" pageSize="10" sortName="accNo" pagination="true" fitColumns="true" title="Collection Agent Information List"
                        superQuery="false" actionUrl="topupRecordController.do?definedDatagrid" idField="accNo" fit="true" queryMode="group" filter="true" >
            <t:dgCol align="center" title="Account No." query="true" field="accNo" width="100"></t:dgCol>
            <t:dgCol align="center" title="Credit Balance" field="balance" width="80"></t:dgCol>
            <t:dgCol align="center" title="Premise Type" field="premiseType" width="80"></t:dgCol>
            <t:dgCol align="center" title="Meter No." field="meterId" width="120"></t:dgCol>
            <t:dgCol align="center" title="Customer Address" field="address" width="200"></t:dgCol>
        </t:datagrid>
    </div>
</div>
我写的哪里有问题吗?怎么修改呢
回复

使用道具 举报

3

主题

1

好友

94

积分

注册会员

Rank: 3Rank: 3

发表于 2018-8-28 11:14:08 |显示全部楼层
登录界面选了英文, 日期控件还是中文?
回复

使用道具 举报

0

主题

0

好友

21

积分

新手上路

Rank: 2

发表于 2018-10-17 16:09:00 |显示全部楼层
zhouhl 发表于 2016-11-29 21:40
项目启动后报这个错误是什么原因呀?
严重: Exception sending context initialized event to listener ins ...

你好,请问这个问题你解决了吗?要怎么做?
回复

使用道具 举报

0

主题

0

好友

19

积分

新手上路

Rank: 2

发表于 2018-10-30 14:53:56 |显示全部楼层
请问这个问题怎么解决?
7BAD37A7-D87F-48dc-BD44-E76FAD4B3257.png
回复

使用道具 举报

0

主题

0

好友

19

积分

新手上路

Rank: 2

发表于 2018-11-2 10:09:51 |显示全部楼层
请问表格行编辑不行是怎么回事?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

Archiver|手机版|JEECG快速开发平台 - 官方论坛 ( 京ICP备12013567号-3 )  

GMT+8, 2019-7-19 05:41 , Processed in 1.388403 second(s), 23 queries , Gzip On.

JEECG Open Source

© 2001-2012 Comsenz Inc.

回顶部