NutzCN Logo
问答 java.sql.SQLException: 内部错误: Invalid type code
发布于 2174天前 作者 码农 1472 次浏览 复制 上一个帖子 下一个帖子
标签:

return getObject(dataid, condition, length, start, draw, order, columns);的时候报错了,从来没遇到过啊,有点慌,麻烦各位大佬指导指导

 @At("/data/?")
    @POST
    @Ok("json:{locked:'password|salt',ignoreNull:false}") // 忽略password和createAt属性,忽略空属性的json输出
    //@RequiresPermissions("sys.manager.data.10001")
    @RequiresAuthentication
    public Object data(@Param("dataid") String dataid, @Param("condition") String condition, @Param("length") int length, @Param("start") int start, @Param("draw") int draw, @Param("::order") List<DataTableOrder> order, @Param("::columns") List<DataTableColumn> columns, HttpServletRequest req) {
        try {
            //获取当前登陆对象
            Subject subject = SecurityUtils.getSubject();
            //获取当前用户的信息
            Sys_user login_user = (Sys_user) subject.getPrincipal();
            //根据id获取数据名称
            String dataName = sysDataService.getDataNameById(dataid);
            String fullSpell = PingYinUtil.getFullSpell(dataName);
            String perm = pp.get(fullSpell);
            if (!Strings.isBlank(perm) && subject.isPermitted(perm)) {
                return getObject(dataid, condition, length, start, draw, order, columns);
            } else {
                return Result.error("没有权限访问[" + dataName + "]");
            }
        } catch (Exception e) {
            e.printStackTrace();
            return Result.error("没有权限访问");
        }
    }


    private Object getObject(@Param("dataid") String dataid, @Param("condition") String condition, @Param("length") int length, @Param("start") int start, @Param("draw") int draw, @Param("::order") List<DataTableOrder> order, @Param("::columns") List<DataTableColumn> columns) {
        try {

            Cnd cnd = Cnd.NEW();
            if (!Strings.isBlank(dataid)) //isBlank 是判断 是否为空 或 长度为0 或 有空格内容 组成
                cnd.and("categoryid", "like", dataid + "%");
            if (!Strings.isBlank(condition)) {
                cnd.and("(name||address)", "like", "%" + condition + "%");
            }
            return sysDataService.Data(length, start, draw, order, columns, cnd, null);
        } catch (Exception e) {
            e.printStackTrace();
            return Result.error("system.error");
        }
    }
java.sql.SQLException: 内部错误: Invalid type code
	at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
	at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)
	at oracle.jdbc.oracore.OracleTypeUPT.getTypeCode(OracleTypeUPT.java:139)
	at oracle.jdbc.oracore.OracleTypeUPT$FM$getTypeCode$368a4b19ca881db4e724deb4a21096f2.invoke(OracleTypeUPT.java)
	at org.nutz.lang.eject.EjectByGetter.eject(EjectByGetter.java:33)
	at org.nutz.json.entity.JsonEntityField.getValue(JsonEntityField.java:167)
	at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:262)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:133)
	at org.nutz.json.impl.JsonRenderImpl.array2Json(JsonRenderImpl.java:417)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:129)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:172)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:339)
	at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:332)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:133)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:172)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:339)
	at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:332)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:133)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:172)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:339)
	at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:332)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:133)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:172)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:339)
	at org.nutz.json.impl.JsonRenderImpl.map2Json(JsonRenderImpl.java:226)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:121)
	at org.nutz.json.Json.toJson(Json.java:239)
	at org.nutz.json.Json.toJson(Json.java:201)
	at org.nutz.dao.entity.Record.toString(Record.java:242)
	at java.lang.String.valueOf(String.java:2994)
	at java.lang.StringBuilder.append(StringBuilder.java:131)
	at java.util.AbstractCollection.toString(AbstractCollection.java:462)
	at java.lang.String.valueOf(String.java:2994)
	at java.lang.StringBuilder.append(StringBuilder.java:131)
	at java.util.AbstractMap.toString(AbstractMap.java:559)
	at java.lang.String.valueOf(String.java:2994)
	at java.lang.StringBuilder.append(StringBuilder.java:131)
	at java.util.AbstractMap.toString(AbstractMap.java:559)
	at org.nutz.mvc.ActionContext.toString(ActionContext.java:217)
	at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:33)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:33)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at cn.wizzer.app.web.commons.processor.XssSqlFilterProcessor.process(XssSqlFilterProcessor.java:43)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at cn.wizzer.app.web.commons.processor.NutShiroProcessor.process(NutShiroProcessor.java:52)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at cn.wizzer.app.web.commons.processor.GlobalsSettingProcessor.process(GlobalsSettingProcessor.java:36)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:21)
	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at cn.wizzer.app.web.commons.filter.RouteFilter.doFilter(RouteFilter.java:152)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
	at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
	at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
	at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
	at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
	at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
	at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.nutz.mvc.WhaleFilter.doFilter(WhaleFilter.java:159)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:492)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1152)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2527)
	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2516)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)
[DEBUG] 2019-01-09 15:00:01,112 org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:3877) - ClusterManager: Check-in complete.
[INFO ] 2019-01-09 15:00:01,117 org.nutz.lang.eject.EjectByGetter.eject(EjectByGetter.java:42) - Fail to value by getter
java.sql.SQLException: 内部错误: Invalid type code
	at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
	at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)
	at oracle.jdbc.oracore.OracleTypeUPT.getTypeCode(OracleTypeUPT.java:139)
	at oracle.jdbc.oracore.OracleTypeUPT$FM$getTypeCode$368a4b19ca881db4e724deb4a21096f2.invoke(OracleTypeUPT.java)
	at org.nutz.lang.eject.EjectByGetter.eject(EjectByGetter.java:33)
	at org.nutz.json.entity.JsonEntityField.getValue(JsonEntityField.java:167)
	at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:262)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:133)
	at org.nutz.json.impl.JsonRenderImpl.array2Json(JsonRenderImpl.java:417)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:129)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:172)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:339)
	at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:332)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:133)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:172)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:339)
	at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:332)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:133)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:172)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:339)
	at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:332)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:133)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:172)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:339)
	at org.nutz.json.impl.JsonRenderImpl.map2Json(JsonRenderImpl.java:226)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:121)
	at org.nutz.json.impl.JsonRenderImpl.coll2Json(JsonRenderImpl.java:429)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:125)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:172)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:339)
	at org.nutz.json.impl.JsonRenderImpl.map2Json(JsonRenderImpl.java:226)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:121)
	at org.nutz.json.Json.toJson(Json.java:239)
	at org.nutz.mvc.Mvcs.write(Mvcs.java:292)
	at org.nutz.mvc.view.UTF8JsonView.render(UTF8JsonView.java:68)
	at org.nutz.mvc.impl.processor.ViewProcessor.process(ViewProcessor.java:66)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:33)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:33)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at cn.wizzer.app.web.commons.processor.XssSqlFilterProcessor.process(XssSqlFilterProcessor.java:43)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at cn.wizzer.app.web.commons.processor.NutShiroProcessor.process(NutShiroProcessor.java:52)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at cn.wizzer.app.web.commons.processor.GlobalsSettingProcessor.process(GlobalsSettingProcessor.java:36)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:21)
	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at cn.wizzer.app.web.commons.filter.RouteFilter.doFilter(RouteFilter.java:152)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
	at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
	at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
	at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
	at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
	at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
	at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.nutz.mvc.WhaleFilter.doFilter(WhaleFilter.java:159)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:492)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1152)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2527)
	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2516)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)
[INFO ] 2019-01-09 15:00:01,241 org.nutz.lang.eject.EjectByGetter.eject(EjectByGetter.java:42) - Fail to value by getter
java.sql.SQLException: 内部错误: Invalid type code
	at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
	at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)
	at oracle.jdbc.oracore.OracleTypeUPT.getTypeCode(OracleTypeUPT.java:139)
	at oracle.jdbc.oracore.OracleTypeUPT$FM$getTypeCode$368a4b19ca881db4e724deb4a21096f2.invoke(OracleTypeUPT.java)
	at org.nutz.lang.eject.EjectByGetter.eject(EjectByGetter.java:33)
	at org.nutz.json.entity.JsonEntityField.getValue(JsonEntityField.java:167)
	at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:262)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:133)
	at org.nutz.json.impl.JsonRenderImpl.array2Json(JsonRenderImpl.java:417)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:129)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:172)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:339)
	at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:332)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:133)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:172)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:339)
	at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:332)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:133)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:172)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:339)
	at org.nutz.json.impl.JsonRenderImpl.pojo2Json(JsonRenderImpl.java:332)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:133)
	at org.nutz.json.impl.JsonRenderImpl.appendPair(JsonRenderImpl.java:172)
	at org.nutz.json.impl.JsonRenderImpl.writeItem(JsonRenderImpl.java:339)
	at org.nutz.json.impl.JsonRenderImpl.map2Json(JsonRenderImpl.java:226)
	at org.nutz.json.impl.JsonRenderImpl.render(JsonRenderImpl.java:121)
	at org.nutz.json.Json.toJson(Json.java:239)
	at org.nutz.json.Json.toJson(Json.java:201)
	at org.nutz.dao.entity.Record.toString(Record.java:242)
	at java.lang.String.valueOf(String.java:2994)
	at java.lang.StringBuilder.append(StringBuilder.java:131)
	at java.util.AbstractCollection.toString(AbstractCollection.java:462)
	at java.lang.String.valueOf(String.java:2994)
	at java.lang.StringBuilder.append(StringBuilder.java:131)
	at java.util.AbstractMap.toString(AbstractMap.java:559)
	at java.lang.String.valueOf(String.java:2994)
	at java.lang.StringBuilder.append(StringBuilder.java:131)
	at java.util.AbstractMap.toString(AbstractMap.java:559)
	at org.nutz.mvc.ActionContext.toString(ActionContext.java:217)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:126)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at cn.wizzer.app.web.commons.processor.GlobalsSettingProcessor.process(GlobalsSettingProcessor.java:36)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:21)
	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at cn.wizzer.app.web.commons.filter.RouteFilter.doFilter(RouteFilter.java:152)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
	at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
	at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
	at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
	at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
	at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
	at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.nutz.mvc.WhaleFilter.doFilter(WhaleFilter.java:159)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:492)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1152)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2527)
	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2516)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)

7 回复

某个对象里面带了个OracleTypeUPT类型的对象

没有找到哪个对象里面带着这个OracleTypeUPT东西。。。

打开debug, 在OracleTypeUPT的getTypeCode打断点, 然后看JsonEntityField.getValue的参数就知道了

idea全局搜索都没找到OracleTypeUPT.java这个类

oracle驱动里面的, 类名叫OracleTypeUPT, 不是 OracleTypeUPT.java

JsonEntityField.getValue是nutz里面的吗?

是的,转json的时候取值的调用

添加回复
请先登陆
回到顶部