android报错Could not determine the class-path ...

Android Studio导入Eclipse项目报错:
Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.

项目的build.gradle文件如下:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.0'
    }
}
apply plugin: 'com.android.application'

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
}

android {
    compileSdkVersion 22
    buildToolsVersion "25.0.2"

    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
        }

        // Move the tests to tests/java, tests/res, etc...
        instrumentTest.setRoot('tests')

        // Move the build types to build-types/<type>
        // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
        // This moves them out of them default location under src/<type>/... which would
        // conflict with src/ being used by the main source set.
        // Adding new build types or product flavors should be accompanied
        // by a similar customization.
        debug.setRoot('build-types/debug')
        release.setRoot('build-types/release')
    }
}

请问一下该怎么解决?

2个回答

你没有这个版本的gradle

qq_27969037
Mr康 回复VDer: 找不到你个接口的路径
2 年多之前 回复
qq_21397217
Arvin ZHANG 它报错的信息是class-path有问题
2 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
hibernate报错:org.hibernate.MappingException: Could not determine type for: java.lang.string
我的映射文件中是这样写的:rnrn rnrn数据库是sybase的,对应数据类型为:varchar(10)。rnrn启动后出现上面的错误,请问是什么原因?谢谢。rnorg.hibernate.MappingException: Could not determine type for: java.lang.string, for columns: [org.hibernate.mapping.Column(addressip)]rnat org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:266)rn at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)rn at org.hibernate.mapping.Property.isValid(Property.java:184)rn at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:370)rn at org.hibernate.mapping.RootClass.validate(RootClass.java:192)rn at org.hibernate.cfg.Configuration.validate(Configuration.java:983)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1147)rn
Could not determine type for: oracle.sql.BLOB 非常谢谢!!
请问出现rnorg.hibernate.MappingException: Could not determine type for: oracle.sql.BLOB, for columns: [org.hibernate.mapping.Column(PACKAGEIMAGE)]rn是为什么?
org.hibernate.MappingException: Could not determine type for: string , at table
Books.javarn[code=Java]rnpackage com.ssh.books.model;rnrnimport java.sql.Date;rnrnpublic class Books rn private String bookId;rn private String name;rn private String author;rn private String publish;rn private Date date;rn private String isbn;rn private int page;rn private String bookPrice;rn private String content;rn rn rnrn public String getBookId() rn return bookId;rn rn public void setBookId(String bookId) rn this.bookId = bookId;rn rn public String getName() rn return name;rn rn public void setName(String name) rn this.name = name;rn rn public String getAuthor() rn return author;rn rn public void setAuthor(String author) rn this.author = author;rn rn public String getPublish() rn return publish;rn rn public void setPublish(String publish) rn this.publish = publish;rn rn public Date getDate() rn return date;rn rn public void setDate(Date date) rn this.date = date;rn rn public String getIsbn() rn return isbn;rn rn public void setIsbn(String isbn) rn this.isbn = isbn;rn rn public int getPage() rn return page;rn rn public void setPage(int page) rn this.page = page;rn rn public String getBookPrice() rn return bookPrice;rn rn public void setBookPrice(String bookPrice) rn this.bookPrice = bookPrice;rn rn public String getContent() rn return content;rn rn public void setContent(String content) rn this.content = content;rn rnrnrnrnrnBooks.hbm.xmlrn[/code]rnrn[code=XML]rnrnrnrnrnrnrn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnrnrnrn[/code]rnrnrn[color=#FF0000]rnCaused by: org.hibernate.MappingException: Could not determine type for: string , at table: books, for columns: [org.hibernate.mapping.Column(book_id)]rn[/color]
关联关系注解时报Could not determine type for错误的解决办法
检查所有的实体类的注解是不是都是统一写在属性上的,还是统一写在get方法上的。一定要统一。 另外如果要是所有实体类的id都是继承过来的,关键就要检查下这个id是不是跟其它注解是统一的。 如: IdEntity.java package com.bai.project.bean; import javax.persistence.Column; import javax.persist
hbm2ddl使用时出现 Could not determine type for: org.springframework.orm.hibernate3.support.ClobStringType,
我使用的是hibernate3 数据库oracle9i *.hbm中配置了 这样一个属性。我使用hbm2ddl工具的时候 就提示 Schema text failed: Could not determine type for: org.springframework.orm.hibernate3.support.ClobStringType, for columns: [org.hibernate.mapping.Column(MEMO)]从而导致不能生成ddl,不知道为什么。请高手帮忙啊。
移植samba3.0.8 后运行 ERROR: Could not determine network interfaces
今天将samba3.0.8移植到arm9开发板上面。rn# ./configure --host=arm-linuxrn#make rn生成nmbd , smbd等相关文件rnrn复制nmbd, smbd及自己新建的一个测试smb.conf分别到如下位置:rn/usr/local/samba/bin/nmbdrn/usr/local/samba/bin/smbdrn/usr/local/samba/lib/smb.confrnrn采用rn/usr/local/samba/bin/nmbd -o -Drn/usr/local/samba/bin/smbd -o -Drn程序自动退出,查看rn/usr/local/samba/var/log.nmbdrn/usr/local/samba/var/log.smbdrnrn[code=Assembly]rn# cat /usr/local/samba/var/log.nmbdrn[1970/01/01 00:00:21, 0] nmbd/nmbd.c:main(668)rn Netbios nameserver version 3.0.8 started.rn Copyright Andrew Tridgell and the Samba Team 1994-2004rn[1970/01/01 00:00:21, 1] lib/util_unistr.c:load_case_tables(63)rn creating lame upcase tablern[1970/01/01 00:00:21, 1] lib/util_unistr.c:load_case_tables(78)rn creating lame lowcase tablern[1970/01/01 00:00:22, 0] lib/interface.c:load_interfaces(195)rn ERROR: Could not determine network interfaces, you must use a interfaces config linern[/code]rnrn# cat /usr/local/samba/var/log.smbdrn[1970/01/01 00:00:18, 1] lib/util_unistr.c:load_case_tables(63)rn creating lame upcase tablern[1970/01/01 00:00:18, 1] lib/util_unistr.c:load_case_tables(78)rn creating lame lowcase tablern[1970/01/01 00:00:19, 0] smbd/server.c:main(760)rn smbd version 3.0.8 started.rn Copyright Andrew Tridgell and the Samba Team 1992-2004rn[1970/01/01 00:00:19, 0] lib/interface.c:load_interfaces(195)rn ERROR: Could not determine network interfaces, you must use a interfaces config linernrnrn我以前移植samba2.2.12是没有出现这个问题。rnsmb.conf 增加 rninterfaces = eth0rn也没有效果rn在网络上找了好久,也有人碰到类似情况,但是并没有解决方法。rn请大侠,指点,究竟是什么原因导致此情况的出现。或者怎样解决 , 不胜感激
急求问题解答!!FTP错误!!Could not determine cwdir!
在HP-UX下一个FTP程序在上传文件的时候总会报错,错误信息是:rn 553 Could not determine cwdir: No such file or directory.rnrn 急求各位大大给一个解答!!谢谢了!
class-path顺序导致的问题
最近遇到两个关于class-path顺序导致的问题 问题1. application.properties重复的问题 业务应用会误把application.properties打入二方包中,这样在class-path会同时出现好几个application.properties文件,Spring都是通过ClassLoader.getResource(“application.properties”)...
jar class-path的作用详细教程
jar class-path的作用详细教程,深入探讨class-path,让初学者更好理解jvm的运行机制。
Could not find action or result报错?
15:59:54,971 WARN org.apache.struts2.dispatcher.Dispatcher:49 - Could not find action or resultrnThere is no Action mapped for action name undefined. - [unknown location]rn一下为struts配置文件:rnrnrnrnrnrn rn rn rn rn rn rn rn /homePage/user/User_list.jsprn /homePage/homePage.jsprn /homePage/Login.jsprn /homePage/user/User_list.jsprn /homePage/user/User_view.jsprn /homePage/user/User_index.jsprn /homePage/user/User_index.jsprn /homePage/user/User_beforeUpdate.jsprn rn rn rn /homePage/assistance/Assistance_listByAddress.jsprn /homePage/assistance/Assistance_index.jsprn /homePage/assistance/Assistance_beforeUpdate.jsprn /homePage/assistance/Assistance_index.jsprn /homePage/assistance/Assistance_index.jsprn /homePage/assistance/Assistance_listByUser.jsprn /homePage/assistance/Assistance_statistic.jsprn rn rn rn /homePage/allowances/Allowances_listByAddress.jsprn /homePage/allowances/Allowances_index.jsprn /homePage/allowances/Allowances_beforeUpdate.jsprn /homePage/allowances/Allowances_index.jsprn /homePage/allowances/Allowances_index.jsprn /homePage/allowances/Allowances_listByUser.jsprn /homePage/allowances/Allowances_statistic.jsprn rn rn rn /homePage/old/Old_listByAddress.jsprn /homePage/old/Old_index.jsprn /homePage/old/Old_beforeUpdate.jsprn /homePage/old/Old_index.jsprn /homePage/old/Old_index.jsprn /homePage/old/Old_listByUser.jsprn /homePage/old/Old_statistic.jsprn rn rnrnrn以下为web配置文件:rnrnrnrnrn contextConfigLocationrn classpath:beans.xmlrn rn rn org.springframework.web.context.ContextLoaderListenerrn rn rn rn openSessionInViewrn org.springframework.orm.hibernate3.support.OpenSessionInViewFilterrn rn sessionFactoryBeanNamern sfrn rn rn rn rn openSessionInViewrn /*rn rn rn rn CharacterEncoding rn com.huxtech.action.SetCharacterEncodingFilter rn rn encoding rn utf-8 rn rn rn rn CharacterEncoding rn /* rn rnrn rn rn encodingFilterrn org.springframework.web.filter.CharacterEncodingFilterrn rn encodingrn UTF-8rn rn rn forceEncoding rn true rn rn rn rn rn encodingFilterrn /*rn rn rn rn rn struts2rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterrn rnrn rn struts2rn /*rn rn rn DWR Servletrn dwr-invokerrn org.directwebremoting.servlet.DwrServletrn rn debugrn truern rn rn rn dwr-invokerrn /dwr/*rn rn rn index.jsprn rnrn我登录成功返回jsp也对 但是就直接报上面的错误啦
hibernate3报错: could not resolve property
求高手修改我的HQL语句。(SSH2/hibernate3)rnrn我的HQL语句如下:rnString hql = "From Question AS q WHERE q.qid IN(SELECT a.qid FROM Answer AS a WHERE a.userid=?)";rnrn报错信息:org.hibernate.QueryException: could not resolve property: qid of: org.lxh.myzngt.vo.Answer [From org.lxh.myzngt.vo.Question AS q WHERE q.qid IN(SELECT a.qid FROM org.lxh.myzngt.vo.Answer AS a WHERE a.userid=?)]rnrnrn表结构:表Answer 中有外键:qid 对应到表Question 中的q.id.rnrnQuestion.hbm.xml:rnrn rn rn rn rn rn rn rn rn rn rn rn rnrnAnswer.hbm.xml:rnrn rn rn rn rn rn rn rn rnrnrnrnQuestion.java:rnrnpublic class Question rn private int qid;rn private Set answers;rn public int getQid() rn return qid;rn rn public void setQid(int qid) rn this.qid = qid;rn rn public Set getAnswers() rn return answers;rn rn public void setAnswers(Set answers) rn this.answers = answers;rn rnrnrnAnswer.java:rnrnpublic class Answer rn private int aid;rn private int qid;rn private Question question;rn rn public Question getQuestion() rn return question;rn rn public void setQuestion(Question question) rn this.question = question;rn rn public int getAid() rn return aid;rn rn public void setAid(int aid) rn this.aid = aid;rn rn public int getQid() rn return qid;rn rn public void setQid(int qid) rn this.qid = qid;rn rn rn rnrn
Android NDK *** could not be resolved
Android NDK *** could not be resolved
Determine if a Directory Exists
Determine if a Directory Exists
Determine Drive Type
Determine Drive Type
kmeans determine the frequency
kmeans determine the frequency
unable to determine license edition
今天早上破解了xamarin.android,结果生成的时候出现了unable to determine license edition的问题,有木有大神指导下怎么解决?rn[img=https://img-bbs.csdn.net/upload/201503/16/1426472531_873841.png][/img]rn然后也没有办法找到引用的组件[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/11.gif][/img]rn[img=https://img-bbs.csdn.net/upload/201503/16/1426472608_454220.png][/img]rn
The forces of history determine the future
When the past no longer illuminates the future, people will wander in the dark
Determine Display Colors
Determine Display Colors
Determine if a File Exists
Determine if a File Exists
Android Studio运行时报错:Could not resolve all dependencies for configuration ':app:_
第一次用Android Studio开发。但在Android Studio运行时报错:rnCould not resolve all dependencies for configuration ':app:_debugCompile'.rnCould not find any version that matches com.android.support:appcompat-v7:15.+.rn[img=https://img-bbs.csdn.net/upload/201612/11/1481461246_84118.png][/img]rn但我的SDK Manager安装了该有的组件了啊,求大神帮我看看问题出现在哪里了?rn[img=https://img-bbs.csdn.net/upload/201612/11/1481461448_395172.png][/img][img=https://img-bbs.csdn.net/upload/201612/11/1481461507_176640.png][/img]rnrn再附上build.gradle文件内容:rn[code=java]rnapply plugin: 'com.android.application'rnrnandroid rn compileSdkVersion 15rn buildToolsVersion "24.0.0"rnrn defaultConfig rn applicationId "com.test.helloworld"rn minSdkVersion 14rn targetSdkVersion 15rn versionCode 1rn versionName "1.0"rn rn buildTypes rn release rn minifyEnabled falsern proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'rn rn rnrnrndependencies rn compile fileTree(dir: 'libs', include: ['*.jar'])rn testCompile 'junit:junit:4.12'rn compile 'com.android.support:appcompat-v7:15.+'rnrnrn[/code]rnrnrnrn
警告: Duplicate name in Manifest: Class-Path
运行程序时,报错:警告: Duplicate name in Manifest: Class-Pathrnrn请问是为什么?rnrn在线等。。。
Could not execute method for android :onClicked
最近在学android的camera,在拍照按钮的点击事件中做了如下参数设置:n n```n public void capture(View view)n if(mCamera!=null)n WindowManager manager= (WindowManager) getSystemService(Context.WINDOW_SERVICE);n Display display=manager.getDefaultDisplay();n Log.i("capture",display.getWidth()+" "+display.getHeight());nn Camera.Parameters parameters=mCamera.getParameters();nn //设置拍照格式n parameters.setPictureFormat(PixelFormat.YCbCr_422_SP);n //设置拍照大小n parameters.setPictureSize(213,350);n //设置自动对焦n parameters.setFlashMode(Camera.Parameters.FOCUS_MODE_AUTO);nn mCamera.setParameters(parameters);nnn mCamera.autoFocus(new Camera.AutoFocusCallback() n @Overriden public void onAutoFocus(boolean success, Camera camera) n mCamera.takePicture(null,null,mPictureCallback);n n );n n n```n点击拍照按钮的时候程序崩溃了,出现如下的日志信息:nnn```n Process: com.example.vampire.facelearning, PID: 14489n java.lang.IllegalStateException: Could not execute method for android:onClickn at android.view.View$DeclaredOnClickListener.onClick(View.java:4461)n at android.view.View.performClick(View.java:5207)n at android.view.View$PerformClick.run(View.java:21177)n at android.os.Handler.handleCallback(Handler.java:739)n at android.os.Handler.dispatchMessage(Handler.java:95)n at android.os.Looper.loop(Looper.java:148)n at android.app.ActivityThread.main(ActivityThread.java:5432)n at java.lang.reflect.Method.invoke(Native Method)n at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:735)n at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)n Caused by: java.lang.reflect.InvocationTargetExceptionn at java.lang.reflect.Method.invoke(Native Method)n at android.view.View$DeclaredOnClickListener.onClick(View.java:4456)n at android.view.View.performClick(View.java:5207) n at android.view.View$PerformClick.run(View.java:21177) n at android.os.Handler.handleCallback(Handler.java:739) n at android.os.Handler.dispatchMessage(Handler.java:95) n at android.os.Looper.loop(Looper.java:148) n at android.app.ActivityThread.main(ActivityThread.java:5432) n at java.lang.reflect.Method.invoke(Native Method) n at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:735) n at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) n Caused by: java.lang.RuntimeException: setParameters failedn at android.hardware.Camera.native_setParameters(Native Method)n at android.hardware.Camera.setParameters(Camera.java:2003)n at com.example.vampire.facelearning.CustomCamera.capture(CustomCamera.java:85)n at java.lang.reflect.Method.invoke(Native Method) n at android.view.View$DeclaredOnClickListener.onClick(View.java:4456) n at android.view.View.performClick(View.java:5207) n at android.view.View$PerformClick.run(View.java:21177) n at android.os.Handler.handleCallback(Handler.java:739) n at android.os.Handler.dispatchMessage(Handler.java:95) n at android.os.Looper.loop(Looper.java:148) n at android.app.ActivityThread.main(ActivityThread.java:5432) n at java.lang.reflect.Method.invoke(Native Method) n```nn我把mCamera.setParameters(parameters);注析掉后程序就可以进行拍照了,但遇到了另一个问题。拍照获取的图片尺寸非常小:![图片说明](https://img-ask.csdn.net/upload/201604/02/1459603192_651468.png)nn这是onPictureToken方法的实现方法:nnn```n private Camera.PictureCallback mPictureCallback=new Camera.PictureCallback() n @Overriden public void onPictureTaken(byte[] data, Camera camera) n //将数据写入SD卡的temp.png文件当中n File tempFile=new File("/sdcard/temp.png");n try n FileOutputStream fileOutputStream=new FileOutputStream(tempFile);n fileOutputStream.write(data);n fileOutputStream.close();nn Intent intent=new Intent(CustomCamera.this,ResultAty.class);n intent.putExtra("picPath",tempFile.getAbsolutePath());n startActivity(intent);n CustomCamera.this.finish();nn catch (FileNotFoundException e) n e.printStackTrace();n catch (IOException e) n e.printStackTrace();n n n ;n```n跳转到另一个activity来进行显示图片:nnn```n String path=getIntent().getStringExtra("picPath");n ImageView imageView= (ImageView) findViewById(R.id.pic);nn //对图像的显示角度进行调整n try n FileInputStream fis=new FileInputStream(path);n //把图像转换成字节流n Bitmap bitmap=BitmapFactory.decodeStream(fis);n Matrix matrix=new Matrix();n matrix.setRotate(90);n //调整角度n bitmap=Bitmap.createBitmap(bitmap,0,0,bitmap.getWidth(),bitmap.getHeight(),matrix,true);n imageView.setImageBitmap(bitmap);n catch (FileNotFoundException e) n e.printStackTrace();n n n```n麻烦各位大神给个提示,我自己debug了很久都没有找出问题所在,谢谢!nnnnn
Android Studio could not find class
![图片说明](https://img-ask.csdn.net/upload/201608/18/1471505027_514933.png)rn一个CheckBox 多选按钮实现程序,layout预览没有问题,启动APK不能运行。rnrnbuild.gradlern![图片说明](https://img-ask.csdn.net/upload/201608/18/1471511535_934926.png)rnrnlogcat:rnrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.media.session.MediaController', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.widget.Toolbar', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.app.ActivityManager$TaskDescription', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.820 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.840 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.840 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.app.assist.AssistContent', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.840 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.view.SearchEvent', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.840 3020-3020/com.example.administrator.myapplication12 E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.administrator.myapplication12.MainActivity.access$superrn08-18 05:15:38.900 3020-3020/com.example.administrator.myapplication12 E/AndroidRuntime: FATAL EXCEPTION: mainrn Process: com.example.administrator.myapplication12, PID: 3020rn java.lang.RuntimeException: Unable to start activity ComponentInfocom.example.administrator.myapplication12/com.example.administrator.myapplication12.MainActivity: java.lang.NullPointerExceptionrn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)rn at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)rn at android.app.ActivityThread.access$800(ActivityThread.java:135)rn at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)rn at android.os.Handler.dispatchMessage(Handler.java:102)rn at android.os.Looper.loop(Looper.java:136)rn at android.app.ActivityThread.main(ActivityThread.java:5017)rn at java.lang.reflect.Method.invokeNative(Native Method)rn at java.lang.reflect.Method.invoke(Method.java:515)rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)rn at dalvik.system.NativeStart.main(Native Method)rn Caused by: java.lang.NullPointerExceptionrn at com.example.administrator.myapplication12.MainActivity.onCreate(MainActivity.java:39)rn at android.app.Activity.performCreate(Activity.java:5231)rn at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)rn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)rn at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) rn at android.app.ActivityThread.access$800(ActivityThread.java:135) rn at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) rn at android.os.Handler.dispatchMessage(Handler.java:102) rn at android.os.Looper.loop(Looper.java:136) rn at android.app.ActivityThread.main(ActivityThread.java:5017) rn at java.lang.reflect.Method.invokeNative(Native Method) rn at java.lang.reflect.Method.invoke(Method.java:515) rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) rn at dalvik.system.NativeStart.main(Native Method) rn
android Could not find class 'java.awt'
在Android开发过程中遇到类似于报错Could not find class 'java.awt.image.BufferedImage',rn引用java.awt的类在jar文件中,有没有解决办法的?
myeclipse创建maven工程报错 Could not resolve
myeclipse创建maven工程报错 Could not resolve
ext_struts报错 Could not find action or result
代码如下[code=Java] actionrn String str = "SUCCESS";rn rnrn public String login() throws Exception rn TbWorker t=workerService.workerCheck(worker);rn if(t==null)rn str="error";rn System.out.println("error");rn rn return str;rn rn[/code]rnrn[code=JScript]rn rn[/code]rnxml:webrn[code=XML]rnrnrn rn rn contextConfigLocationrn classpath:/applicationContext-jar.xmlrn rn rn rn org.springframework.web.context.ContextLoaderListenerrn rn rnrnrn rn struts2rn rn org.apache.struts2.dispatcher.FilterDispatcherrn rn rnrnrn rn struts2rn /*rn rnrn rn index.jsprn rnrnrnrnrnrn[/code]rnrnxml:struts.xmlrn[code=VBScript]rnrnrn rnrn rn rn rn rn rn rnrnrn[/code]
dubbox报错Could not find MessageBodyWriter for response object of ...
我写了个dubbox的demo,在idea里面跑没有任何问题。但是打个jar包,通过url访问会报错:rnrnCould not find MessageBodyWriter for response object of type: wcf.demo.dubbox.api.User of media type: application/json;charset=UTF-8rnrn一开始以为是没有吧api的包打到provider里面,后来api和provider放到同一个项目里面还是同样的错误。rnrn项目结构[img=https://img-bbs.csdn.net/upload/201709/15/1505467001_262920.png][/img]rnmedia type相关代码:rn[img=https://img-bbs.csdn.net/upload/201709/15/1505467028_913508.png][/img]rnUser相关代码:rn[img=https://img-bbs.csdn.net/upload/201709/15/1505467054_838280.png][/img]
hibernate+oracle报错(could not get next sequence value)
select reportbill.nextval from dualrn......................rnrnorg.hibernate.exception.GenericJDBCException: could not get next sequence value;rn。。。。。。。。。。rnCaused by: java.sql.SQLException: ORA-02289: 序列不存在rnrnrnrnsession.save(report);rncommit();rnrnrn报上述错误,rnrnhibernate映射配置如下:rnrnrnrn rn rn reportbill rn rn rn rn rn rn rn rnrnrn。。。。。。。。。。。。。。。。rnrnrnrn将配置文件RID的generator属性删掉,通过setXXX()赋值,运行正常!!rnrnrnrn请高手指教!!rnrnrn
数据连结报错:Could not find installable ISAM
数据连接:rn_cn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source="+System.Web.HttpContext.Current.Server.MapPath("db1.mdb"));rnrn报错:rnCould not find installable ISAMrnrn请问怎么解决?rn
hibernate3 延迟加载报错could not initialize proxy - no session
web.xmlrn[code="java"]rnrn rn OpenSessionInViewFilterrn org.springframework.orm.hibernate3.support.OpenSessionInViewFilterrn rn sessionFactoryBeanNamern SessionFactoryrn rn rn singleSessionrn truern rn rn rn OpenSessionInViewFilterrn /*rn rnrnrn rn struts2rn rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterrn rn rn struts2rn /*rn rn[/code]rnrn映射:rn[code="java"]rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrn rn rn rn indexrn rn rn rn rn rnrn[/code]rnrnDAO:rn[code="java"]rnpublic BulletinIndex findIndexById(String id)rn return (BulletinIndex) sessionFactory.getCurrentSession().load(BulletinIndex.class, id);rn;rn[/code]rnrn看了不少博文,问题没有解决。如果不用load而直接写一个不带关联对象的查询不会报错,但执行出来的时候hibernate会添加上另一个关联对象的查询。
eclipse连接hadoop报错Could not obtain block
1.hadoop2.7.7版本rnrn2报错截图![图片说明](https://img-ask.csdn.net/upload/201901/23/1548209349_373821.png)rnrn3.没有出现挂datanode的问题[图片]rnrn![图片说明](https://img-ask.csdn.net/upload/201901/23/1548209377_858284.png)rnrn4.可以从web端正常访问和下载
struts2.2.1 报错 Could not find action or result
最近在弄struts2.2.1 ,用myeclipse新建一个项目,然后加载struts,版本是2.2.1的,配置文件什么都自动会生成,这个不用管,新建action也是通过myeclipse的Flow自动生成,同时java代码也自动生成。现在问题是action如果不写result,action能正常执行,java那边返回null就OK了,加上result以后,action能找到,里面有个打印输出的代码也能正常执行,就是在return的时候就报错Could not find action or result。rnstruts.xml:rnrnrnrnrnrn rn rn /MyJsp.jsprn rn rn rnweb.xml:rnrnrn rn rn index.jsprn rn rn struts2rn rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterrn rn rn rn struts2rn /*rn rnJAVA:rnpackage com.test.action;rnrnimport com.opensymphony.xwork2.ActionSupport;rnrnpublic class TestAction extends ActionSupport rnrn /**rn * @returnrn */rn public String execute() rn System.out.println("struts2");rn return SUCCESS;rn rnrn报错具体信息:rnstruts2rn2011-9-5 9:51:15 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warnrn警告: Could not find action or resultrnNo result defined for action com.test.action.TestAction and result successrn at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:375)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:277)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:142)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:190)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)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:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)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:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:619)rn现在看大家有没有碰到过这种情况,有没有办法解决?rnjava return那我改成“success”也是能执行打印的,return还是报错。rn
启动Domino服务报错:could not backup notes.ini
Linux启动Domino服务报错:could not backup notes.ini。rn请问是什么原因,搜到的说用户权限问题,可以肯定的说不存在。
PHPMailer 报错 Could not instantiate mail function.
我在phpmailer官网下载的最新的库,根据里面自带的test下的测试文件配置的,php.ini里面也支持sockets。上网查了许多资料也都试了还是不行,故在此请教各位大神指点指点,不胜感激!!!rnrn[code=php]IsSMTP(); // tell the class to use SMTPrn $mail->SMTPAuth = true; // enable SMTP authenticationrn $mail->Port = 25; // set the SMTP server portrn $mail->Host = "smtp.163.com"; // SMTP serverrn $mail->Username = "****@163.com"; // SMTP server usernamern $mail->Password = "***"; // SMTP server passwordrnrn //$mail->IsSendmail(); // tell the class to use Sendmailrnrn $mail->AddReplyTo("***@163.com","First Last");rnrn $mail->From = "***@163.com";rn $mail->FromName = "phpmailer";rnrn $to = "***@qq.com";rnrn $mail->AddAddress($to);rnrn $mail->Subject = "First PHPMailer Message";rnrn $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and testrn $mail->WordWrap = 80; // set word wraprnrn $mail->MsgHTML($body);rnrn $mail->IsHTML(true); // send as HTMLrnrn $mail->Send();rn echo 'Message has been sent.';rn catch (phpmailerException $e) rn echo $e->errorMessage();rnrn?>[/code]rn[img=https://img-bbs.csdn.net/upload/201403/16/1394930739_46134.png][/img]
could not insert报错 SSH实例出错
org.springframework.dao.InvalidDataAccessResourceUsageException: could not insert: [com.color.model.NewsColoumns]; nested exception is org.hibernate.exception.SQLGrammarException: could not insert: [com.color.model.NewsColoumns]rn org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:630)rn org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)rn org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)rn org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)rn org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:694)rn com.color.dao.impl.NewsColoumnsDaoImpl.save(NewsColoumnsDaoImpl.java:48)rn com.color.service.impl.NewsColoumnsServiceImpl.add(NewsColoumnsServiceImpl.java:24)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:597)rn org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)rn org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)rn org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)rn $Proxy64.add(Unknown Source)rn com.color.action.NewscoloumnsAction.execute(NewscoloumnsAction.java:65)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:597)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:279)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)rn org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)rnrnrn
Vs.net不能新建项目,报错Operation could not complete!
Vs.net不能新建项目,报错Operation could not complete!
奇怪,hibernate 分页报错:could not execute query
sql:rnrnselect b1.batch_id,b1.busi_no,b1.app_code,b1.batch_ver,b1.inter_ver,b1.create_user,b1.create_date,b1.mod_user,b1.mod_date from b_batchs_info b1,b_batchs_src b2 where b1.batch_id = b2.batch_id and b1.batch_ver = b2.batch_ver and b1.inter_ver<>b2.inter_ver and b1.batch_id not in(select batch_id from B_UPDATE_LOCK ) union all rnselect b3.batch_id,b3.busi_no,b3.app_code,b3.batch_ver,b3.inter_ver,b3.create_user,b3.create_date,b3.mod_user,b3.mod_date from b_batchs_info b3 where b3.batch_id not in(select batch_id from b_batchs_src)rnrnrnsql db2客户端运行没错rnrn SQLQuery query = session.createSQLQuery(sql.toString());rn query.setFirstResult((offset - 1) * length);rn query.setMaxResults(length);rn list = query.list();rnrn去掉分页这句没错:query.setMaxResults(length); rn加上query.setMaxResults(length); 报错:rncould not execute query.....rnrn错误码:-421 42826 UNION操作的选择列表中没有提供相同数目的列 rnrn求解!rn
服务器报错问题。org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Network error IOException: No buffer space available (maximum connections reached?): connectrn org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)rn org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:382)rn org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:456)rn org.springframework.jdbc.core.JdbcTemplate.queryForRowSet(JdbcTemplate.java:499)rn com.xc.xc.getRs(xc.java:605)rn com.xc.xc.IsEmptySql(xc.java:2164)rn com.xc.xc.IsEmptyTable(xc.java:2159)rn com.xc.xc.GetSysVarX(xc.java:2983)rn com.use.dm.xchead(dm.java:31)rn com.use.dm.xchead(dm.java:12)rn org.apache.jsp.mainmenu2_jsp._jspService(mainmenu2_jsp.java:71)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn com.xc.sso.LoginFilter.doFilter(LoginFilter.java:93)rn org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rnroot causernjava.sql.SQLException: Network error IOException: No buffer space available (maximum connections reached?): connectrn net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:372)rn net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50)rn net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)rn java.sql.DriverManager.getConnection(DriverManager.java:582)rn java.sql.DriverManager.getConnection(DriverManager.java:154)rn org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(DefaultConnectionBuilder.java:39)rn org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:159)rn org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:211)rn org.logicalcobwebs.proxool.ProxoolDataSource.getConnection(ProxoolDataSource.java:97)rn org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)rn org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)rn org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:382)rn org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:456)rn org.springframework.jdbc.core.JdbcTemplate.queryForRowSet(JdbcTemplate.java:499)rn com.xc.xc.getRs(xc.java:605)rn com.xc.xc.IsEmptySql(xc.java:2164)rn com.xc.xc.IsEmptyTable(xc.java:2159)rn com.xc.xc.GetSysVarX(xc.java:2983)rn com.use.dm.xchead(dm.java:31)rn com.use.dm.xchead(dm.java:12)rn org.apache.jsp.mainmenu2_jsp._jspService(mainmenu2_jsp.java:71)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn com.xc.sso.LoginFilter.doFilter(LoginFilter.java:93)rn org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rnroot causernjava.net.SocketException: No buffer space available (maximum connections reached?): connectrn java.net.PlainSocketImpl.socketConnect(Native Method)rn java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)rn java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)rn java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)rn java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)rn java.net.Socket.connect(Socket.java:519)rn sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:597)rn net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:28rn 这是昨晚的报错信息。rn rnrn运行环境:服务器系统是windows server 2008 R2 内存4G 使用的数据库是SQL Server 2008 R2 服务是tomcat 6.0rnrn报错之后的操作过程rn我首先, 是对数据库进行连接打开。却是链接不上,提示报错如下图rn[img=https://img-bbs.csdn.net/upload/201412/31/1419989508_27916.png][/img]rnrn重启服务还是报错,如下图rn[img=https://img-bbs.csdn.net/upload/201412/31/1419989592_563277.png][/img]rnrn花费了很多时间想办法,去重新连接数据库 ,但还是没有效果。没办法只能对服务器进行重启操作。rn服务器重启问题就解决了。但这只是临时的处理方法。各位大牛们帮忙看看吧。小弟我不尽感谢了[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/83.gif][/img]rn
struts+spring+hibernate报错:could not initialize proxy - no Session
struts+spring+hibernate报错:could not initialize proxy - no Session,rn部分配置如下:rnrnstruts-config.xml配置如下:rnrn rn rn rn-----------------rnweb.xml的部分配置如下:rn rn org.springframework.web.context.ContextLoaderListener rn rn rn rn contextConfigLocation rn /WEB-INF/applicationContext.xml rn rn rn context rn org.springframework.web.context.ContextLoaderServlet rn 1 rn rn-----------------------------------------rnapplicationContext.xml的配置如下:rnrn rn rn rn rnrn /WebRoot/WEB-INF/hibernate.cfg.xml rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn- rn rn rn- rn rn rn- rn com.csms.service.iface.IEmployeeService rn rn- rn- rn PROPAGATION_REQUIRED rn PROPAGATION_REQUIRED rn PROPAGATION_REQUIRED rn rn rn rn- rn- rn rn rn- rn rn rn- rn com.csms.service.iface.ICustomerQuestionService rn rn- rn- rn PROPAGATION_REQUIRED rn PROPAGATION_REQUIRED rn PROPAGATION_REQUIRED rn rn rn rn
数据连接报错:Could not find installable ISAM
数据连接: rn_cn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source="+System.Web.HttpContext.Current.Server.MapPath("db1.mdb")); rn rn报错: rnCould not find installable ISAM rn rn请问怎么解决?
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池