tensorflow,python运行时报错在reshape上,求大神解答 80C

代码来自于一篇博客,用tensorflow判断拨号图标和短信图标的分类,训练已经成功运行,以下为测试代码,错误出现在38行
image = tf.reshape(image, [1, 208, 208, 3])
我的测试图片是256*256的,也测试了48*48的

 #!/usr/bin/python
# -*- coding:utf-8 -*-
# @Time   : 2018/3/31 0031 17:50
# @Author : scw
# @File   : main.py
# 进行图片预测方法调用的文件
import numpy as np
from PIL import Image
import tensorflow as tf
import matplotlib.pyplot as plt
from shenjingwangluomodel import inference
# 定义需要进行分类的种类,这里我是进行分两种,因为一种为是拨号键,另一种就是非拨号键
CallPhoneStyle = 2
# 进行测试的操作处理==========================
# 加载要进行测试的图片
def get_one_image(img_dir):
    image = Image.open(img_dir)
    # Image.open()
    # 好像一次只能打开一张图片,不能一次打开一个文件夹,这里大家可以去搜索一下
    plt.imshow(image)
    image = image.resize([208, 208])
    image_arr = np.array(image)
    return image_arr

# 进行测试处理-------------------------------------------------------
def test(test_file):
    # 设置加载训练结果的文件目录(这个是需要之前就已经训练好的,别忘记)
    log_dir = '/home/administrator/test_system/calldata2/'
    # 打开要进行测试的图片
    image_arr = get_one_image(test_file)

    with tf.Graph().as_default():
        # 把要进行测试的图片转为tensorflow所支持的格式
        image = tf.cast(image_arr, tf.float32)
        # 将图片进行格式化的处理
        image = tf.image.per_image_standardization(image)
        # 将tensorflow的图片的格式参数,转变为shape格式的,好像就是去掉-1这样的列表
        image = tf.reshape(image, [1, 208, 208, 3])
        # print(image.shape)

        # 参数CallPhoneStyle:表示的是分为两类
        p = inference(image, 1, CallPhoneStyle)  # 这是训练出一个神经网络的模型
        # 这里用到了softmax这个逻辑回归模型的处理
        logits = tf.nn.softmax(p)
        x = tf.placeholder(tf.float32, shape=[208, 208, 3])
        saver = tf.train.Saver()
        with tf.Session() as sess:
            # 对tensorflow的训练参数进行初始化,使用默认的方式
            sess.run(tf.global_variables_initializer())
            # 判断是否有进行训练模型的设置,所以一定要之前就进行了模型的训练
            ckpt = tf.train.get_checkpoint_state(log_dir)
            if ckpt and ckpt.model_checkpoint_path:
                # global_step = ckpt.model_checkpoint_path.split('/')[-1].split('-')[-1]
                saver.restore(sess, ckpt.model_checkpoint_path)
                # 调用saver.restore()函数,加载训练好的网络模型
                print('Loading success')
            else:
                print('No checkpoint')
            prediction = sess.run(logits, feed_dict={x: image_arr})
            max_index = np.argmax(prediction)
            print('预测的标签为:')
            if max_index == 0:
                print("是拨号键图片")
            else:
                print("是短信图片")
            # print(max_index)
            print('预测的分类结果每种的概率为:')
            print(prediction)
            # 我用0,1表示两种分类,这也是我在训练的时候就设置好的
            if max_index == 0:
                print('图片是拨号键图标的概率为 %.6f' %prediction[:, 0])
            elif max_index == 1:
                print('图片是短信它图标的概率为 %.6f' %prediction[:, 1])
# 进行图片预测
test('/home/administrator/Downloads/def.png')


'''
# 测试自己的训练集的图片是不是已经加载成功(因为这个是进行训练的第一步)
train_dir = 'E:/tensorflowdata/calldata/'
BATCH_SIZE = 5
# 生成批次队列中的容量缓存的大小
CAPACITY = 256
# 设置我自己要对图片进行统一大小的高和宽
IMG_W = 208
IMG_H = 208
image_list,label_list = get_files(train_dir) # 加载训练集的图片和对应的标签
image_batch,label_batch = get_batch(image_list,label_list,IMG_W,IMG_H,BATCH_SIZE,CAPACITY) # 进行批次图片加载到内存中

# 这是打开一个session,主要是用于进行图片的显示效果的测试
with tf.Session() as sess:
    i = 0
    coord = tf.train.Coordinator()
    threads = tf.train.start_queue_runners(coord=coord)
    try:
        while not coord.should_stop() and i < 2:
            # 提取出两个batch的图片并可视化。
            img, label = sess.run([image_batch, label_batch])

            for j in np.arange(BATCH_SIZE):
                print('label: %d' % label[j])
                plt.imshow(img[j, :, :, :])
                plt.show()
            i += 1
    except tf.errors.OutOfRangeError:
        print('done!')
    finally:
        coord.request_stop()
    coord.join(threads)
'''
0

2个回答

0

图片说明图片说明如这两个图,一个图你image变为208*208矩阵,另一个你又把它变为208*208*3矩阵,两个矩阵像素不相等,当然报错了
你可以在reshape那里变为image = tf.reshape(image, [1, 208, 208, 1])看看

0
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
springmvc+mybatis3.3报错,求大神解答
[DEBUG]2015-08-11 22:34:39,338 org.springframework.web.servlet.DispatcherServlet Could not complete requestrnorg.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.ExceptionInInitializerErrorrn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:972)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.ExceptionInInitializerErrorrn at cn.sg.dao.impl.ProductDaoImpl.qryProductByPage(ProductDaoImpl.java:66)rn at cn.sg.service.CupboardService.qryProductByPage(CupboardService.java:23)rn at cn.sg.controller.BackStageController.QueStoreList(BackStageController.java:46)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:100)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:604)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:565)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)rn ... 24 morernCaused by: org.apache.ibatis.exceptions.PersistenceException: rn### Error building SqlSession.rn### The error may exist in cn/sg/model/Product1.xmlrn### The error occurred while processing mapper_resultMap[tab_product]rn### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource cn/sg/model/Product1.xmlrn at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:23)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:79)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:71)rn at cn.sg.util.MyBatisUtilNew.(MyBatisUtilNew.java:29)rn ... 38 morernCaused by: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource cn/sg/model/Product1.xmlrn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:106)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:89)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:77)rn ... 40 morernCaused by: java.io.IOException: Could not find resource cn/sg/model/Product1.xmlrn at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:108)rn at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:95)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.mapperElement(XMLConfigBuilder.java:317)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:104)rn ... 42 morern八月 11, 2015 10:34:39 下午 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet [sasmvc] in context with path [/CUPBOARD] threw exception [Handler processing failed; nested exception is java.lang.ExceptionInInitializerError] with root causernjava.io.IOException: Could not find resource cn/sg/model/Product1.xmlrn at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:108)rn at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:95)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.mapperElement(XMLConfigBuilder.java:317)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:104)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:89)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:77)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:71)rn at cn.sg.util.MyBatisUtilNew.(MyBatisUtilNew.java:29)rn at cn.sg.dao.impl.ProductDaoImpl.qryProductByPage(ProductDaoImpl.java:66)rn at cn.sg.service.CupboardService.qryProductByPage(CupboardService.java:23)rn at cn.sg.controller.BackStageController.QueStoreList(BackStageController.java:46)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:100)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:604)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:565)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)
Tensorflow运行时报错
windows下运行TensorFlow时出现 DLL加载不成功问题 解决方案: 大部分是跟下图这个东西有关。 1、首先到电脑的 程序和功能中找到它,双击点击修复,一般修复成功,TensorFlow就能成功运行,如果不成功,点击卸载。 2、卸载后到Microsoft visual C++2015下载重新安装即可。 ...
python 小问题,求大神解答
#self.configFile = self.pathToGasp + 'gaspserver/plate-based-assembly-from-ols-pool-config.json'rn rnself.configFile = self.pathToGasp + sys.argv[1];rnrn上面两个语句,我想把路径固定路径改为参数,但是会报错!!表示不知为啥??请大神帮忙啊
python问题 求大神解答
# 我是个小白/ 这里有个问题不太懂 求解n## 代码送上nn```n #encoding:utf-8n#!/user/bin/pythonnnimport urllib.requestnimport citynimport timenimport jsonnimport tkinter as tknimport win32apinnclass Application(tk.Frame):n def __init__(self, master=None):n super().__init__(master)n self.pack()n self.create_widgets()nnn def create_widgets(self):n self.lable1=tk.Label()n self.lable1.pack(side="top")n self.lable1["text"]="请输入一个城市 \n 例如:东莞/北京/上海……"nn self.CityInputTEXT=tk.Text()n self.CityInputTEXT.pack(side='bottom')nnn self.button1=tk.Button()n self.button1.pack(side="bottom")n self.button1['text']="查询"n if self.button1['command'] :n return self.CityInputTEXT["text"]nnnnn def chaxun(CTname):n cityname=city.city.get(CTname)nn if cityname:n url = "http://www.weather.com.cn/data/cityinfo/%s.html" % citynamen content = urllib.request.urlopen(url).read().decode("utf-8")n data = json.loads(content)n result = data['weatherinfo']n Weather = json.loads(content)n cityZIDIAN = Weather["weatherinfo"]n cityInformation = ("%s\n%s\n%s ~ %s") % (cityZIDIAN['city'], cityZIDIAN['weather'],result['temp1'],result['temp2'])n return cityInformationn else:n win32api.MessageBox(0, "There are no this City\n\a没有該城市!", "今天天气")nnnnnroot = tk.Tk()nnapp=Application(root)nnnnnnnapp.mainloop()nn```nn![图片说明](https://img-ask.csdn.net/upload/201706/25/1498378003_143558.png)n运行后是这样的nnn我想要 使用查询功能nn**在app.mainloop()上面加了一句**nnn```n win32api.MessageBox(0,app.chaxun(app.create_widgets()),"")n```nnn结果就运行错误 如图n![图片说明](https://img-ask.csdn.net/upload/201706/25/1498377853_618031.png)nnnnn**希望大神能快点解答n小弟在此谢过**
androidstudio运行时总是报错:求大神指教
报的错:Error:Execution failed for task ':app:dexDebug'.n> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files (x86)\Java\jdk1.7.0\bin\java.exe'' finished with non-zero exit value 2n网上说的更改架包,和设置studio里的默认路径等,试过了,不是这个问题;ndos系统里用cmd以及javac都试过了,jdk、sdk都配置好了工作空间里也试过新建一个工程验证是否是代码问题,但都不是;n工程里build.gradle文件里更改sdk版本,也试过了没反应。n所以,现在很肯定是androidstudio里系统配置的问题,因为此问题对我很重要,所以请教大神,求指教
android sdk 运行时报错,求大神帮忙
2014-11-24 16:52:01 - HelloWord] ------------------------------rn[2014-11-24 16:52:01 - HelloWord] Android Launch!rn[2014-11-24 16:52:01 - HelloWord] The connection to adb is down, and a severe error has occured.rn[2014-11-24 16:52:01 - HelloWord] You must restart adb and Eclipse.rn[2014-11-24 16:52:01 - HelloWord] Please ensure that adb is correctly located at 'D:\java\android\adt-bundle-windows-x86-20130917\sdk\platform-tools\adb.exe' and can be executed.rn
奇怪的报错 C# (新手求大神解答)
大神们,求帮忙看看为什么会报这个错?rnSystem.NullReferenceException: Object reference not set to an instance of an object.rn at ShootSearch.ShootSeg.Segment.SegmentText(String strText) in d:\Tools\ShootSearch_Segment_1_0_bate 070312\ShootSearch_Segment_1_0_bate 070312\ShootSeg\Segment.cs:line 482rn at ShootSearch.ShootSeg.Segment.SegmentText(String strText, Boolean Enter) in d:\Tools\ShootSearch_Segment_1_0_bate 070312\ShootSearch_Segment_1_0_bate 070312\ShootSeg\Segment.cs:line 888rn at SegTest.Form1.Main() in d:\Tools\ShootSearch_Segment_1_0_bate 070312\ShootSearch_Segment_1_0_bate 070312\SegTest\Form1.cs:line 129rnrn报这个错的原因是我在main函数里加了这几句话(红色的):rn [color=#FF0000]Segment seg = new Segment();[/color] rn string str="日前,奇虎董事长周鸿祎新推出了一款反流氓软件“360安全卫士”,并将雅虎中国3721网络实名定义为流氓软件。此举引起了雅虎员工的强烈不满,甚至有就职于雅虎的原3721员工声称将起诉周鸿祎。围绕着3721这个产品,引发了一场雅虎中国与奇虎之间的战争。";rn [color=#FF0000]seg.Separator = "/";[/color]rn Console.WriteLine(seg.SegmentText(str,true));rn报错对应的行:rnline 482: if(h.ContainsKey(strChar1))rnline 888: reText += SegmentText(strArr[i]) + "\r\n";rnline 129: Console.WriteLine(seg.SegmentText(str,true));rn
启动时报错DependencyResolutionException 求大神解答
[ERROR] Failed to execute goal on project hellomaven: Could not resolve dependencies for project com.rr:hellomaven:war:0.0.1-SNAPSHOT: Could not find artifact com.oracle:ojdbc6:jar:11.2.0 in central (https://repo.maven.apache.org/maven2) -> [Help 1]rn[ERROR] rn[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.rn[ERROR] Re-run Maven using the -X switch to enable full debug logging.rn[ERROR] rn[ERROR] For more information about the errors and possible solutions, please read the following articles:rn[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
shiro 登录报错,求大神解答!!!!
public String login(String username,String password,HttpServletRequest request,HttpServletResponse response) throws NoSuchAlgorithmException, UnsupportedEncodingExceptionrn rn //User user=userServiceImpl.selectByUsername(username);rn Subject subject = SecurityUtils.getSubject(); rn UsernamePasswordToken token=new UsernamePasswordToken(username,password);rn token.setRememberMe(true);rn subject.login(token);rn token.clear();rn rn //request.setAttribute("user", user);rn rn return "main";rn rn rnrnrealms.javarnprotected AuthenticationInfo doGetAuthenticationInfo(rn AuthenticationToken authcToken) throws AuthenticationException rn // TODO Auto-generated method stubrn UsernamePasswordToken token = (UsernamePasswordToken) authcToken;rn User user = userService.selectByUsername(token.getUsername());rn if (user != null) rn String pass=new String((char[])token.getCredentials());rn try rn if(MD5Kit.authenticatePassword(MD5Kit.mixed(user.getSalt(),pass), user.getPassword()))rn SimpleAuthenticationInfo account= new SimpleAuthenticationInfo(user.getUsername(), userrn .getPassword(), getName());rn ByteSource salt = ByteSource.Util.bytes(user.getSalt());rn account.setCredentialsSalt(salt);rn return account;rn elsern return null;rn rn catch (Exception e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn return null;rn rn else rn return null;rn rn rn报错:rn八月 27, 2015 9:31:57 上午 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet [springMvc] in context with path [/sktask] threw exception [Request processing failed; nested exception is org.apache.shiro.authc.IncorrectCredentialsException: Submitted credentials for token [org.apache.shiro.authc.UsernamePasswordToken - admin, rememberMe=true] did not match the expected credentials.] with root causernorg.apache.shiro.authc.IncorrectCredentialsException: Submitted credentials for token [org.apache.shiro.authc.UsernamePasswordToken - admin, rememberMe=true] did not match the expected credentials.rn at org.apache.shiro.realm.AuthenticatingRealm.assertCredentialsMatch(AuthenticatingRealm.java:600)rn at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:578)rn at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)rn at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)rn at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)rn at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)rn at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)rn at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)rn at com.sk.main.controller.LoginController.login(LoginController.java:36)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:777)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:706)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)rn at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)rn at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)rn at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)rn at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)rn at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)rn at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)rn at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)rn at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)rn at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)rn at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)rn at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)rn at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)rn at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:745)rnrn
关于phpExcel导入数据库的报错,求大神解答
用phpexcel导入数据库,提示如下报错:rn[img=https://img-bbs.csdn.net/upload/201803/12/1520860779_575907.png][/img]rnrnrn我的关键代码如下:rn[img=https://img-bbs.csdn.net/upload/201803/12/1520860801_741611.png][/img]rnrnrn从语法角度 没发现什么问题。报错提示中给出了K重庆市永川区……。但是我的通讯地址列应该是J,而不是K。rnrn我直接在数据库中导入表是没有问题的,但是通过phpexcel程序导入就出现了这个报错。求大神解答!
求大神解答fragment 切换过快报错
Fragment 里面有listView 是从网络上获取数据显示,网络上获取数据有延迟可能要1秒左右才能显示 ,当数据还没有显示出来时,切换到其他的 fragment 就会报错如下:rnrnFATAL EXCEPTION: mainrnjava.lang.NullPointerExceptionrnat android.view.LayoutInflater.from(LayoutInflater.java:210)rnat com.xdj.alat.adapter.NeedSupplyAdapter.(NeedSupplyAdapter.java:23)rnat com.xdj.alat.fragment.ServiceFragment$1.handleMessage(ServiceFragment.java:75)rnrnrn我用的handler传的数据:rn Handler handler = new Handler() rn public void handleMessage(Message msg) rn String data = (String) msg.obj;rn list_need = new ArrayList();rn if (adapter == null) rn adapter = new NeedSupplyAdapter(getActivity(), list_need);rn needlist.setAdapter(adapter);rn rn ServiceNeedJson.serviceneedjson(data, list_need);rn rn ;rn求大神解答下这种要怎么处理下。还有个问题时,当我访问服务器 ,服务器却没有打开,当开了时这边只要访问过也会报错。
导入项目后R.id.lv 报错!求大神解答
[size=24px]不知道怎么了 我截了图 但是 图片无法上传,我导入了项目后 R文件中有lv1这个变量 可是 在引用的时候却报错[/size]rnpackage com.example.listadapter;rnrnimport java.util.ArrayList;rnimport java.util.List;rnrnimport android.R;rnimport android.os.Bundle;rnimport android.app.Activity;rnimport android.view.Menu;rnimport android.widget.ArrayAdapter;rnimport android.widget.ListView;rnrnpublic class MainActivity extends Activity rnrn @Overridern protected void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.activity_list_item);rn //返回listView实例rn ListView lv1=(ListView) findViewById(R.id.lv1);[color=#FF0000]!!!!!!!!!!这个位置lv1下报错 lv1 cant be resolved or it is not a field[/color]rn List items=new ArrayList();rn //向集合中添加数据rn for (int i = 0; i < 10; i++) rn items.add("数据"+(i+1));rn rn /**rn * 第一种适配器rn * ArrayAdapter(Context,textViewResourceId 就是listview中每一行的布局,数据集合)rn */ rn ArrayAdapter adapter=new ArrayAdapter(this,android.R.layout.simple_expandable_list_item_1,items);rn //设置适配器rn lv1.setAdapter(adapter);rn rnrn @Overridern public boolean onCreateOptionsMenu(Menu menu) rn // Inflate the menu; this adds items to the action bar if it is present.rn getMenuInflater().inflate(R.menu.main, menu);rn return true;rn rnrnrn
springMVC报错,在线等,求大神解答
在使用spring框架的时候出现找不到类的异常,我自己下载包到导入了,还是这样。这个javax/portlet/PortletException到底是什么???求大神解答rn十二月 23, 2015 11:57:05 上午 org.apache.catalina.core.ApplicationContext logrn严重: StandardWrapper.Throwablernjava.lang.NoClassDefFoundError: javax/portlet/PortletExceptionrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:800)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3114)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1342)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1823)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)rn at java.lang.Class.getDeclaredMethods0(Native Method)rn at java.lang.Class.privateGetDeclaredMethods(Class.java:2625)rn at java.lang.Class.getDeclaredMethods(Class.java:1868)rn at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:609)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:521)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:507)rn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1069)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:838)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:667)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:633)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:681)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:552)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:493)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5253)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5543)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1978)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: java.lang.ClassNotFoundException: javax.portlet.PortletExceptionrn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1854)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)rn ... 48 morern十二月 23, 2015 11:57:05 上午 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet [SpringMVC05] in web application [/SpringMVC04] threw load() exceptionrnjava.lang.ClassNotFoundException: javax.portlet.PortletExceptionrn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1854)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:800)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3114)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1342)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1823)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)rn at java.lang.Class.getDeclaredMethods0(Native Method)rn at java.lang.Class.privateGetDeclaredMethods(Class.java:2625)rn at java.lang.Class.getDeclaredMethods(Class.java:1868)rn at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:609)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:521)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:507)rn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1069)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:838)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:667)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:633)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:681)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:552)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:493)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5253)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5543)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1978)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rn
jboss后台报错,求大神解答
ERROR [URLDeploymentScanner] Incomplete Deployment listing:rnrn--- Incompletely deployed packages ---rnorg.jboss.deployment.DeploymentInfo@86bb2322 url=file:/D:/baserver/jboss/servernr/default/deploy/batj-ds.xml rn deployer: org.jboss.deployment.XSLSubDeployer@82294brn status: nullrn state: FAILEDrn watch: file:/D:/baserver/jboss/server/default/deploy/batj-ds.xmlrn altDD: nullrn lastDeployed: 1519264708717rn lastModified: 1519264708710rn mbeans:rnrn--- MBeans waiting for other MBeans ---rnObjectName: persistence.units:jar=batj_server.jar,unitName=batjPUrn State: NOTYETINSTALLEDrn I Depend On:rn jboss.jca:name=jdbc/batjDS,service=DataSourceBindingrn Depends On Me:rn jboss.j2ee:jar=batj_server.jar,name=ejb/BaseSet,service=EJB3rn jboss.j2ee:jar=batj_server.jar,name=ejb/Setting,service=EJB3rnrnObjectName: jboss.j2ee:jar=batj_server.jar,name=ejb/BaseSet,service=EJB3rn State: NOTYETINSTALLEDrn I Depend On:rn persistence.units:jar=batj_server.jar,unitName=batjPUrnrnObjectName: jboss.j2ee:jar=batj_server.jar,name=ejb/Setting,service=EJB3rn State: NOTYETINSTALLEDrn I Depend On:rn persistence.units:jar=batj_server.jar,unitName=batjPrn怎么办?
Opencv的reshape函数报错
除了网上解释的,reshape前后的通道数*行数*列数需要保持不变,即使这个条件满足了,还是会报错,可能是什么原因导致的呢? 很可能是reshape之前的函数导致的! 比如说,你需要对A进行reshape,但是在reshape之前先进行了其它操作,例如先来了一个A.convertTo()操作,然后你会发现A.reshape就会报错了!为什么呢?我个人认为原因在于void Mat::conver
Python运行时报错apscheduler.scheduler
Python运行时报错:rn![图片说明](http://img.ask.csdn.net/upload/201701/17/1484640509_362657.jpg)rnNo handlers could be found for logger "apscheduler.scheduler"rn英语不好,翻译了下“没有程序可以发现记录器 apscheduler调度”rnrn这是在本地运行Python项目时报的错,在网上搜了好多办法始终没有解决,麻烦各位帮忙看下!感激不尽~
使用TensorFlow批量reshape图片
        最近需要把一些图片格式转成一样的,查找了一下大神们写的资料,用TensorFlow中的图片处理函数可以做reshape,于是就写了一段代码:读取一个文件夹中的所有图片,批量处理成同样格式的; import tensorflow as tf import os import numpy as np import matplotlib.pyplot as plt path = '...
求大神解答python中的正则表达式问题
对于正则表达式中的非贪婪模式,我想知道非贪婪模式中的最少的字符是怎么规定的。比如+?在不同情况下表示的匹配次数是多少?
scrapy上的一点问题,求大神解答
我用scrapy shell http://www.louisvuitton.cn/zhs-cn/products/tambour-large-quartz-brown-dial-leather-strap-002069,rn通过response.body返回的代码被突然截断,和网页源代码不一样,那个网站稍微有点大,我怀疑是scrapy内部的原因。还有我的HTTP通过抓包是1.1的,和网上有个解答不同。
面试题,求大神解答
请用C#实现以下功能rn1.一个winform程序,内嵌浏览器访问一个html页面,显示html内容rn2.在html页面中创建一个按钮A,点击按钮可以显示又winform弹出的对话框rn3.在winform程序界面上,创建一个按钮B,点击后,显示又html javascript弹出的消息提示框rn4.由winform程序界面上,创建一个按钮C,点击后将一个js函数注入到浏览器的html中,改变按钮A的点击效果,
求大神解答
2、 设计程序的功能是找出1000以内这样的正整数N:它的不同值的因子(包括1和N在内)之和是一个素数,例如16,1+2+4+8+16=31rn要求:rn(1)单击“开始”按钮,找出符合要求的正整数N,将N 和不同值因子和等式,显示在列表框当中。例如“16,1+2+4+8+16=31”rn(2)单击“清除”按钮,则将列表框清空,单击“结束”按钮,结束程序运行;rn(3)程序中必须包含一个判断某数是否为素数的通用过程。rn(4)将窗体文件和工程文件分别命名为F2和P2,并保存到名为T2的文件夹内rn
求大神帮忙解答!!
大神,您好:rn 小弟遇到了下面的代码:rn [code=java]<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>rn<%rnString path = request.getContextPath();rnString basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";rnString errorMessage=(String)request.getAttribute("errorMessage");rn%>rn//七rnrnrnrn rn 远程医患交流平台-登陆rn rnrnrnrnrn rn rn rn rn rn rn 账 户:rn 密 码: rn 用户类型:医生用户患者用户管理员 rn <%rn if(errorMessage!=null) %>rn <%=errorMessage %>rn <% rn %>rnrnrn rn rn rn rn rn rn rn rn rnrnrnrn[/code]rn 下图为代码运行效果:rn [img=https://img-bbs.csdn.net/upload/201601/20/1453219648_447217.jpg][/img]rn 求高手点拨:rn 这个类型的 “表单提交 ”的机制,在哪行代码体现?rn 并且,这个类型的用户,单击图片中的“登陆”按钮后,应该触发了服务器验证用户是否合法的流程中。rn 上面:“单击图片中的登陆按钮后,登入系统。这一行 ”伪代码“, 要是换成对应的Java代码或者Jsp代码的话,应该分别走哪几行代码?rn 希望高手,能够指教!!rn 小弟,100分奉上!!rn [img=https://img-bbs.csdn.net/upload/201601/20/1453220877_494394.png][/img]
tomcat报错 求大神解答!
rn错误信息如下。。 我百度了一下都是说连接不了数据库,但是解决方法都不管用rnrnERROR JDBCExceptionReporter:78 - Cannot create PoolableConnectionFactory (到主机 的 TCP/IP 连接失败。 java.net.ConnectException: Connection timed out: connect)rnrn我做了很多尝试,但是都没用,不知道问题出在哪? 我是做前端的,这个后台java程序不是我写的 所以具体该怎么处理这个东西??
thinkphp求大神解答
我有一个form表单 rn rn1:rn2:rn3:rn4:rnrn我想把 1存到一个数据表 2存到另一个数据表 3存到另外一个数据表里, 这个东西应该怎么写,或者大神忘记我这个表单 直接给个方法 求帮助!!!
新手求大神解答!!
最近学习javaweb的servlet,做了一个查询 跳转完了总是空白页rnconsole里是这样的rn严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.ArrayIndexOutOfBoundsException: -1rn at org.eclipse.jdt.internal.compiler.codegen.StackMapFrame.addStackItem(StackMapFrame.java:92)rn at org.eclipse.jdt.internal.compiler.ClassFile.traverse(ClassFile.java:5586)rn at org.eclipse.jdt.internal.compiler.ClassFile.generateStackMapTableAttribute(ClassFile.java:4303)rn at org.eclipse.jdt.internal.compiler.ClassFile.completeCodeAttribute(ClassFile.java:1378)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:338)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:270)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:566)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:635)rn at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:368)rn at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:781)rn at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)rn at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:436)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)rn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)rn at servlets.Update1.doGet(Update1.java:32)rn at servlets.Update1.doPost(Update1.java:40)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)rn at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Unknown Source)rnrnorg.apache.jasper.JasperException: Unable to compile class for JSPrn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:579)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)rn at servlets.Update1.doGet(Update1.java:32)rn at servlets.Update1.doPost(Update1.java:40)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)rn at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.ArrayIndexOutOfBoundsException: -1rn at org.eclipse.jdt.internal.compiler.codegen.StackMapFrame.addStackItem(StackMapFrame.java:92)rn at org.eclipse.jdt.internal.compiler.ClassFile.traverse(ClassFile.java:5586)rn at org.eclipse.jdt.internal.compiler.ClassFile.generateStackMapTableAttribute(ClassFile.java:4303)rn at org.eclipse.jdt.internal.compiler.ClassFile.completeCodeAttribute(ClassFile.java:1378)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:338)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:270)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:566)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:635)rn at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:368)rn at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:781)rn at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)rn at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:436)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)rn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)rn ... 39 morern
求大神解答,谢谢
grant selectrnon table 职工,部门rnto 王明rnrnrnrn消息102,级别15,状态1,第2行rn','附近有语法错误。
求大神解答!
我是个小白,最近一直在研究怎样上谷歌,都快要哭了!哪位大佬给解答一下,现在怎么翻墙啊!
异常错误,求大神解答
![![图片说明](https://img-ask.csdn.net/upload/201606/04/1465022376_985865.png)图片说明](https://img-ask.csdn.net/upload/201606/04/1465022369_81740.png)
求大神解答啊
连上数据库之后 打不开collection了 mongoVEU是1.6.3 32位的 系统是64位的 但是笔记本也是64位系统 可以正常使用啊 为什么换上公司的台机就不行了呢???rnrn[img=https://img-bbs.csdn.net/upload/201606/21/1466501111_394183.png][/img]
flash求大神解答
小弟,做了一个简单的,flash与vb结合的程[img=https://img-bbs.csdn.net/upload/201504/01/1427849436_788729.png][/img]序,就是flash 与vb交互,在排版方面遇到问题,想要让中间的FLVPlayback全屏展示该如何操作
求大神解答!!!!!
这段代码为什么可以弹出来1不能弹出来2???????![图片](https://img-ask.csdn.net/upload/201703/23/1490226986_352921.png)
离散数学,,,求大神解答
求 (¬p∨¬q)→(p↔¬q)的主析取范式和主合取范式n求解答求解答求解答求解答求解答求解答
求mfc大神解答
创建了Cdialog类怎么找不到相关类的Dlg.cpp
求大神解答!!!
[code=html][/code]rnrn请问这个代码中的#commentform是什么意思呀?
java.lang.InstantiationException,求大神解答!
严重: Servlet.service() for servlet spring threw exceptionrnjava.lang.InstantiationExceptionrn at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)rn at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:104)rn at org.springframework.web.method.annotation.ModelAttributeMethodProcessor.createAttribute(ModelAttributeMethodProcessor.java:136)rn at org.springframework.web.servlet.mvc.method.annotation.ServletModelAttributeMethodProcessor.createAttribute(ServletModelAttributeMethodProcessor.java:81)rn at org.springframework.web.method.annotation.ModelAttributeMethodProcessor.resolveArgument(ModelAttributeMethodProcessor.java:102)rn at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:75)rn at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:162)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:123)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:100)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:604)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:565)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)rn at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.mvc.util.LoginFilter.doFilter(LoginFilter.java:27)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.mvc.util.SystemContextFilter.doFilter(SystemContextFilter.java:29)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)rn at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rnrn这是我在做spring MVC 文件上传所出现的异常,所用上传jar 包是jspSmartUpload.jar,求解rnrn这是后台方法rn[img=https://img-bbs.csdn.net/upload/201312/06/1386301764_604549.png][/img]rn这是前台jsprn[img=https://img-bbs.csdn.net/upload/201312/06/1386301781_102306.png][/img]rnrn
新手 求大神解答
[img=https://img-bbs.csdn.net/upload/201612/22/1482372220_679957.png][/img] 这个问题怎么解决 就一个c#登陆界面密码验证的问题 用mysql 这里就是不行为什么啊 求大神详细解答下 万分感谢rn
求大神帮忙解答
写程序帮李老师把2 组学生配对。有两组学生,A 组跟 B组。每个学生有自己的分数,分rn数为1 到100 的整数。一个 A 组的学生能跟一个 B组的学生配成一对,条件是两个学生分rn数差别不能超过某非负整数 k 。每一对包含一个 A 组的学生跟一个 B组的学生。每个学生rn只能参与一对不能参与多对。rn程序需要从标准输入(stdin)读问题数据,包括 3 行。第一行有 3 个整数,第一是 k ,第rn二是A 组的人数,第三是 B组的人数。第二第三行分别是 A 组 B组学生的分数,空各字符rn为定界符。答案为最多能配对的数量。程序需要把答案写到标准输出(stdout)。rn输入例子1:rn3 4 5rn1 1 0 2 0 2 6rn2 7 1 4 2 3 1 0 0rn输出例子1:rn3rn输入例子2:rn0 5 5rn1 7 4 5 0 2 3 1 0rn1 0 5 0 2 3 7 4 1 0 0rn输出例子2:rn4rn
初学者求大神解答
protected void Button1_Click(object sender, EventArgs e)rn rn string name = Session["Vipname"].ToString();rn string userid = Session["Vipcard"].ToString();rn string zhuti = txt_zhutiadd.Text.ToString();rn string neirong = txt_neirongadd.Text.ToString();rn //string time = DateTime.Now.ToString();rn string sConn = ConfigurationManager.ConnectionStrings["ConnStr"].ToString();rn using (SqlConnection Conn = new SqlConnection(sConn))rn rn Conn.Open();rn using (SqlCommand cmd = new SqlCommand("Insert INTO [Liuyan] ([lytitle], [lycontent] ,[username] , [userid]) VALUES (@zhuti,@neirong,@name,@userid)", Conn))rn rn cmd.Parameters.AddWithValue("@zhuti", zhuti);rn cmd.Parameters.AddWithValue("@neirong", neirong);rn //cmd.Parameters.AddWithValue("@time", time);rn cmd.Parameters.AddWithValue("@name", name);rn cmd.Parameters.AddWithValue("@userid", userid);rn cmd.ExecuteNonQuery();rn rn rn rn rn总是报错,看了半天实在是看不出哪里错了,求大神解答rnrn编译不报错 运行出错rnrn行 40: cmd.Parameters.AddWithValue("@name", name);rn行 41: cmd.Parameters.AddWithValue("@userid", userid);rn行 42: cmd.ExecuteNonQuery();rn行 43: rn行 44: rn rnrn
求大神解答技术问题?
[img=https://img-bbs.csdn.net/upload/201702/11/1486790047_79897.png][/img]rn这是我在百度搜索中看到的 点击上一页下一页 整个页面不会刷新,只刷新这一块内容,而且还是带条件的进行查询的,这个用到的什么技术???
新人,求大神解答!!!!
为什么我下android studio里java中没有src,也没有gen文件?会对我的编程有影响吗?![图片](https://img-ask.csdn.net/upload/201611/13/1478967421_859164.jpg)

相似问题

1
tensorflow-gpu Failed to get convolution algorithm.
0
slim微调后的模型可以用在tf-faster rcnn上进行细粒度测试吗?
1
如何解决tensorflow中的图片维度转换问题?
0
为什么我用python运行一个可视化MINST数据的文件,系统总是提示‘X_train is not defined’?
0
ValueError: multilabel-indicator format is not supported的报错原因?
1
Segnet网络用keras实现的时候报错ValueError,求大神帮忙看看
1
修改的SSD—Tensorflow 版本在训练的时候遇到loss输入维度不一致
0
tensorflow训练过程权重不更新,loss不下降,输出保持不变,只有bias在非常缓慢地变化?
2
【求助】Python新手上路,报错令人头大!
0
opencv+python人脸识别问题!请求大佬帮帮忙!
0
keras实现人脸识别,训练失败……请教大神指点迷津!!!
1
TensorFlow的Keras如何使用Dataset作为数据输入?
5
小白问题--在python中for循环结束位置在哪里呢?
0
急,跪求pycharm跑yolov3-train.py报错
2
用tensorflow做机器翻译时训练代码有问题
1
卷积神经网络中,用Im2col实现卷积层,但是在调用convolution类时报错
2
tensorflow 在feed的时候报错could not convert string to float
1
为什么Python归一化或者标准化后,还原数据集与原数据集不一样?
1
跑AlexNet猫狗遇到IndexError: too many indices for array的问题
2
Matlab人脸识别,准确率只有43.5%,找不到错误。在线等,急!!!!!!*★,°*:.☆( ̄▽ ̄)/$:*.°★* 。