发表于: 2017-11-06 21:45:28

2 632


今天完成的事情:

整理项目,修改bug


明天计划的事情:

总结问题,向老大和师姐请教


遇到的问题:

测试消息列表的时候返回-1

代码逻辑是这样的:

 /**
   * 消息列表
   * @param request
   * @param response
   * @param model
   * @param page
   * @param size
   * @param title
   * @param status
   * @param createBy
   * @param startAt
   * @param endAt
   * @param personType
   * @return
   * @throws Exception
   */
@RequestMapping(value = "/a/message/search", method = RequestMethod.GET)
public String getMessageIdsByTypeAndStatusJsonList(HttpServletRequest request,
                                      HttpServletResponse response, ModelMap model, Integer page,
                                      Integer size,String title,Integer status,String createBy,
                                      Long startAt,Long endAt,Integer personType) throws Exception {


if (page == null) {
page = 1;
  }
if (size == null) {
size = 10;
  }
int start = (page - 1) * size;
  if (start < 0) {
start = 0;
  }

log.info("pageList : page= " + start + " , size=" + size);

  try {

Map<String, Object> map = DynamicUtil.getMessageList(title,status,createBy,startAt,endAt,personType,false);
     List<Long> ids = messageService.getIdsByDynamicCondition(Message.class, map, start, size);

     List<Message> messages = new ArrayList<>();
     Map<Long,Manager> managerHashMap = new HashMap<>();

     if(CollectionUtils.isEmpty(ids)){
log.info(" get message ids size is 0 ");
     }else {
log.info(" get message ids size is  "+ids.size());
        messages = messageService.getObjectsByIds(ids);
        List<Long> managerIds = new ArrayList<>();
        for(Message message : messages){
managerIds.add(message.getUpdateBy());
        }
if(managerIds.size()>0){
List<Manager> managers = managerService.getObjectsByIds(managerIds);
           for(Manager manager : managers){
managerHashMap.put(manager.getId(),manager);
           }
}
}



map = DynamicUtil.getMessageList(title,status,createBy,startAt,endAt,personType,true);
     BigInteger total = (BigInteger)messageService.getObjectByDynamicCondition(Message.class, map, 0, Integer.MAX_VALUE);
     log.info("get bank total is " + total);
     int totalPage = 1;
     if(null != total){
if(total.intValue()>0){
totalPage = (((total.intValue() - 1)) / (size)) + 1;;
        }
}
model.addAttribute("code", 0);
     model.addAttribute("page", page);
     model.addAttribute("size", size);
     model.addAttribute("total", total);
     model.addAttribute("totalPage", totalPage);
     model.addAttribute("managerHashMap", managerHashMap);

     model.addAttribute("messageList", messages);

  } catch (Throwable t) {
t.printStackTrace();
     log.error(t.getMessage());
     log.error("get message list error,page is  " + start + " , size "
           + size);
     model.addAttribute("code", -1);
  }

return "/playboy-common-service/message/json/messageListJson";
}

tomcat报错:

11-06 23:55:54:INFO(80)http-nio-8080-exec-13 com.ptteng.controller.common.MessageController - pageList : page= 0 , size=10

11-06 23:55:54:INFO(170)http-nio-8080-exec-13 scallop.sca.binding.rmi.provider.RMIReferenceLoadBalanceInvoker -  ip scallop.sca.binding.rmi.provider.RMIRemote@6553b1c3[

  host=playboy.common.service

  port=22221

  proxy=Proxy[MessageService,RemoteObjectInvocationHandler[UnicastRef [liveRef: [endpoint:[192.168.0.199:62301](remote),objID:[-3a4e81d9:15f920813c5:-7ffe, 4948595205737284415]]]]]

]

11-06 23:55:54:INFO(179)http-nio-8080-exec-13 scallop.sca.binding.rmi.provider.RMIReferenceLoadBalanceInvoker - method process stat: MessageRMIService.getIdsByDynamicCondition time: 362

11-06 23:55:54:INFO(93)http-nio-8080-exec-13 com.ptteng.controller.common.MessageController -  get message ids size is  10

11-06 23:55:54:INFO(138)http-nio-8080-exec-13 scallop.sca.binding.rmi.provider.RMIReferenceLoadBalanceInvoker - reupdate observer 

11-06 23:55:55:ERROR(191)http-nio-8080-exec-13 scallop.sca.binding.rmi.provider.RMIReferenceLoadBalanceInvoker -  RMIHostRuntimeException Connection refused to host: playboy.pub.service; nested exception is: 

java.net.ConnectException: Connection refused: connect

11-06 23:55:55:INFO(78)http-nio-8080-exec-13 scallop.sca.binding.rmi.provider.RMIObserver -  old useproxy  [scallop.sca.binding.rmi.provider.RMIRemote@b25fcdc[

  host=playboy.pub.service

  port=22222

  proxy=<null>

]]

11-06 23:55:55:INFO(80)http-nio-8080-exec-13 scallop.sca.binding.rmi.provider.RMIObserver -  remove proxy  scallop.sca.binding.rmi.provider.RMIRemote@b25fcdc[

  host=playboy.pub.service

  port=22222

  proxy=<null>

] count 0

11-06 23:55:55:INFO(81)http-nio-8080-exec-13 scallop.sca.binding.rmi.provider.RMIObserver -  current useproxy  []

11-06 23:55:55:INFO(220)http-nio-8080-exec-13 scallop.sca.binding.rmi.provider.RMIReferenceLoadBalanceInvoker -  service exception ,so reinvoke 

11-06 23:55:55:INFO(245)http-nio-8080-exec-13 scallop.sca.binding.rmi.provider.RMIReferenceLoadBalanceInvoker -  no proxy ,so refind service atonce 

scallop.sca.host.rmi.RMIHostRuntimeException: Connection refused to host: playboy.pub.service; nested exception is: 

java.net.ConnectException: Connection refused: connect

at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)

at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)

at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)

at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:342)

at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)

at scallop.sca.host.rmi.DefaultRMIHost.findService(DefaultRMIHost.java:115)

at scallop.sca.host.rmi.ExtensibleRMIHost.findService(ExtensibleRMIHost.java:49)

at scallop.sca.binding.rmi.provider.RMIReferenceLoadBalanceInvoker.reinvoke(RMIReferenceLoadBalanceInvoker.java:246)

at scallop.sca.binding.rmi.provider.RMIReferenceLoadBalanceInvoker.switchInvoke(RMIReferenceLoadBalanceInvoker.java:221)

at scallop.sca.binding.rmi.provider.RMIReferenceLoadBalanceInvoker.invokeTarget(RMIReferenceLoadBalanceInvoker.java:192)

at scallop.sca.binding.rmi.provider.RMIReferenceLoadBalanceInvoker.invoke(RMIReferenceLoadBalanceInvoker.java:101)

at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:107)

at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:287)

at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)

at com.sun.proxy.$Proxy59.getObjectsByIds(Unknown Source)

at com.ptteng.sca.playboy.pub.client.ManagerSCAClient.getObjectsByIds(ManagerSCAClient.java:73)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

11-06 23:55:56:ERROR(129)http-nio-8080-exec-13 com.ptteng.controller.common.MessageController - Connection refused to host: playboy.pub.service; nested exception is: 

java.net.ConnectException: Connection refused: connect

at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:132)

11-06 23:55:56:ERROR(130)http-nio-8080-exec-13 com.ptteng.controller.common.MessageController - get message list error,page is  0 , size 10

at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:112)

at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)

at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:112)

at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:287)

at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:154)

at com.sun.proxy.$Proxy59.getObjectsByIds(Unknown Source)

at com.ptteng.controller.common.MessageController.getMessageIdsByTypeAndStatusJsonList(MessageController.java:100)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)

at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)

at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)

at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)

at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:467)

at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:392)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:311)

at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)

at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)

at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)

at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)

at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:88)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)

at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)

at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)

at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:745)


service报错:

11-06 23:52:03:INFO(315)main org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [file:/D:/myfupan/playboy(6)/playboy/polyFinance-playboy-common-service/target/classes/META-INF/playboy-common-service/applicationContext-server.xml]

11-06 23:52:05:INFO(495)main org.springframework.context.support.GenericApplicationContext - Refreshing org.springframework.context.support.GenericApplicationContext@11bb571c: startup date [Mon Nov 06 23:52:05 GMT+08:00 2017]; parent: file:/D:/myfupan/playboy(6)/playboy/polyFinance-playboy-common-service/target/classes/META-INF/playboy-common-service/applicationContext-server.xml

Spring parent context - containsBean called for name: loadTimeWeaver

Spring parent context - containsBean called for name: environment

Spring parent context - containsBean called for name: systemProperties

Spring parent context - containsBean called for name: systemEnvironment

Spring parent context - containsBean called for name: conversionService

11-06 23:52:05:INFO(557)main org.springframework.beans.factory.xml.XmlBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.xml.XmlBeanFactory@39655d3e: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,userService,feedbackService,messageService,smsService,userMessageService,dao,baseDaoService,type_template,smsSendService,voiceSendService,androidPushServiceImpl,iosPushServiceImpl,org.springframework.aop.config.internalAutoProxyCreator,aroundLoggingTime,org.springframework.aop.aspectj.AspectJPointcutAdvisor#0,publicServiceMethod,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; parent: org.apache.tuscany.sca.implementation.spring.SCAParentApplicationContext@34f22f9d

11-06 23:52:05:INFO(34)main com.ptteng.common.dao.BaseDaoServiceImpl - set dao com.gemantic.dal.dao.impl.CompositeDaoImpl@242aa8d9

11-06 23:52:05:INFO(34)main com.ptteng.common.dao.BaseDaoServiceImpl - set dao com.gemantic.dal.dao.impl.CompositeDaoImpl@242aa8d9

11-06 23:52:05:INFO(34)main com.ptteng.common.dao.BaseDaoServiceImpl - set dao com.gemantic.dal.dao.impl.CompositeDaoImpl@242aa8d9

11-06 23:52:05:INFO(34)main com.ptteng.common.dao.BaseDaoServiceImpl - set dao com.gemantic.dal.dao.impl.CompositeDaoImpl@242aa8d9

11-06 23:52:05:INFO(34)main com.ptteng.common.dao.BaseDaoServiceImpl - set dao com.gemantic.dal.dao.impl.CompositeDaoImpl@242aa8d9

11-06 23:52:05:INFO(34)main com.ptteng.common.dao.BaseDaoServiceImpl - set dao com.gemantic.dal.dao.impl.CompositeDaoImpl@242aa8d9

SpringImplementationProvider: Spring context started

11-06 23:52:05:INFO(33)main com.ptteng.playboy.common.server.Server - ===>playboy-common-service

11-06 23:54:05:INFO(245)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.model.dao.ListItem - keyProperty is null

11-06 23:54:05:WARN(391)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - Class com.ptteng.playboy.common.model.Feedback method get  don't fond!

11-06 23:54:05:WARN(400)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - Class com.ptteng.playboy.common.model.Feedback method get  don't fond!

11-06 23:54:05:INFO(273)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - ListItem[columnName = id keyMethod = [null] keyProperty = version name = getFeedbackIdsAll objectName = com.ptteng.playboy.common.model.Feedback sqlcountitem = null sqldelitem = null sqlitem = select id from feedback where 1 = 1 order by create_at desc sqlType = null invalidOnSave = false valueMethod = public java.lang.Long com.ptteng.playboy.common.model.Feedback.getId() valueProperty = id]

11-06 23:54:05:INFO(245)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.model.dao.ListItem - keyProperty is null

11-06 23:54:05:INFO(245)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.model.dao.ListItem - keyProperty is null

11-06 23:54:05:WARN(391)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - Class com.ptteng.playboy.common.model.Message method get  don't fond!

11-06 23:54:05:WARN(400)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - Class com.ptteng.playboy.common.model.Message method get  don't fond!

11-06 23:54:05:INFO(273)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - ListItem[columnName = id keyMethod = [null] keyProperty = version name = getMessageIdsAll objectName = com.ptteng.playboy.common.model.Message sqlcountitem = null sqldelitem = null sqlitem = select id from message where 1 = 1 order by create_at desc sqlType = null invalidOnSave = false valueMethod = public java.lang.Long com.ptteng.playboy.common.model.Message.getId() valueProperty = id]

11-06 23:54:05:INFO(273)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - ListItem[columnName = id keyMethod = [public java.lang.Integer com.ptteng.playboy.common.model.Message.getType(), public java.lang.Integer com.ptteng.playboy.common.model.Message.getStatus()] keyProperty = type,status name = getMessageIdsByTypeAndStatus objectName = com.ptteng.playboy.common.model.Message sqlcountitem = null sqldelitem = null sqlitem = select id from message where type=? and status = ? sqlType = null invalidOnSave = false valueMethod = public java.lang.Long com.ptteng.playboy.common.model.Message.getId() valueProperty = id]

11-06 23:54:05:INFO(245)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.model.dao.ListItem - keyProperty is null

11-06 23:54:05:WARN(391)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - Class com.ptteng.playboy.common.model.Sms method get  don't fond!

11-06 23:54:05:WARN(400)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - Class com.ptteng.playboy.common.model.Sms method get  don't fond!

11-06 23:54:05:INFO(273)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - ListItem[columnName = id keyMethod = [null] keyProperty = version name = getSmsIdsAll objectName = com.ptteng.playboy.common.model.Sms sqlcountitem = null sqldelitem = null sqlitem = select id from sms where 1 = 1 order by create_at desc sqlType = null invalidOnSave = false valueMethod = public java.lang.Long com.ptteng.playboy.common.model.Sms.getId() valueProperty = id]

11-06 23:54:05:INFO(295)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - MapItem[columnName = id keyMethod = [public java.lang.String com.ptteng.playboy.common.model.Sms.getMobile(), public java.lang.String com.ptteng.playboy.common.model.Sms.getType()] keyProperty = mobile,type name = getSmsIdByMobileAndType objectName = com.ptteng.playboy.common.model.Sms sqlcountitem = null sqlitem = select id from sms where mobile = ? and type = ? sqlType = null update = false valueMethod = public java.lang.Long com.ptteng.playboy.common.model.Sms.getId() valueProperty = id]

11-06 23:54:05:INFO(245)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.model.dao.ListItem - keyProperty is null

11-06 23:54:05:INFO(245)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.model.dao.ListItem - keyProperty is null

11-06 23:54:05:INFO(245)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.model.dao.ListItem - keyProperty is null

11-06 23:54:05:INFO(245)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.model.dao.ListItem - keyProperty is null

11-06 23:54:05:WARN(391)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - Class com.ptteng.playboy.common.model.UserMessage method get  don't fond!

11-06 23:54:05:WARN(400)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - Class com.ptteng.playboy.common.model.UserMessage method get  don't fond!

11-06 23:54:05:INFO(273)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - ListItem[columnName = id keyMethod = [public java.lang.Long com.ptteng.playboy.common.model.UserMessage.getUid(), public java.lang.Integer com.ptteng.playboy.common.model.UserMessage.getStatus()] keyProperty = uid,status name = getUserMessageIdsByUidAndStatus objectName = com.ptteng.playboy.common.model.UserMessage sqlcountitem = null sqldelitem = null sqlitem = select id from userMessage where uid = ? and status = ? order by create_at asc  sqlType = null invalidOnSave = false valueMethod = public java.lang.Long com.ptteng.playboy.common.model.UserMessage.getId() valueProperty = id]

11-06 23:54:05:INFO(273)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - ListItem[columnName = id keyMethod = [public java.lang.Long com.ptteng.playboy.common.model.UserMessage.getUid(), public java.lang.Integer com.ptteng.playboy.common.model.UserMessage.getType()] keyProperty = uid,type name = getUserMessageIdsByUidAndType objectName = com.ptteng.playboy.common.model.UserMessage sqlcountitem = null sqldelitem = null sqlitem = select id from userMessage where uid = ? and type = ? order by create_at desc  sqlType = null invalidOnSave = false valueMethod = public java.lang.Long com.ptteng.playboy.common.model.UserMessage.getId() valueProperty = id]

11-06 23:54:05:INFO(273)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - ListItem[columnName = id keyMethod = [public java.lang.Long com.ptteng.playboy.common.model.UserMessage.getUid()] keyProperty = uid name = getUserMessageIdsByUid objectName = com.ptteng.playboy.common.model.UserMessage sqlcountitem = null sqldelitem = null sqlitem = select id from userMessage where uid = ?  order by create_at desc,message_id desc  sqlType = null invalidOnSave = false valueMethod = public java.lang.Long com.ptteng.playboy.common.model.UserMessage.getId() valueProperty = id]

11-06 23:54:05:INFO(273)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.DaoConfig - ListItem[columnName = id keyMethod = [null] keyProperty = version name = getUserMessageIdsAll objectName = com.ptteng.playboy.common.model.UserMessage sqlcountitem = null sqldelitem = null sqlitem = select id from userMessage where 1 = 1 order by create_at desc sqlType = null invalidOnSave = false valueMethod = public java.lang.Long com.ptteng.playboy.common.model.UserMessage.getId() valueProperty = id]

11-06 23:54:05:INFO(560)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.Environment - Hibernate 3.3.2.GA

11-06 23:54:05:INFO(593)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.Environment - hibernate.properties not found

11-06 23:54:05:INFO(771)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.Environment - Bytecode provider name : javassist

11-06 23:54:05:INFO(652)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling

11-06 23:54:06:INFO(161)RMI TCP Connection(2)-192.168.0.199 com.gemantic.dal.config.GroupConfig - playboy_common slave name don't set! please check group.xml file

11-06 23:54:06:INFO(15)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.4.0.GA

11-06 23:54:06:INFO(14)RMI TCP Connection(2)-192.168.0.199 org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.1.0.GA

11-06 23:54:06:INFO(419)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: com.ptteng.playboy.common.model.Sms

11-06 23:54:06:INFO(422)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.annotations.EntityBinder - Bind entity com.ptteng.playboy.common.model.Sms on table sms

11-06 23:54:06:INFO(419)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: com.ptteng.playboy.common.model.Message

11-06 23:54:06:INFO(422)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.annotations.EntityBinder - Bind entity com.ptteng.playboy.common.model.Message on table message

11-06 23:54:06:INFO(419)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: com.ptteng.playboy.common.model.Feedback

11-06 23:54:06:INFO(422)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.annotations.EntityBinder - Bind entity com.ptteng.playboy.common.model.Feedback on table feedback

11-06 23:54:06:INFO(419)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: com.ptteng.playboy.common.model.UserMessage

11-06 23:54:06:INFO(422)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.annotations.EntityBinder - Bind entity com.ptteng.playboy.common.model.UserMessage on table userMessage

11-06 23:54:06:INFO(369)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.AnnotationConfiguration - Hibernate Validator not found: ignoring

11-06 23:54:06:INFO(777)RMI TCP Connection(2)-192.168.0.199 org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean - Building new Hibernate SessionFactory

11-06 23:54:06:INFO(53)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.search.HibernateSearchEventListenerRegister - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.

11-06 23:54:06:INFO(95)RMI TCP Connection(2)-192.168.0.199 org.hibernate.connection.ConnectionProviderFactory - Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider

11-06 23:54:07:INFO(114)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - RDBMS: MySQL, version: 5.5.34-log

11-06 23:54:07:INFO(115)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.20 ( Revision: tonci.grgin@oracle.com-20111003110438-qfydx066wsbydkbw )

11-06 23:54:07:INFO(175)RMI TCP Connection(2)-192.168.0.199 org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQLDialect

11-06 23:54:07:INFO(62)RMI TCP Connection(2)-192.168.0.199 org.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory

11-06 23:54:07:INFO(80)RMI TCP Connection(2)-192.168.0.199 org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)

11-06 23:54:07:INFO(161)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled

11-06 23:54:07:INFO(165)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled

11-06 23:54:07:INFO(172)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - JDBC batch size: 100

11-06 23:54:07:INFO(175)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled

11-06 23:54:07:INFO(180)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled

11-06 23:54:07:INFO(188)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled

11-06 23:54:07:INFO(192)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - JDBC result set fetch size: 100

11-06 23:54:07:INFO(196)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Connection release mode: auto

11-06 23:54:07:INFO(220)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 3

11-06 23:54:07:INFO(223)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1

11-06 23:54:07:INFO(227)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled

11-06 23:54:07:INFO(231)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled

11-06 23:54:07:INFO(235)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Order SQL inserts for batching: disabled

11-06 23:54:07:INFO(397)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory

11-06 23:54:07:INFO(47)RMI TCP Connection(2)-192.168.0.199 org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory

11-06 23:54:07:INFO(243)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Query language substitutions: {true=1, false=0}

11-06 23:54:07:INFO(248)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: disabled

11-06 23:54:07:INFO(253)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Second-level cache: enabled

11-06 23:54:07:INFO(257)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Query cache: disabled

11-06 23:54:07:INFO(382)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory

11-06 23:54:07:INFO(267)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled

11-06 23:54:07:INFO(276)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled

11-06 23:54:07:INFO(305)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Statistics: disabled

11-06 23:54:07:INFO(309)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled

11-06 23:54:07:INFO(324)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo

11-06 23:54:07:INFO(328)RMI TCP Connection(2)-192.168.0.199 org.hibernate.cfg.SettingsFactory - Named query checking : enabled

11-06 23:54:07:INFO(193)RMI TCP Connection(2)-192.168.0.199 org.hibernate.impl.SessionFactoryImpl - building session factory

11-06 23:54:07:INFO(105)RMI TCP Connection(2)-192.168.0.199 org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured

11-06 23:54:08:INFO(67)RMI TCP Connection(2)-192.168.0.199 com.ptteng.common.dao.BaseDaoServiceImpl - select  message.id  from message where 1 = 1  order by   message.update_at desc   limit 0 , 10 result is list [146, 145, 103, 144, 143, 142, 141, 140, 139, 138]

11-06 23:54:08:INFO(232)RMI TCP Connection(2)-192.168.0.199 com.ptteng.playboy.common.service.impl.MessageServiceImpl -  get lists : [146, 145, 103, 144, 143, 142, 141, 140, 139, 138]

11-06 23:54:09:INFO(249)RMI TCP Connection(2)-192.168.0.199 com.ptteng.playboy.common.service.impl.MessageServiceImpl -  get data success : 10

11-06 23:55:54:INFO(67)RMI TCP Connection(3)-192.168.0.199 com.ptteng.common.dao.BaseDaoServiceImpl - select  message.id  from message where 1 = 1  order by   message.update_at desc   limit 0 , 10 result is list [146, 145, 103, 144, 143, 142, 141, 140, 139, 138]

11-06 23:55:54:INFO(232)RMI TCP Connection(3)-192.168.0.199 com.ptteng.playboy.common.service.impl.MessageServiceImpl -  get lists : [146, 145, 103, 144, 143, 142, 141, 140, 139, 138]

11-06 23:55:54:INFO(249)RMI TCP Connection(3)-192.168.0.199 com.ptteng.playboy.common.service.impl.MessageServiceImpl -  get data success : 10



问了各个师兄也没能解决这个问题.明天去问老大和师姐.


收获:

修改了部分bug

idea调用svn:http://www.cnblogs.com/weilantiankong/p/5856639.html



返回列表 返回列表
评论

    分享到