急求 apache2.2 tomcat6 jk_mod session 不能复制

本机 两个tomcat,一个apache,现在已经能够实现负载均衡,但是session一直不能复制。
appache

  1. http.conf:添加 Include conf/mod_jk.conf
  2. mod_jk.conf内容:

    LoadModule jk_module modules/mod_jk.so
    JkWorkersFile conf/workers.properties

    Order allow,deny
    Deny from all


    ServerAdmin localhost
    DocumentRoot E:/wwwroot
    ServerName localhost
    DirectoryIndex index.html index.htm index.jsp

    JkMount /servlet/* controller
    JkMount /*.jsp controller
    JkMount /*.html controller

  3. workers.properties内容:

    worker.list = controller ,tomcat1,tomcat2

#========controller,负载均衡控制器========
worker.controller.type=lb
worker.controller.balanced_workers=tomcat1,tomcat2 #指定分担请求的tomcat
worker.controller.sticky_session=1
#worker.controller.type=status

worker.tomcat1.port=8009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor = 1

worker.tomcat2.port=9009
worker.tomcat2.host=localhost
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor = 1

  1. tomcat1:
    [code="java"]
    channelSendOptions="8">

      <Manager className="org.apache.catalina.ha.session.DeltaManager"
               expireSessionsOnShutdown="false"
               notifyListenersOnReplication="true"/>
    
      <Channel className="org.apache.catalina.tribes.group.GroupChannel">
        <Membership className="org.apache.catalina.tribes.membership.McastService"
                    address="228.0.0.4"
                    port="45564"
                    frequency="500"
                    dropTime="3000"/>
        <Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver"
                  address="auto"
                  port="4000"
                  autoBind="100"
                  selectorTimeout="5000"
                  maxThreads="6"/>
    
        <Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
          <Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
        </Sender>
        <Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
        <Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
      </Channel>
    
      <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
             filter=""/>
      <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>
    
      <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
    
                watchEnabled="false"/>
    
      <ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
      <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener"/>
    </Cluster>  [/code] 
    

    5 tomcat2:

[code="java"]
channelSendOptions="8">

      <Manager className="org.apache.catalina.ha.session.DeltaManager"
               expireSessionsOnShutdown="false"
               notifyListenersOnReplication="true"/>

      <Channel className="org.apache.catalina.tribes.group.GroupChannel">
        <Membership className="org.apache.catalina.tribes.membership.McastService"
                    address="228.0.0.4"
                    port="45564"
                    frequency="500"
                    dropTime="3000"/>
        <Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver"
                  address="auto"
                  port="4002"
                  autoBind="100"
                  selectorTimeout="5000"
                  maxThreads="6"/>

        <Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
          <Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
        </Sender>
        <Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
        <Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
      </Channel>

      <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
             filter=""/>
      <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>

      <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"

                watchEnabled="false"/>

      <ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
      <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener"/>
    </Cluster>   [/code]

6: tomcat1:

[code="java"] unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
[/code]

7:tomcat2:
[code="java"] unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
[/code]

8:应用中web.xml已添加 节点

结果: 能实现负载均衡,但是 session不能复制。
appache:2.2
tomcat:6

3个回答

其实你用jk_mod了
使用它的stick session就可以了,没必要再要tomcat去复制session了

朋友,问题要自动关闭啦,结分哦

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
myeclipse8.5+struts1.2+tomcat5.5报错
看了一本书上的项目试着跑了一下 项目在tomcat5.5上运行时报错,具体如下: [ERROR] Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency. java.lang.NoClassDefFoundError: org/apache/commons/chain/config/ConfigParser at org.apache.struts.action.ActionServlet.initChain(ActionServlet.java:1680) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:350) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: java.lang.ClassNotFoundException: org.apache.commons.chain.config.ConfigParser at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 29 more [INFO ] Marking servlet action as unavailable [ERROR] Servlet /bbs threw load() exception javax.servlet.UnavailableException: org/apache/commons/chain/config/ConfigParser at org.apache.struts.action.ActionServlet.init(ActionServlet.java:402) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) 在网上搜了很多解决办法,大部分是说要加commons-chain.jar这个jar包,可是添加了还是会报错;并且查看了ActionServlet的源码里面就没有initchain这个方法,没有开发的经验所以实在是不懂哪里出错了,急求解答~
急求帮助,centOS下tomcat的java进程无故终止
求助! 目前环境centOS6.6+Nginx1.8.0+tomcat7.0.42+mysql5.6.24 另外还装了安全狗和clamd杀毒软件。 碰到的问题是tomcat的java进程隔几天会无故终止。tomcat的catalina日志里没有 tomcat停止的日志。操作系统日志/var/adm/messages里也没有tomcat的java进程停止的日志。 tomcat的home目录下也没有找到java虚拟机崩溃的日志。 打开进程日志,看到tomcat的java进程收到终止信号停止,java进程有X标志。 cat root __ 0.00 secs Thu Jul 30 09:48 sh root __ 0.00 secs Thu Jul 30 09:48 egrep root __ 0.00 secs Thu Jul 30 09:48 cat root __ 0.00 secs Thu Jul 30 09:48 sh root __ 0.00 secs Thu Jul 30 09:48 awk root __ 0.00 secs Thu Jul 30 09:48 head root __ 0.00 secs Thu Jul 30 09:48 cat root __ 0.00 secs Thu Jul 30 09:48 ## java S X root __ 2728.72 secs Wed Jul 29 10:38 du root __ 0.00 secs Thu Jul 30 09:48 du root __ 0.00 secs Thu Jul 30 09:48 du root __ 0.00 secs Thu Jul 30 09:48 du root __ 0.00 secs Thu Jul 30 09:48 du root __ 0.00 secs Thu Jul 30 09:48 du root __ 0.00 secs Thu Jul 30 09:48 du root __ 0.00 secs Thu Jul 30 09:48 du root __ 0.00 secs Thu Jul 30 09:48 du root __ 0.00 secs Thu Jul 30 09:48 du root __ 0.00 secs Thu Jul 30 09:48 du root __ 0.00 secs Thu Jul 30 09:48 du root __ 0.00 secs Thu Jul 30 09:48 du root __ 0.00 secs Thu Jul 30 09:48 du root __ 0.00 secs Thu Jul 30 09:48 du root __ 0.00 secs Thu Jul 30 09:48 du root __ 0.00 secs Thu Jul 30 09:48 du root __ 0.00 secs Thu Jul 30 09:48 sh root __ 0.00 secs Thu Jul 30 09:48 awk root __ 0.00 secs Thu Jul 30 09:48 head root __ 0.00 secs Thu Jul 30 09:48 cat root __ 0.00 secs Thu Jul 30 09:48 sh root __ 0.00 secs Thu Jul 30 09:48 awk root __ 0.00 secs Thu Jul 30 09:48 head root __ 0.00 secs Thu Jul 30 09:48 cat root __ 0.00 secs Thu Jul 30 09:48 sh root __ 0.00 secs Thu Jul 30 09:48 grep root __ 0.00 secs Thu Jul 30 09:48 grep root __ 0.00 secs Thu Jul 30 09:48 ps S root __ 0.02 secs Thu Jul 30 09:48 但是在这个时间段并没有kill发送信号,那这个信号是由哪个进程发起的,有没有办法查看。 我最初怀疑过操作系统内存耗尽,tomcat进程被OOM_killer杀死了,但是操作系统日志/var/adm/messages里会有out of memory杀进程的日志,我在虚拟机上测试,/var/adm/messages里是有相应日志。下面是free -m的输出: total used free shared buffers cached Mem: 32085 26304 5780 1 258 21274 -/+ buffers/cache: 4771 27313 Swap: 16111 50 16061 也怀疑过ssh连接异常关闭导致tomcat进程被杀,但是我在虚拟机上并没有模拟重现故障。 因为centOS ssh登录采用公钥秘钥的方式,并且在故障时间段进程日志里并没有找到kill命令,暂时排除人为强杀进程的情况。 不知道现在的情况我能通过什么方式来定位故障原因。求指点。 另外在tomcat的localhost日志里,有类似如下的异常日志: Jul 30, 2015 12:14:27 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [jsp] in context with path [] threw exception [javax.servlet.ServletException: javax.servlet.jsp.JspException: Problem accessing the absolute URL "http://www.d1wudal.com:80/getHomeItem.action?navBz=1". java.io.FileNotFoundException: http://www.d1wudal.com:80/getHomeItem.action?navBz=1] with root cause java.io.FileNotFoundException: http://www.d1wudal.com:80/getHomeItem.action?navBz=1 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625) at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireReader(ImportSupport.java:331) at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:241) at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:161) at org.apache.jsp.index_jsp._jspx_meth_c_005fimport_005f0(index_jsp.java:177) at org.apache.jsp.index_jsp._jspService(index_jsp.java:109) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:96) at com.st.core.filter.Struts2Filter.doFilter(Struts2Filter.java:24) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) 我在虚拟机上模拟重现了这个异常,是由客户端的异常请求造成的。我也怀疑过遭到了类似DDOS的攻击,但是查看了系统的连接数量应该不足以让tomcat进程终止。 麻烦帮忙分析下!
wsimport生成webservice代码调用出现错误
Type Exception Report Message An exception occurred processing JSP page [/u/jsp/china/xunjian/ceshi.jsp] at line [9] Description The server encountered an unexpected condition that prevented it from fulfilling the request. Exception org.apache.jasper.JasperException: An exception occurred processing JSP page [/u/jsp/china/xunjian/ceshi.jsp] at line [9] 6: out.println("============="); 7: SendSMSNewServiceService sendSMSNewServiceService = new SendSMSNewServiceService(); 8: out.println("**********"); 9: ISendSMSNewService sendSMSNewServicePort = sendSMSNewServiceService.getSendSMSNewServicePort(); 10: out.println("-----"); 11: String alarm = "测试"; 12: alarm = URLEncoder.encode(alarm, "utf-8"); Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:584) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:466) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) netgain.servlets.filters.MainFilter.doFilter(MainFilter.java:105) Root Cause javax.servlet.ServletException: java.lang.NoSuchFieldError: QUALIFIED org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:909) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:838) org.apache.jsp.u.jsp.china.xunjian.ceshi_jsp._jspService(ceshi_jsp.java:1825) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) netgain.servlets.filters.MainFilter.doFilter(MainFilter.java:105) Root Cause java.lang.NoSuchFieldError: QUALIFIED org.apache.cxf.service.model.SchemaInfo.setSchema(SchemaInfo.java:146) org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:136) org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:81) org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:65) org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:60) org.apache.cxf.wsdl11.WSDLServiceBuilder.getSchemas(WSDLServiceBuilder.java:372) org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:339) org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:203) org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:142) org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:412) org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:534) org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248) org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205) org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101) org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:90) org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:155) org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:156) org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:464) org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:331) org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:318) javax.xml.ws.Service.getPort(Unknown Source) com.service.impl.SendSMSNewServiceService.getSendSMSNewServicePort(SendSMSNewServiceService.java:56) org.apache.jsp.u.jsp.china.xunjian.ceshi_jsp._jspService(ceshi_jsp.java:1800) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) netgain.servlets.filters.MainFilter.doFilter(MainFilter.java:105) 网上都说是包冲突到底哪冲突了 这是什么原因造成的了。急求啊
JScrollPane 的水平滚动条不显示啦,急求大伙看下
DefaultTableModel model = new DefaultTableModel(datas, columns); JTable table = new CommonJTable(model); //表格大小 table.setPreferredSize(new Dimension(1200, 800)); //选中行颜色 table.setSelectionBackground(Color.yellow); //不拖动 table.getTableHeader().setReorderingAllowed(false); DefaultTableCellRenderer tcr = new DefaultTableCellRenderer();// 设置table内容居中 tcr.setHorizontalAlignment(SwingConstants.CENTER);// table.setDefaultRenderer(Object.class, tcr); FitTableColumns(table); JScrollPane upPane = new JScrollPane(); upPane.setViewportView(table); upPane.setPreferredSize(new Dimension(800,700)); upPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); upPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); upPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); table.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);// 水平滚动条 JSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT, top, upPane); this.add(split);
spring cloud fegin调用文件上传报错
spring cloud 使用fegin上传文件,boot2.0.5版本、feign-form 3.0.3版本配置文件都已经配置,还是报错 feign.codec.EncodeException: Could not write request: no suitable HttpMessageConverter found for request type [[Lorg.springframework.web.multipart.MultipartFile;] and content type [multipart/form-data] at org.springframework.cloud.openfeign.support.SpringEncoder.encode(SpringEncoder.java:124) at feign.form.FormEncoder.encode(FormEncoder.java:87) at feign.form.spring.SpringFormEncoder.encode(SpringFormEncoder.java:62) at feign.ReflectiveFeign$BuildEncodedTemplateFromArgs.resolve(ReflectiveFeign.java:345) at feign.ReflectiveFeign$BuildTemplateByResolvingArgs.create(ReflectiveFeign.java:213) at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:72) at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103) at com.sun.proxy.$Proxy129.upload(Unknown Source) at com.grandtech.assistinsurance.controller.DemoController.testUp(DemoController.java:33) 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.doInvoke(InvocableHandlerMethod.java:209) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:891) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877) at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851) 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.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:90) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 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.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 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:109) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 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.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:155) at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:123) at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:108) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 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:200) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 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:493) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) 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:800) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) 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) ``` ``` 急求!!!!!
android 引用aar 项目编译通过,但是运行跳转到aar里的Activity时就crash。
报的错: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.jintf.testdemo/com.congtai.third2zebrasetsdk.activity.MainWebViewActivity}: java.lang.ClassNotFoundException: Didn't find class "com.congtai.third2zebrasetsdk.activity.MainWebViewActivity" on path: DexPathList[[zip file "/data/app/com.jintf.testdemo-1/base.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_dependencies_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_0_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_1_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_2_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_3_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_4_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_5_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_6_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_7_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_8_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.jintf.testdemo-1/lib/arm64, /system/lib64, /vendor/lib64, /system/vendor/lib64, /product/lib64]] Caused by: java.lang.ClassNotFoundException: Didn't find class "com.congtai.third2zebrasetsdk.activity.MainWebViewActivity" on path: DexPathList[[zip file "/data/app/com.jintf.testdemo-1/base.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_dependencies_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_0_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_1_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_2_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_3_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_4_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_5_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_6_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_7_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_8_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.jintf.testdemo-1/lib/arm64, /system/lib64, /vendor/lib64, /system/vendor/lib64, /product/lib64]] Suppressed: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/congtai/third2zebrasetsdk/activity/BaseActivity; at java.lang.VMClassLoader.findLoadedClass(Native Method) at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:742) at java.lang.ClassLoader.loadClass(ClassLoader.java:362) ... 12 more Caused by: java.lang.ClassNotFoundException: com.congtai.third2zebrasetsdk.activity.BaseActivity at java.lang.VMClassLoader.findLoadedClass(Native Method) at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:742) at java.lang.ClassLoader.loadClass(ClassLoader.java:362) 07-28 14:32:45.991 21579-21579/com.jintf.testdemo E/AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:312) ... 15 more Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/congtai/third2zebrasetsdk/activity/BaseRxActivity; ... 15 more Caused by: java.lang.ClassNotFoundException: com.congtai.third2zebrasetsdk.activity.BaseRxActivity at java.lang.VMClassLoader.findLoadedClass(Native Method) at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:742) at java.lang.ClassLoader.loadClass(ClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) ... 15 more Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/congtai/third2zebrasetsdk/activity/RxActivity; ... 15 more Caused by: java.lang.ClassNotFoundException: com.congtai.third2zebrasetsdk.activity.RxActivity at java.lang.VMClassLoader.findLoadedClass(Native Method) at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:742) at java.lang.ClassLoader.loadClass(ClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) ... 15 more Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/trello/rxlifecycle/ActivityLifecycleProvider; ... 15 more Caused by: java.lang.ClassNotFoundException: Didn't find class "com.trello.rxlifecycle.ActivityLifecycleProvider" on path: DexPathList[[zip file "/data/app/com.jintf.testdemo-1/base.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_dependencies_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_0_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_1_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_2_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_3_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_4_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_5_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_6_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_7_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_8_apk.apk", zip file "/data/app/com.jintf.testdemo-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.jintf.testdemo-1/lib/arm64, /system/lib64, /vendor/lib64, /system/vendor/lib64, /product/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:380) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) 首先,这个aar是做好的一个项目生成的aar,生成、导入都没问题,编译通过,然后在当前项目中也能检索到aar里面的activity等资源,然后我想跳转到aar里的Activity 即MainWebViewActivity里面,如下: Intent intent = new Intent(android.content.Intent.ACTION_VIEW); // 这里的packetname 一定记住填写 调用方的packetname 因为 aar最终会被合并到调用方的manifest文件 intent.setComponent(new ComponentName(appName, "com.congtai.third2zebrasetsdk.activity.MainWebViewActivity")); // intent.setClassName(appName,//packagename // "com.congtai.third2zebrasetsdk.activity.MainWebViewActivity");//classname// intent.putExtra("url",DRIVESET_URL+"?channel="+channel+"&brand="+brand+"&appName="+appName); startActivity(intent); 网上说的几种方式都试过,在mainfast文件里也注册了这个activity,还是会crash,报的Unable toinstantiate activity componentInfo,我真搞不懂了,急求大神指导~~~
急求!Python3.5下运行报错
我用的Python3.5,TensorFlow0.11.0![图片说明](https://img-ask.csdn.net/upload/201704/20/1492658283_214638.png) ``` def gen_poetry(): def to_word(weights): t = np.cumsum(weights) s = np.sum(weights) sample = int(np.searchsorted(t, np.random.rand(1)*s)) return words[sample] _, last_state, probs, cell, initial_state = neural_network() with tf.Session() as sess: sess.run(tf.initialize_all_variables()) saver = tf.train.Saver(tf.all_variables()) saver.restore(sess, 'poetry.module-49') state_ = sess.run(cell.zero_state(1, tf.float32)) x = np.array([list(map(word_num_map.get, '['))]) [probs_, state_] = sess.run([probs, last_state], feed_dict={input_data: x, initial_state: state_}) #word = to_word(probs_) word = words[np.argmax(probs_)] poem = '' while word != ']': poem += word x = np.zeros((1,1)) x[0,0] = word_num_map[word] [probs_, state_] = sess.run([probs, last_state], feed_dict={input_data: x, initial_state: state_}) #word = to_word(probs_) word = words[np.argmax(probs_)] return poem print(gen_poetry()) ```
centos7 下apache+tomcat+jk负载均衡
在linux下安装apache成功。,安装了两个tomcat,测试项目测试负载均衡成功,但是测试session复制不成功。相同的配置信息,在windows下,负载跟session的复制都是成功的,后来我就使用nginx负载集群。在windows下同样都成功。。。但是就是在linux 下的时候只有负载成功了,但是session复制没有成功。。。。。。急求解决方案啊?、linux新手。。。求教
急求大佬指导grpc python进行安全连接的代码(有PHP版本的代码,改写成python)
急求大佬,我现在在用python写grpc的客户端,用来获取数据提供商的股票数据。提供商只给了我一个PHP版本的代码用作指导,但是我需要用python写。其他地方都没有问题了,只有安全连接这个部分卡住了,查了两天也没查到解决办法。。用了好几种api可是都不行。情况就是有url,端口,.pem格式的证书以及账号和密码。大概的思路应该是在建立channel的时候带入额外的账号密码等信息? 求大佬帮忙看看用python怎么写呢。。跪谢大佬了! 下面为php代码: ![图片说明](https://img-ask.csdn.net/upload/201708/15/1502780176_733195.jpg) 下面为我写的不好用的python代码: ``` from __future__ import print_function import grpc import historicalQuote_pb2 import historicalQuote_pb2_grpc import common_pb2 import common_pb2_grpc import marketData_pb2 import marketData_pb2_grpc import os from google import auth as google_auth from google.auth.transport import grpc as google_auth_transport_grpc from google.auth.transport import requests as google_auth_transport_requests def run(): symbol = common_pb2.Symbol() symbol.code = "BABA" symbol.market = common_pb2.US symbol.type = common_pb2.Stock market_request = marketData_pb2.MarketDataRequest() market_request.symbol.code = symbol.code market_request.symbol.market = symbol.market market_request.symbol.type = symbol.type market_request.language = common_pb2.zhHans print(market_request) try: path = os.path.abspath('.') pemPath = path + '/open_test_cert.pem' transport_creds = grpc.ssl_channel_credentials(open(pemPath).read()) options = [] update_metadata = {} update_metadata2 = {} update_metadata['UserName'] = 'xxxx' update_metadata['Password'] = 'yyyy' update_metadata2['grpc.ssl_target_name_override'] = 'open.test.yintongzhibo.com' options.append(update_metadata) # options.append(update_metadata2) channel = grpc.secure_channel("open.test.yintongzhibo.com:9002",transport_creds,options) # credentials , project= google_auth.default(scopes=(scope1,scope2,scope3)) # credentials , project= google_auth.default() # http_request = google_auth_transport_requests.Request() # metadata_plugin = AuthMetadataPlugin(credentials,http_request) # google_auth_credentials = grpc.metadata_call_credentials(metadata_plugin) # ssl_credentials = grpc.ssl_channel_credentials(open(pemPath).read()) # composite_credentials = grpc.composite_channel_credentials(ssl_credentials,google_auth_credentials) # channel = grpc.secure_channel("open.test.yintongzhibo.com:9002",composite_credentials) # channel = google_auth_transport_grpc.secure_authorized_channel(credentials,request,'open.test.yintongzhibo.com:9002') stub = historicalQuote_pb2_grpc.HistoricalQuoteServiceStub(channel) response = stub.getTodayM1Quotes(symbol) # stub = marketData_pb2_grpc.MarketDataServiceStub(channel) # response = stub.getMarketData(market_request) print(response.message) except Exception as e: print (e) if __name__ == '__main__': run() ```
急求....怎么实现每个ExpandableListView都为默认展开部分条目
首先 获取数据后的ExpandableListView 默认为全部关闭的,我要实现每个group都默认展开3条. 其余的都在点击之后展开........
启动时警告调用webService接口出现Read timed out
## 使用WebServiceTemplate执行webservice接口,且实例化也正常,但是调用后出现Read timed out ## ## ## ----------------- ## ## 以下是实例化WebServiceTemplate ``` @Value("${image.service.server.url.download}") private String ARCHIVE_IMAGE_DOWNLOAD_SERVICE; @Value("${image.service.server.user}") private String ARCHIVE_IMAGE_USER; @Value("${image.service.server.password}") private String ARCHIVE_IMAGE_PASSWORD; @Bean public Jaxb2Marshaller imsDownloadMarshaller() { Jaxb2Marshaller marshaller = new Jaxb2Marshaller(); marshaller.setContextPaths("com.pcitc.framework.modules.archive.ws.ims"); return marshaller; } @Bean public HttpComponentsMessageSender imageMessageSender() { HttpComponentsMessageSender messageSender = new HttpComponentsMessageSender(); messageSender.setCredentials(new UsernamePasswordCredentials(ARCHIVE_IMAGE_USER, ARCHIVE_IMAGE_PASSWORD)); messageSender.setConnectionTimeout(60000); messageSender.setReadTimeout(60000); return messageSender; } @Bean public WebServiceTemplate imgageDownloadServiceTemplate() { WebServiceTemplate webServiceTemplate = new WebServiceTemplate(messageFactory()); webServiceTemplate.setDefaultUri(ARCHIVE_IMAGE_DOWNLOAD_SERVICE); webServiceTemplate.setMarshaller(imsDownloadMarshaller()); webServiceTemplate.setUnmarshaller(imsDownloadMarshaller()); webServiceTemplate.setMessageSender(imageMessageSender()); return webServiceTemplate; } ``` --------------------------------- ## ## 以下是调用代码 --------------------------------- ``` public String getImageDownloadUrlService(String billCode) throws Exception { GetImagesByCode request = new GetImagesByCode(); request.setIn0(billCode); request.setIn1("0"); GetImagesByCodeResponse response1 = (GetImagesByCodeResponse)webServiceTemplate.marshalSendAndReceive(ARCHIVE_IMAGE_DOWNLOAD_SERVICE, request); String result1 = response1 == null ? "" : response1.getOut(); return result1; } ``` ----------------------- ## 超时时间设置为1分钟 ## ## boot项目启动时警告:Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. ## ## 之前项目没问题,接口可以通,能拿到返回结果,近期突然出现这个问题,不太清楚原因。 ## ## localhost本地调用是没问题的 ## 但是服务器调用就出问题了,防火墙端口是通的,想不到其他原因了。 ## 服务器限制了其他东西嘛?急求大神给思路
oracle报ORA-12541无监听错误
cmd启动报TNS-12560: TNS: 协议适配器错误 TNS-00530: 协议适配器。 ![图片说明](https://img-ask.csdn.net/upload/201708/09/1502243550_718355.png) 这是listener.ora的文件: SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = CLRExtProc) (ORACLE_HOME = C:\software\orcal\product\11.2.0\dbhome_1) (PROGRAM = extproc) (ENVS = "EXTPROC_DLLS=ONLY:C:\software\orcal\product\11.2.0\dbhome_1\bin\oraclr11.dll") ) (SID_DESC = (GLOBAL_DBNAME = orcl) (ORACLE_HOME = C:\software\orcal\product\11.2.0\dbhome_1) (SID_NAME = orcl) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.23.15)(PORT = 1521)) ) ) ADR_BASE_LISTENER = C:\software\orcal 网上说的注册表也没有问题: ![图片说明](https://img-ask.csdn.net/upload/201708/09/1502242695_43137.png) 急求解答!
Linux下MPI+OpenMP程序编译运行出错
如题,错误提示如下: [node65:03787] *** Process received signal *** [node65:03787] Signal: Segmentation fault (11) [node65:03787] Signal code: Address not mapped (1) [node65:03787] Failing at address: 0x44000098 [node65:03787] [ 0] /lib64/libpthread.so.0 [0x2aaabc14ac00] [node65:03787] [ 1] /public/share/mpi/openmpi-1.4.5//lib/libmpi.so.0(MPI_Comm_size+0x60) [0x2aaabb398360] [node65:03787] [ 2] fdtd_3D_xyzPML_MPI_OpenMP(main+0xaa) [0x42479a] [node65:03787] [ 3] /lib64/libc.so.6(__libc_start_main+0xf4) [0x2aaabc273184] [node65:03787] [ 4] fdtd_3D_xyzPML_MPI_OpenMP(_ZNSt8ios_base4InitD1Ev+0x39) [0x405d79] [node65:03787] *** End of error message *** [node65:03788] *** Process received signal *** [node65:03788] Signal: Segmentation fault (11) [node65:03788] Signal code: Address not mapped (1) [node65:03788] Failing at address: 0x44000098 [node65:03788] [ 0] /lib64/libpthread.so.0 [0x2b663e446c00] [node65:03788] [ 1] /public/share/mpi/openmpi-1.4.5//lib/libmpi.so.0(MPI_Comm_size+0x60) [0x2b663d694360] [node65:03788] [ 2] fdtd_3D_xyzPML_MPI_OpenMP(main+0xaa) [0x42479a] [node65:03788] [ 3] /lib64/libc.so.6(__libc_start_main+0xf4) [0x2b663e56f184] [node65:03788] [ 4] fdtd_3D_xyzPML_MPI_OpenMP(_ZNSt8ios_base4InitD1Ev+0x39)[0x405d79] [node65:03788] *** End of error message *** ----------------------------------------------------------------------------------- mpirun noticed that process rank 2 with PID 3787 on node node65 exited on signal 11 (Segmentation fault). ----------------------------------------------------------------------------------- 请问各位大侠,这时什么原因引起的啊?急求!!! 我利用gdb调试编译产生的core文件,提示如下: Starting program: /public/home/xx355/data/fdtd_3D_xyzPML_MPI_OpenMP [Thread debugging using libthread_db enabled] [New Thread 47032965403440 (LWP 19821)] [New Thread 1075841344 (LWP 19825)] [New Thread 1077942592 (LWP 19826)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 47032965403440 (LWP 19821)] 0x00002ac6b5ecd360 in PMPI_Comm_size () from /public/share/mpi/openmpi-1.4.5//lib/libmpi.so.0 请大家给予帮助,谢谢、、、
AttributeError: module 'xlwt' has no attribute 'Workbook'急求问题解答
用mypython工具执行data.to_excel(standardizedfile)操作时报错如下: AttributeError: module 'xlwt' has no attribute 'Workbook' 请各位大拿帮忙看看是啥问题 ![图片说明](https://img-ask.csdn.net/upload/202001/07/1578364302_231414.png) 运行结果如下: Traceback (most recent call last): File "F:/mypython/writeExcel.py", line 7, in <module> table = xlwt.Workbook(encoding='utf-8', style_compression=0) AttributeError: module 'xlwt' has no attribute 'Workbook'
急求 navicat premium 11.0.16 注册码
急求 navicat premium 11.0.16 注册码 哪位大神知道,急求呀
急!!!!CM配置hive on spark后执行总是报错
急求大神抬一手。。。。。 2017-11-10 14:50:13,485 INFO [main]: ql.Driver (SessionState.java:printInfo(986)) - Launching Job 3 out of 5 2017-11-10 14:50:13,485 INFO [main]: ql.Driver (Driver.java:launchTask(1977)) - Starting task [Stage-1:MAPRED] in serial mode 2017-11-10 14:50:13,485 INFO [main]: exec.Task (SessionState.java:printInfo(986)) - In order to change the average load for a reducer (in bytes): 2017-11-10 14:50:13,486 INFO [main]: exec.Task (SessionState.java:printInfo(986)) - set hive.exec.reducers.bytes.per.reducer=<number> 2017-11-10 14:50:13,486 INFO [main]: exec.Task (SessionState.java:printInfo(986)) - In order to limit the maximum number of reducers: 2017-11-10 14:50:13,486 INFO [main]: exec.Task (SessionState.java:printInfo(986)) - set hive.exec.reducers.max=<number> 2017-11-10 14:50:13,486 INFO [main]: exec.Task (SessionState.java:printInfo(986)) - In order to set a constant number of reducers: 2017-11-10 14:50:13,486 INFO [main]: exec.Task (SessionState.java:printInfo(986)) - set mapreduce.job.reduces=<number> 2017-11-10 14:50:13,676 INFO [main]: exec.Task (SessionState.java:printInfo(986)) - Starting Spark Job = d2163859-72ee-4a25-8e27-e566d8ab548c 2017-11-10 14:51:06,982 WARN [RPC-Handler-3]: client.SparkClientImpl (SparkClientImpl.java:rpcClosed(131)) - Client RPC channel closed unexpectedly. 2017-11-10 14:52:06,901 ```**WARN [main]: impl.RemoteSparkJobStatus (RemoteSparkJobStatus.java:getSparkJobInfo(152)) - Failed to get job info. java.util.concurrent.TimeoutException** at io.netty.util.concurrent.AbstractFuture.get(AbstractFuture.java:49)``` at org.apache.hadoop.hive.ql.exec.spark.status.impl.RemoteSparkJobStatus.getSparkJobInfo(RemoteSparkJobStatus.java:150) at org.apache.hadoop.hive.ql.exec.spark.status.impl.RemoteSparkJobStatus.getState(RemoteSparkJobStatus.java:82) at org.apache.hadoop.hive.ql.exec.spark.status.RemoteSparkJobMonitor.startMonitor(RemoteSparkJobMonitor.java:80) at org.apache.hadoop.hive.ql.exec.spark.status.impl.RemoteSparkJobRef.monitorJob(RemoteSparkJobRef.java:60) at org.apache.hadoop.hive.ql.exec.spark.SparkTask.execute(SparkTask.java:109) at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:214) at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:100) at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1979) at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1692) at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1424) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1208) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1198) at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:220) at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:172) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:383) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:318) at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:720) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:693) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:628) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136) 2017-11-10 14:52:06,915 ERROR [main]: status.SparkJobMonitor (RemoteSparkJobMonitor.java:startMonitor(132)) - Failed to monitor Job[ 2] with exception 'org.apache.hadoop.hive.ql.metadata.HiveException(java.util.concurrent.TimeoutException)' org.apache.hadoop.hive.ql.metadata.HiveException: java.util.concurrent.TimeoutException at org.apache.hadoop.hive.ql.exec.spark.status.impl.RemoteSparkJobStatus.getSparkJobInfo(RemoteSparkJobStatus.java:153) at org.apache.hadoop.hive.ql.exec.spark.status.impl.RemoteSparkJobStatus.getState(RemoteSparkJobStatus.java:82) at org.apache.hadoop.hive.ql.exec.spark.status.RemoteSparkJobMonitor.startMonitor(RemoteSparkJobMonitor.java:80) at org.apache.hadoop.hive.ql.exec.spark.status.impl.RemoteSparkJobRef.monitorJob(RemoteSparkJobRef.java:60) at org.apache.hadoop.hive.ql.exec.spark.SparkTask.execute(SparkTask.java:109) at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:214) at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:100) at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1979) at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1692) at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1424) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1208) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1198) at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:220) at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:172) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:383) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:318) at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:720) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:693) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:628) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136) Caused by: java.util.concurrent.TimeoutException at io.netty.util.concurrent.AbstractFuture.get(AbstractFuture.java:49) at org.apache.hadoop.hive.ql.exec.spark.status.impl.RemoteSparkJobStatus.getSparkJobInfo(RemoteSparkJobStatus.java:150) ... 24 more ```2017-11-10 14:52:06,915 ERROR [main]: status.SparkJobMonitor (SessionState.java:printError(995)) - Failed to monitor Job[ 2] with exception 'org.apache.hadoop.hive.ql.metadata.HiveException(java.util.concurrent.TimeoutException)' org.apache.hadoop.hive.ql.metadata.HiveException: java.util.concurrent.TimeoutException``` at org.apache.hadoop.hive.ql.exec.spark.status.impl.RemoteSparkJobStatus.getSparkJobInfo(RemoteSparkJobStatus.java:153)``` at org.apache.hadoop.hive.ql.exec.spark.status.impl.RemoteSparkJobStatus.getState(RemoteSparkJobStatus.java:82) at org.apache.hadoop.hive.ql.exec.spark.status.RemoteSparkJobMonitor.startMonitor(RemoteSparkJobMonitor.java:80) at org.apache.hadoop.hive.ql.exec.spark.status.impl.RemoteSparkJobRef.monitorJob(RemoteSparkJobRef.java:60) at org.apache.hadoop.hive.ql.exec.spark.SparkTask.execute(SparkTask.java:109) at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:214) at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:100) at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1979) at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1692) at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1424) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1208) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1198) at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:220) at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:172) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:383) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:318) at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:720) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:693) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:628) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136) Caused by: java.util.concurrent.TimeoutException at io.netty.util.concurrent.AbstractFuture.get(AbstractFuture.java:49) at org.apache.hadoop.hive.ql.exec.spark.status.impl.RemoteSparkJobStatus.getSparkJobInfo(RemoteSparkJobStatus.java:150) ... 24 more ``` 2017-11-10 14:52:06,931 ERROR [main]: ql.Driver (SessionState.java:printError(995)) - FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.spark.SparkTask```
急求...点击箭头进行排名,像有些商城的销量一样!
急求demo,像商城价格排名一样,点击箭头可以根据价格进行排名,点击向上的箭头价格从高到低,点击箭头向下时价格从低到高
cdh hadoop mapreduce 运行时的问题:(有时候会出现,有时候不出现,急求大神帮助)
15/10/08 08:49:13 INFO mapreduce.Job: Job job_1419225162729_18465 running in uber mode : false 15/10/08 08:49:13 INFO mapreduce.Job: map 0% reduce 0% 15/10/08 08:49:13 INFO mapreduce.Job: Job job_1419225162729_18465 failed with state FAILED due to: Application application_1419225162729_18465 failed 1 times due to AM Container for appattempt_1419225162729_18465_000001 exited with exitCode: -1000 due to: java.io.IOException: Not able to initialize app-log directories in any of the configured local directories for app application_1419225162729_18465 at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.createAppLogDirs(DefaultContainerExecutor.java:459) at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.startLocalizer(DefaultContainerExecutor.java:91) at org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService$LocalizerRunner.run(ResourceLocalizationService.java:861) .Failing this attempt.. Failing the application. 15/10/08 08:49:13 INFO mapreduce.Job: Counters: 0 Moved: 'hdfs://oiddhnode02:8020/user/nmger/worktemp/2015100408' to trash at: hdfs://oiddhnode02:8020/user/nmger/.Trash/Current
急求解决 IOS推送 javapns2.2
javapns2.2 还能使用吗? 为什么我一直报错? 错误信息为: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 free -m 其中:m表示兆,也可以用g,注意都要小写 Men:表示物理内存统计 total:表示物理内存总数(total=used+free) use...
Vue + Spring Boot 项目实战(十四):用户认证方案与完善的访问拦截
本篇文章主要讲解 token、session 等用户认证方案的区别并分析常见误区,以及如何通过前后端的配合实现完善的访问拦截,为下一步权限控制的实现打下基础。
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发...
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 演示地点演示 html代码如下` music 这个年纪 七月的风 音乐 ` 然后就是css`*{ margin: 0; padding: 0; text-decoration: none; list-...
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。
数据库优化 - SQL优化
以实际SQL入手,带你一步一步走上SQL优化之路!
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 cpp 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7 p...
通俗易懂地给女朋友讲:线程池的内部原理
餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹...
面试官:你连RESTful都不知道我怎么敢要你?
干货,2019 RESTful最贱实践
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
漫话:什么是平衡(AVL)树?这应该是把AVL树讲的最好的文章了
这篇文章通过对话的形式,由浅入深带你读懂 AVL 树,看完让你保证理解 AVL 树的各种操作,如果觉得不错,别吝啬你的赞哦。 1、若它的左子树不为空,则左子树上所有的节点值都小于它的根节点值。 2、若它的右子树不为空,则右子树上所有的节点值均大于它的根节点值。 3、它的左右子树也分别可以充当为二叉查找树。 例如: 例如,我现在想要查找数值为14的节点。由于二叉查找树的特性,我们可...
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
开源并不是你认为的那些事
点击上方蓝字 关注我们开源之道导读所以 ————想要理清开源是什么?先要厘清开源不是什么,名正言顺是句中国的古代成语,概念本身的理解非常之重要。大部分生物多样性的起源,...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员...
网易云6亿用户音乐推荐算法
网易云音乐是音乐爱好者的集聚地,云音乐推荐系统致力于通过 AI 算法的落地,实现用户千人千面的个性化推荐,为用户带来不一样的听歌体验。 本次分享重点介绍 AI 算法在音乐推荐中的应用实践,以及在算法落地过程中遇到的挑战和解决方案。 将从如下两个部分展开: AI算法在音乐推荐中的应用 音乐场景下的 AI 思考 从 2013 年 4 月正式上线至今,网易云音乐平台持续提供着:乐屏社区、UGC...
【技巧总结】位运算装逼指南
位算法的效率有多快我就不说,不信你可以去用 10 亿个数据模拟一下,今天给大家讲一讲位运算的一些经典例子。不过,最重要的不是看懂了这些例子就好,而是要在以后多去运用位运算这些技巧,当然,采用位运算,也是可以装逼的,不信,你往下看。我会从最简单的讲起,一道比一道难度递增,不过居然是讲技巧,那么也不会太难,相信你分分钟看懂。 判断奇偶数 判断一个数是基于还是偶数,相信很多人都做过,一般的做法的代码如下...
《C++ Primer》学习笔记(六):C++模块设计——函数
专栏C++学习笔记 《C++ Primer》学习笔记/习题答案 总目录 https://blog.csdn.net/TeFuirnever/article/details/100700212 —————————————————————————————————————————————————————— 《C++ Primer》习题参考答案:第6章 - C++模块设计——函数 文章目录专栏C+...
8年经验面试官详解 Java 面试秘诀
作者 |胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。 Java程序员准备和投递简历的实...
面试官如何考察你的思维方式?
1.两种思维方式在求职面试中,经常会考察这种问题:北京有多少量特斯拉汽车?某胡同口的煎饼摊一年能卖出多少个煎饼?深圳有多少个产品经理?一辆公交车里能装下多少个乒乓球?一个正常成年人有多少根头发?这类估算问题,被称为费米问题,是以科学家费米命名的。为什么面试会问这种问题呢?这类问题能把两类人清楚地区分出来。一类是具有文科思维的人,擅长赞叹和模糊想象,它主要依靠的是人的第一反应和直觉,比如小孩...
so easy! 10行代码写个"狗屁不通"文章生成器
前几天,GitHub 有个开源项目特别火,只要输入标题就可以生成一篇长长的文章。 背后实现代码一定很复杂吧,里面一定有很多高深莫测的机器学习等复杂算法 不过,当我看了源代码之后 这程序不到50行 尽管我有多年的Python经验,但我竟然一时也没有看懂 当然啦,原作者也说了,这个代码也是在无聊中诞生的,平时撸码是不写中文变量名的, 中文...
知乎高赞:中国有什么拿得出手的开源软件产品?(整理自本人原创回答)
知乎高赞:中国有什么拿得出手的开源软件产品? 在知乎上,有个问题问“中国有什么拿得出手的开源软件产品(在 GitHub 等社区受欢迎度较好的)?” 事实上,还不少呢~ 本人于2019.7.6进行了较为全面的回答,对这些受欢迎的 Github 开源项目分类整理如下: 分布式计算、云平台相关工具类 1.SkyWalking,作者吴晟、刘浩杨 等等 仓库地址: apache/skywalking 更...
相关热词 c# 图片上传 c# gdi 占用内存 c#中遍历字典 c#控制台模拟dos c# 斜率 最小二乘法 c#进程延迟 c# mysql完整项目 c# grid 总行数 c# web浏览器插件 c# xml 生成xsd
立即提问