python import matplotlib.pyplot 报错 DLL load failed

Anaconda3.5 python3.6 pycharm win7系统
import matplotlib没问题 matplotlib 2.1.0
import matplotlib.pyplot 报错
图片说明
另外,import matplotlib之前有个错误,更新了numpy之后好了。
在网上没找到类似的问题

2个回答

把matplot删掉,重新安装一下

matplot删掉试试

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
python DLL load failed
今天我安装了statsmodels 模块 而且安装了很多次,但是每次我输入以下命令的时候就会出现如下错误,完全是新手,也不知道该怎么解决,希望能够得到回答。rnrnimport statsmodels.api as smrnrnrnrn[code=python]rnTraceback (most recent call last):rn File "", line 1, in rn import statsmodels.api as smrn File "C:\Python27\lib\site-packages\statsmodels-0.6.1-py2.7-win-amd64.egg\statsmodels\__init__.py", line 8, in rn from .tools.sm_exceptions import (ConvergenceWarning, CacheWriteWarning,rn File "C:\Python27\lib\site-packages\statsmodels-0.6.1-py2.7-win-amd64.egg\statsmodels\tools\__init__.py", line 1, in rn from .tools import add_constant, categoricalrn File "C:\Python27\lib\site-packages\statsmodels-0.6.1-py2.7-win-amd64.egg\statsmodels\tools\tools.py", line 8, in rn from scipy.linalg import svdvalsrn File "C:\Python27\lib\site-packages\scipy\linalg\__init__.py", line 161, in rn from .misc import *rn File "C:\Python27\lib\site-packages\scipy\linalg\misc.py", line 5, in rn from . import blasrn File "C:\Python27\lib\site-packages\scipy\linalg\blas.py", line 155, in rn from scipy.linalg import _fblasrnImportError: DLL load failed: 找不到指定的模块。[/code]
import cv2 error : dll load failed
我的环境:npython 3.6.5nwindows 2008 r2 enterprise nn我通过nn```n pip install opencv-pythonnpip install opencv-contrib-pythonn```nn安装opencv 然后当我导入cv2的时候却出现了如下的错误nnn```n In [2]: import cv2n---------------------------------------------------------------------------nImportError Traceback (most recent call last)n in ()n----> 1 import cv2nnc:\python36\lib\site-packages\cv2\__init__.py in ()n 1 import importlibn 2n----> 3 from .cv2 import *n 4 from .data import *n 5nnImportError: DLL load failed: 找不到指定的模块。n```n查找了很多的资料我尝试去下载安装C++ Redistributable Package的各个版本并且去更新系统和去https://www.lfd.uci.edu/~gohlke/pythonlibs/上下载对应whl文件来安装仍旧不能解决这个问题,奇怪的是在我的win7上安装opencv然后导入就没有问题,难道是系统的问题?那么我该如何去查找问题的根源并且去解决呢 万分感谢
心累总结:关于pycharm中 import matplotlib.pyplot中ImportError: DLL load failed:找不到指定程序的解决办法
关于pycharm中遇到ImportError: DLL load failed:找不到指定程序的解决办法 importError: DLLload failed:找不到指定的模块: 在matplotlib的所有依赖库(依赖库详细信息)均安装成功后, import matplotlib 成功,但是在 import matplotlib.pyplot as plt 时发生如下错误: 解决办法 尝试...
【python】 安装gdal报错:DLL load failed: 找不到指定的模块
安装gdal报错 最近需要处理图像数据,需要安装gdal,便从python第三方库包下载了python对应版本的gdal包 因为电脑是64位系统 ,python是3.7版本所以下载了图中红框的文件 从控制台进入/Script目录,使用 pip install GDAL-2.3.3-cp37-cp37m-win_amd64.whl 安装 结果在import gdal的时候报错 在网上找了很久解决...
import cv2 DLL Load Failed 错误原理与解决方案
在上一篇vs2015+cuda+anaconda源码编译opencv的博客里,arieslady小姐姐已经提到过编译出的pyd文件并不是全部的opencv库的内容,而是要在运行时(也就是import的时候)dynamic的去加载编译出的形如opencv_*.dll的动态链接库。如果1)这些opencv_*.dll文件本身不在.pyd文件的搜索路径中;2)这些opencv_*.dll所依赖的动态链接...
Django+Apache+Mod_wsgi下ImportError: Dll load Failed
相同主機環境下, 直接使用python manage.py runserver并無出現任何異常.rn但是放到Apache_mod_wsgi就會彈出如下error.rn希望大家幫忙下~~rn[code=text][Fri Nov 14 11:57:53 2014] [error] [client 192.168.94.136] ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.rn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] mod_wsgi (pid=5160): Exception occurred processing WSGI script 'E:/Program Files (x86)/Apache Software Foundation/Apache-LAS-TEST/LAS/wsgi/HOST1.wsgi'.rn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] Traceback (most recent call last):rn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] File "E:\\Python27\\lib\\site-packages\\django\\core\\handlers\\wsgi.py", line 206, in __call__rn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] response = self.get_response(request)rn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] File "E:\\Python27\\lib\\site-packages\\django\\core\\handlers\\base.py", line 196, in get_responsern[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] response = self.handle_uncaught_exception(request, resolver, sys.exc_info())rn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] File "E:\\Python27\\lib\\site-packages\\django\\core\\handlers\\base.py", line 234, in handle_uncaught_exceptionrn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] if resolver.urlconf_module is None:rn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] File "E:\\Python27\\lib\\site-packages\\django\\core\\urlresolvers.py", line 341, in urlconf_modulern[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] self._urlconf_module = import_module(self.urlconf_name)rn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] File "E:\\Python27\\lib\\site-packages\\django\\utils\\importlib.py", line 40, in import_modulern[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] __import__(name)rn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] File "E:\\Program Files (x86)\\Apache Software Foundation\\Apache-LAS-TEST\\LAS\\EPTSI\\urls.py", line 10, in rn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] from eWService import views as eWServiceViewrn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] File "E:\\Program Files (x86)\\Apache Software Foundation\\Apache-LAS-TEST\\LAS\\eWService\\views.py", line 207, in rn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] from soaplib.core.service import rpc, DefinitionBase, soaprn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] File "E:\\Python27\\lib\\site-packages\\soaplib-2.0.0_beta2-py2.7.egg\\soaplib\\core\\__init__.py", line 3, in rn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] from _base import Applicationrn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] File "E:\\Python27\\lib\\site-packages\\soaplib-2.0.0_beta2-py2.7.egg\\soaplib\\core\\_base.py", line 29, in rn[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] from lxml import etreern[Fri Nov 14 11:57:54 2014] [error] [client 192.168.94.136] ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.[/code]
pyQt (ImportError: DLL load failed:)
大家好,我在python官网下载安装了python-2.6.5.msi。rn想用pyQt,于是在CSDN搜索下载了PyQt-Py2[1].6-gpl-4.7-1 (公司只能上少数网站,csdn是其一)rn可是安装好后,直接运行.pyw是正常的,但是用 UliPad(v3.9)打开后运行,提示错误如下:rn[color=#999999]Traceback (most recent call last):rn File "D:\Program Files\python\Lib\site-packages\PyQt4\examples\dialogs\configdialog\configdialog_rc.py", line 10, in rn from PyQt4 import QtCorernImportError: DLL load failed: 找不到指定的模块。[/color]rn想请大牛帮忙看看,要怎么解决这个问题?谢谢!
python2.7安装sklearn报错:ImportError: DLL load failed
import sklearnn报错:nTraceback (most recent call last):n File "", line 1, in n import sklearnn File "D:\Python27\lib\site-packages\scikit_learn-0.15.2-py2.7-win-amd64.egg\sklearn\__init__.py", line 38, in n from .base import clonen File "D:\Python27\lib\site-packages\scikit_learn-0.15.2-py2.7-win-amd64.egg\sklearn\base.py", line 10, in n from scipy import sparsen File "D:\Python27\lib\site-packages\scipy\sparse\__init__.py", line 182, in n from .csr import *n File "D:\Python27\lib\site-packages\scipy\sparse\csr.py", line 15, in n from .sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \n File "D:\Python27\lib\site-packages\scipy\sparse\sparsetools\__init__.py", line 5, in n from .csr import *n File "D:\Python27\lib\site-packages\scipy\sparse\sparsetools\csr.py", line 26, in n _csr = swig_import_helper()n File "D:\Python27\lib\site-packages\scipy\sparse\sparsetools\csr.py", line 22, in swig_import_helpern _mod = imp.load_module('_csr', fp, pathname, description)nImportError: DLL load failed: %1 不是有效的 Win32 应用程序。nn用的python2.7.9,我已经安装了numpy1.9.1,scipy0.12.0,sklearn0.15.1,这些都是支持64位系统的,遇到这个问题我该怎么办
python安装OpenCV后报错:“DLL load failed: 找不到指定的模块”
报错信息 在安装opencv-python后,输入:import cv2 as cv,后报错:DLL load failed: 找不到指定的模块 报错分析 cv2文件部分缺少部分dll文件。每个人的电脑环境不同,缺失的文件不同。 解决办法 下载软件后安装:depends, http://www.dependencywalker.com/ 在电脑中搜索cv2.cp36-win32.pyd文...
mvn打包报错:Failed to load ApplicationContext
![图片说明](https://img-ask.csdn.net/upload/201605/12/1463049953_501952.png)nApplicationContext中扫描的包:nn n n n springmvc.xml中扫描的包:n
终于解决了python 3.x import cv2 “ImportError: DLL load failed: 找不到指定的模块” 的问题
在网上找了很多资源,基本前篇一律。下载对应版本opencv python 。然后出问题,给的解决方法就是要安装下面:    这个东西我重装了好几篇。而且也确定该装的 也是装了的。 但是还是报错。然后作为python新人的我,就又一次发挥了愚公精神。凭着以往的经验,终于“凑”到了一种解决方法。 安装玩opencv_python,之后在python 3.x.x—Lib—site-p
python的scrapy已经安装了 为什么import不了 显示DLL load failed: 找不到指定的程序
>>> import scrapyrnrnTraceback (most recent call last):rn File "", line 1, in rn File "D:\Program Files\Python\lib\site-packages\scrapy\__init__.py", line 34, in rn from scrapy.spiders import Spiderrn File "D:\Program Files\Python\lib\site-packages\scrapy\spiders\__init__.py", line 10, in rn from scrapy.http import Requestrn File "D:\Program Files\Python\lib\site-packages\scrapy\http\__init__.py", line 11, in rn from scrapy.http.request.form import FormRequestrn File "D:\Program Files\Python\lib\site-packages\scrapy\http\request\form.py", line 11, in rn import lxml.htmlrn File "D:\Program Files\Python\lib\site-packages\lxml\html\__init__.py", line 54, in rn from .. import etreernImportError: DLL load failed: 找不到指定的程序。rn
使用Python import cv2失败 显示ImportError: DLL load failed: %1 不是有效的 Win32 应用程序。
如题rnimport cv2rnrnTraceback (most recent call last):rn File "", line 1, in rn import cv2rnImportError: DLL load failed: %1 不是有效的 Win32 应用程序。rnrn这是为什么!!!!
【python】python使用scipy报错:“ImportError: DLL load failed: 找不到指定的模块”的解决方案
来源:https://blog.csdn.net/u013044310/article/details/82874719 解决: conda remove icc_rt --force conda install icc_rt --no-deps
matplotlib.pyplot报错的一种解决方案
在用matplotlib.pyplot作图时报错(python3.6.4,) This application failed to start because it could not find or load the Qt platform plugin”windows”in.. Reinstalling the application may fix this problem. 解决方案...
ImportError: DLL load failed:找不到指定的模块 解决方案(Python)
首先检查numpy、scipy、matplotlib、scikit-learn的版本是否更新到最新且符合当前Python版本: 如果出现不是最新的版本,先卸载该版本:(windows+".\")pip uninstall numpy 再去http://www.lfd.uci.edu/~gohlke/pythonlibs/ 安装最新版本:(windows+".\")pip install n
Python下ImportError: DLL load failed: 找不到指定的模块之问题分析
环境依赖 问题的提出 问题的查找 问题的解决 总结 参考资料 环境依赖 OS: window 7, python 3.6 Anaconda: 5.0.1 问题的提出 在运行Python代码的时候,碰到了如下问题: runfile('D:/code/test.py', wdir='D:/code') Traceback (most recent call l...
Python:ImportError: DLL load failed:找不到指定的模块 解决方案
解决方法:检查numpy、scipy、matplotlib、scikit-learn的版本是否更新到最新且符合当前Python版本:如果出现不是最新的版本,先卸载该版本:(windows+".\")pip uninstall numpy;再去http://www.lfd.uci.edu/~gohlke/pythonlibs/ 安装最新版本:(windows+".\")pip install num...
代码运行问题ImportError: DLL load failed: 找不到指定的模块)[python]
运行代码,出现的问题: 解决方案: 目前未找到…
acrobat failed to load its core dll
我的是win7的操作系統 打開pdf時提試acrobat failed to load its core dll 我重新安裝過多個不同版本的pdf都不行rn請那位it高人指點指點
cv2:dll load failed: 找不到指定的模块
使用opencv3 python3.5报错dll load failed: 找不到指定的模块试了几种方法: 复制cv2.xxx 配置opencv环境变量 重装opencv_python-3.2.0-cp35-cp35m-win32.whl 均不能解决问题。在cnblog博客里找到了解决方法,需要在https://www.microsoft.com/en-us/download/details.asp
Python3+Opencv343环境搭建 dll load failed问题解决方案汇总
网上关于Python安装Opencv总是出现DLL Load Filed问题的解决方法,本人亲测无法解决问题,于是探索了一种新的解决方法,先对所有现存方法以及本人方法进行汇总,希望对大家有所帮助: 网上现存的几种问题与解决方法: (1) 版本匹配问题: 比如Opencv版本opencv_python-3.4.3(+contrib)-cp36-cp36m-win_amd64.whl 应对应python3.6.~版本;(下载地址http://www.lfd.uci.edu/~gohlke/pythonlibs/)。 (2) 缺少Python3.dll:详细参看: https://blog.csdn.net/wuzhouqingcy/article/details/77509454 (3) 环境变量问题,详细参看: https://www.cnblogs.com/syw20170419/p/6945347.html (4) 安装opencv-python (5) 拷贝opencv安装目录下cv2.dll到python\Lib\site-package文件夹 详细参看: https://blog.csdn.net/yingyueer247/article/details/76422848/ (6) 系统缺少MSVCP140.DLL动态库,需要安装Visual C++2015 redistributable,详细参看: https://blog.csdn.net/yingyueer247/article/details/76422848/ 本人以上方法均进行测试,并尝试重新安装Python,但import cv2仍旧提示DLL Load Filed,问题依旧存在,考虑到还是系统仍缺少某些DLL,导致在import cv2时,调用CV2.dll出错(本人安装opencv_python-3.4.3,对应D:\Program Files\Python366\Lib\site-packages下的cv2.cp36-win_amd64.pyd),具体解决方法见附件。
ImportError:DLL load failed:找不到指定的程序
pip list可以看到scrapy包,但是import scrapy 或者 scrapy startproject xxx时,却报错 :ImportError:DLL load failed:找不到指定的程序 这是因为有的lxml包中不包含"etree",我的解决方案是到https://www.lfd.uci.edu/~gohlke/pythonlibs/去重新下载一个。打开网页后,搜索...
DLL load failed: The specified module could not be found.
请问,谁读过gray hat python ,python programming for hackers and reverse engineers这本书,我在读到第五章的时候遇到了困难,当我运行第5张的findinstruction.py 和 badchar.py时,总是出现如下问题:rnTraceback (most recent call last):rn File "D:\Eclipse\workspace\badchar\src\badchar.py", line 1, in rn from immlib import *rn File "D:\Python27\lib\immlib.py", line 16, in rn import debuggerrnImportError: DLL load failed: The specified module could not be found.rnrnrn看这错误,我就在google code里面找到debugger.py,并且添加到python27/lib目录中,但总是出现这样的错误,请高手们帮帮小菜我一把,感激不尽……
ImportError: DLL load failed: 找不到指定的模块。
[img=https://img-bbs.csdn.net/upload/201803/11/1520767277_995517.png][/img]rn卸载Scipy,numpy,scikit,matplotlib在重装都没用
#import dll 报错 C2374 重定义
我要导入几个COM控件,这些DLL中有一些Name GUID const 相同,编译时提示rnError C2374: 'CLSD_XXXX':redefinition,使用 Exclude 属性无法排除,要怎么处理
Import cv2 ImportError:DLL load failed:找不到指定模块缺少的dll
Import cv2 ImportError:DLL load failed:找不到指定模块缺少的dll
python matplotlib.pyplot画折线图
![图片说明](https://img-ask.csdn.net/upload/201803/26/1522023911_68604.png)nnpython画折线图,想要把每条线的标志部分移到外面的空白红色框中,该如何做
【python数据可视化笔记】——matplotlib.pyplot()
目 录 1  %matplotlib inline2  matplotlib图例中文乱码以及坐标负号显示2.1  快速解决办法2.2  永久解决办法2.2.1  找到自己想要的中文字体2.2.2  把字体复制到matplotlib的字体文件中2.2.3  重...
python自然语言处理_import nltk报错
运行: import nltk nltk.download() 出现 showing info https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/index.xml 下载资料包之后测试,运行: from nltk.book import * text1 出现look up error 可将刚刚下载好的文件复制...
Python import同级目录报错
pycharm不会将当前文件目录自动加入自己的sourse_path。右键make_directory as-->Sources Root将当前工作的文件夹加入source_path就可以了。
Load report failed
最近我在vb.net 2005环境下做crystal report ,我不知道为什么会报这有时会出现"Load report failed "错rn[color=#FF0000]当运行到红色代码时[/color],这个问题时好时坏rn下面是我的代码:rnrn Dim report As New report '厨rn Dim R45Data As New R45Data '璸衡amount摸rn Dim dataset As New DataSetrn Dim sql As Stringrnrn connectionDB() '连接数据库rn sql = strSql.returnR45TdcInSql(businessDate, businessDate)rn SqlDataAdapter = New SqlDataAdapter(sql, con)rn SqlDataAdapter.Fill(dataset, "R45TDC") rn colseDB()rnrn R45Data.setReportDataSet(dataset) '统计dataset数据rn R45Data.account() '开始计算rn [color=#FF0000] report.SetDataSource(R45Data.saveData()) 'R45Data.saveData()是反回一个计算好后的
求助:Failed to load ApplicationContext
[code=Java]java.lang.IllegalStateException: Failed to load ApplicationContextrn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)rn at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:333)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)rn at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)rn at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)rn at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)rn at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)rn at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:220)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'listenerContainer' defined in class path resource [conf/spring-conf/applicationContextTestNew.xml]: Cannot resolve reference to bean 'messageListener' while setting bean property 'messageListener'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageListener' defined in class path resource [conf/spring-conf/applicationContextTestNew.xml]: Cannot create inner bean 'com.cherry.mq.mes.common.CherryMessageReceiverImpl#966905' of type [com.cherry.mq.mes.common.CherryMessageReceiverImpl] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.cherry.mq.mes.common.CherryMessageReceiverImpl#966905': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binBEMQMES01_Action': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binBEMQMES99_BL': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binBEMQMES99_Service': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.cherry.cm.core.IfServiceImpl] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: @javax.annotation.Resource(shareable=true, mappedName=, description=, name=, type=class java.lang.Object, authenticationType=CONTAINER)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:872)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)rn at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)rn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)rn ... 24 morernCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageListener' defined in class path resource [conf/spring-conf/applicationContextTestNew.xml]: Cannot create inner bean 'com.cherry.mq.mes.common.CherryMessageReceiverImpl#966905' of type [com.cherry.mq.mes.common.CherryMessageReceiverImpl] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.cherry.mq.mes.common.CherryMessageReceiverImpl#966905': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binBEMQMES01_Action': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binBEMQMES99_BL': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binBEMQMES99_Service': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.cherry.cm.core.IfServiceImpl] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: @javax.annotation.Resource(shareable=true, mappedName=, description=, name=, type=class java.lang.Object, authenticationType=CONTAINER)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)rn at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:617)rn at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:144)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:993)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:897)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at rn[/code]
Failed to load viewstate 的问题
页面在本地是好的,传到服务器出现了rnrnFailed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. rnrnrn页面有几个用户控件回传的...
Load report failed 急急!!!
最近我在vb.net 2005环境下做crystal report ,我不知道为什么会报这有时会出现"Load report failed "错rn[color=#FF0000]当运行到红色代码时[/color],这个问题时好时坏rn下面是我的代码:rnrn Dim report As New report '厨rn Dim R45Data As New R45Data '璸衡amount摸rn Dim dataset As New DataSetrn Dim sql As Stringrnrn connectionDB() '连接数据库rn sql = strSql.returnR45TdcInSql(businessDate, businessDate)rn SqlDataAdapter = New SqlDataAdapter(sql, con)rn SqlDataAdapter.Fill(dataset, "R45TDC") rn colseDB()rnrn R45Data.setReportDataSet(dataset) '统计dataset数据rn R45Data.account() '开始计算rn [color=#FF0000] report.SetDataSource(R45Data.saveData()) 'R45Data.saveData()是反回一个计算好后的dataset[/color]rn report.SetParameterValue("Datadate", busDate2)rn
Load "crpe32.dll" failed
Crystal Report9.2.3300rn 在win2k server上部署沒問題,但在win2k pro上部署運行時出現如下錯: Load "crpe32.dll" failed.rnrn 照csdn一朋友的文章所言exclude dotnetcrystalreports.msm後也是這樣. rnrn敬請各位支招!!!!!!!!!!!!!!1
警告: Failed to load the sqljdbc_auth.dll
2010-11-22 16:39:40 com.microsoft.sqlserver.jdbc.AuthenticationJNI rn警告: Failed to load the sqljdbc_auth.dllrncom.microsoft.sqlserver.jdbc.SQLServerException: 没有为集成身份验证配置驱动程序。rn如题rn我的操作系统 win7 64位rn把sqljdbc_auth.dllrn复制到 system32 中没用rn求解决
junit测试Failed to load ApplicationContext
java.lang.IllegalStateException: Failed to load ApplicationContextrn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:157) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:211) [spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:288) [spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.11.jar:na]rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:290) [spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231) [spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) [junit-4.11.jar:na]rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [junit-4.11.jar:na]rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [junit-4.11.jar:na]rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [junit-4.11.jar:na]rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [junit-4.11.jar:na]rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [junit-4.11.jar:na]rn at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71) [spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.junit.runners.ParentRunner.run(ParentRunner.java:309) [junit-4.11.jar:na]rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) [spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) [.cp/:na]rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'charConvertRead' defined in class path resource [META-INF/spring/applicationContextLogic.xml]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class jp.co.jip.rod.dao.dbutils.CharConvertRead]: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.aop.framework.adapter.UnknownAdviceTypeException: Advice object [null] is neither a supported subinterface of [org.aopalliance.aop.Advice] nor an [org.springframework.aop.Advisor]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925) ~[spring-context-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472) ~[spring-context-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:103) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.support.DelegatingSmartContextLoader.loadContext(DelegatingSmartContextLoader.java:228) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:124) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:148) ~[spring-test-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn ... 24 common frames omittedrnCaused by: org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class jp.co.jip.rod.dao.dbutils.CharConvertRead]: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.aop.framework.adapter.UnknownAdviceTypeException: Advice object [null] is neither a supported subinterface of [org.aopalliance.aop.Advice] nor an [org.springframework.aop.Advisor]rn at org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.java:213) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:112) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.createProxy(AbstractAutoProxyCreator.java:477) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:362) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1461) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) ~[spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn ... 37 common frames omittedrnCaused by: org.springframework.aop.framework.adapter.UnknownAdviceTypeException: Advice object [null] is neither a supported subinterface of [org.aopalliance.aop.Advice] nor an [org.springframework.aop.Advisor]rn at org.springframework.aop.framework.adapter.DefaultAdvisorAdapterRegistry.getInterceptors(DefaultAdvisorAdapterRegistry.java:88) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.aop.framework.DefaultAdvisorChainFactory.getInterceptorsAndDynamicInterceptionAdvice(DefaultAdvisorChainFactory.java:61) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.aop.framework.AdvisedSupport.getInterceptorsAndDynamicInterceptionAdvice(AdvisedSupport.java:482) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at org.springframework.aop.framework.Cglib2AopProxy$ProxyCallbackFilter.accept(Cglib2AopProxy.java:772) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn at net.sf.cglib.proxy.Enhancer.emitMethods(Enhancer.java:887) ~[cglib-nodep-2.2.2.jar:na]rn at net.sf.cglib.proxy.Enhancer.generateClass(Enhancer.java:498) ~[cglib-nodep-2.2.2.jar:na]rn at net.sf.cglib.transform.TransformingClassGenerator.generateClass(TransformingClassGenerator.java:33) ~[cglib-nodep-2.2.2.jar:na]rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25) ~[cglib-nodep-2.2.2.jar:na]rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216) ~[cglib-nodep-2.2.2.jar:na]rn at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377) ~[cglib-nodep-2.2.2.jar:na]rn at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285) ~[cglib-nodep-2.2.2.jar:na]rn at org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.java:201) ~[spring-aop-3.1.4.RELEASE.jar:3.1.4.RELEASE]rn ... 44 common frames omittedrn
头大了 load crpe32.dll failed
看了下面的没有 不知道怎么搞的 我用的是Crystal.Reports.v9.2.2.667.CHSrn5、load crpe32.dll failedrn下面是cr9net_deployment.pdf说明中的部署Crystal Report 9的步骤:rn打开 Windows 应用程序。 rn在解决方案资源管理器中,右击 Windows 应用程序解决方案,指向“添加”,然后单击“新建项目”。 rn在“添加新项目”对话框中,选择“项目类型”窗格中的“安装和部署项目”,然后选择“模板”窗格中的“安装项目”。单击“确定”按钮。 rn在解决方案资源管理中,右击安装项目,指向“添加”,然后单击“项目输出”。 rn在“添加项目输出组”中,选择“主输出”,然后单击“确定”。 rn将自动添加所有依赖项,如 dotnetfxredist_x86_enu.msm和dotnetcrystalreports.msm。rn需要将dotnetcrystalreports.msm排除在项目之外,在解决方案资源管理器中右击这个模块的右键,选择“排除”。 rn在解决方案资源管理器中,右击安装项目,指向“添加”,然后单击“合并模块”。 rn在“添加模块”对话框中,选择下列要添加到安装项目的合并模块,然后单击“打开”: rnreportengine.msm, crnetruntime.msm, license.msmrnmapping.msm (可选,当在报表中使用了geographic maps时) rnVC_CRT.msm、VC_STL.msm( 如果您部署的 Windows 应用程序使用 ADO.NET 数据集,则还需要包括 VC_CRT 和 VC_STL 合并模块)rn在解决方案资源管理器中,右击 license.msm 文件,然后选择“属性”。 rn在“属性”窗口中,展开 MergeModuleProperties,然后在“许可证密钥”属性框中输入一个有效的许可证密钥。 rn注意 每当部署 Crystal Reports 应用程序时,必须提供许可证密钥。 rn从“生成”菜单中,选择“生成解决方案”以生成应用程序。rnrn-----------------------------rnrn不知道什么原因啊 请教各位了!rn
java.lang.IllegalStateException: Failed to load ApplicationContext
java.lang.IllegalStateException: Failed to load ApplicationContextrn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)rn at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)rn at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)rn at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:236)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Invocation of init method failed; nested exception is org.springframework.dao.DataAccessResourceFailureException: Failed to populate database; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement at line 1 of resource class path resource [database_schema.sql]: create table INFORMATIONrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:900)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:455)rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)rn at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)rn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)rn ... 24 morernCaused by: org.springframework.dao.DataAccessResourceFailureException: Failed to populate database; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement at line 1 of resource class path resource [database_schema.sql]: create table INFORMATIONrn at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.populateDatabase(EmbeddedDatabaseFactory.java:165)rn at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.initDatabase(EmbeddedDatabaseFactory.java:139)rn at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactoryBean.afterPropertiesSet(EmbeddedDatabaseFactoryBean.java:41)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1479)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)rn ... 37 morernCaused by: org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement at line 1 of resource class path resource [database_schema.sql]: create table INFORMATIONrn at org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.executeSqlScript(ResourceDatabasePopulator.java:183)rn at org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.populate(ResourceDatabasePopulator.java:120)rn at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.populateDatabase(EmbeddedDatabaseFactory.java:153)rn ... 41 morernCaused by: java.sql.SQLException: Unexpected token , requires ( in statement [create table INFORMATION]rn at org.hsqldb.jdbc.Util.sqlException(Unknown Source)rn at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)rn at org.hsqldb.jdbc.jdbcStatement.executeUpdate(Unknown Source)rn at org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.executeSqlScript(ResourceDatabasePopulator.java:169)rn ... 43 morern
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池