windows 下xshell 运行异常 20C

图片说明

图片说明

描述:
我的生产环境,有windows环境,也有linux环境,我有些是在windows下管理连接过去的,共用的用户是同一个。最近发现换了一台服务器以及不同版本的xshell软件,发现遇到了一点问题。就是如图描述的这样,是一个时间段。第一张图片就是我运行一段时间,关闭后,下次再去点开快捷方式打开xshell软件,会提示类似于此的问题,我不管是选择是还是选择否,都会造成当前服务器其他会话连接终端的问题。就是我不管点是或者否,这个时候其他人连接的终端都会变成这个灰白色的(图2)。

   我换过windows不同环境,换过xshell不同版本,不管是home school版本还是xmanager企业的版本,都会有这个问题,我初步怀疑与windows配置有关系,在这里提问,希望有遇到过类似情况或者知晓问题的人不吝赐教。谢谢大家!

        所在环境,windows server 2008 R2 Enterprise,Service Pack 1
        linux 有CentOS 6.x系列。

7个回答

多会话设置有没有设置对?https://baijia.baidu.com/s?old_id=253636

u012271055
N33_烟灰 回复caozhy: 尝试过重启,没有用途。这类问题还是会存在。
一年多之前 回复
caozhy
贵阳老马马善福专门编写代码的老马就是我! 回复拽拽烟灰: 把机器重启下,可以连上么?
一年多之前 回复
u012271055
N33_烟灰 感谢您的回复,这些配置我都有认真去看,您说的这个点,我确认过了,有设置上。
一年多之前 回复

卸载重装啊,简单粗暴

u012271055
N33_烟灰 感谢这位大哥简单粗暴的回答,很显然我已经尝试过您说的方案。
一年多之前 回复

个人的建议是重装系统,,,,,

u012271055
N33_烟灰 生产环境。
一年多之前 回复
u012271055
N33_烟灰 感谢您抽空回复,生成环境,没有依据,不能申请的。谢谢您!
一年多之前 回复

使用 secureCRT 啊

u012271055
N33_烟灰 很感谢您的回复,secureCRT无非也是一种替代的方式,后期我们会考虑。
一年多之前 回复

我有稳定的 用的很久 然后WIN 的我也有 用了5 6 年 很稳定

u012271055
N33_烟灰 其实我这边用xshell也有几年了,从4版本就开始用了。5系列也不错,出现这个问题确实没有头绪,去他们官方论坛也没有找到类似的问题。
一年多之前 回复

1:检查其他方法有无此类现象
2:换工具测试

u012271055
N33_烟灰 换工具估计也只能算一种方案了,后期会考虑换工具。
一年多之前 回复

官方网站下载一个重新安装就好,

u012271055
N33_烟灰 已经换过不同版本,换过最新官网版本了。可能与系统配置有关系,就是不知道是哪一块的问题。
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
xshell(windows)
we need to use xshell at windows desktop. this will support you to download.
xshell xshell xshell xshell xshell
好用的用具 带key ..
Windows版 XShell
Xshell4,安装即可以用,Xshell 是一个强大的安全终端模拟软件,它支持SSH1, SSH2, 以及Microsoft Windows 平台的TELNET 协议
Xshell windows版
Xshell windows版
xshell(windows远程连接Linux)
xshell(windows远程连接Linux)xshell(windows远程连接Linux)xshell(windows远程连接Linux)xshell(windows远程连接Linux)
windows(xshell)免密码登录
第一步生成密钥文件 打开xshell 选个工具栏的工具如下图 选择密钥类型和长度,如下图 密钥会自动生成,如下图,点击下一步即可 设置给密钥加密的密码也可以不设置,如下图 选择公钥格式,然后保存为文件,建立保存到桌面,方便查找使用。 密钥已经创建完成,并且将公钥文件保存到了桌面,点击关闭即可如下图 将公钥文件导入到linux主机 用rz命令将刚刚生成公钥文件导入linux主机。 ...
运行异常和编译异常
看到这么多异常,想要找出我们常见的5中运行时异常是非常容易的。 例如: ClassCastException(类转换异常) ArrayIndexOutOfBoundsException(数组越界异常) NullPointerException(空指针异常) ArrayStoreException(数据存储异常,操作数组时类型不一致) BufferOverflowException(还有IO操作的,...
Xshell在Windows下访问远端服务器
Xshell可以在Windows界面下用来访问远端不同系统下的服务器,从而比较好的达到远程控制终端的目的。
Windows使用Xshell登录LInux配置
1.安装Xshell 步骤1: 下载:链接:https://pan.baidu.com/s/13IiXtw5c3ZSGeN4kB7151A 提取码:fh5d 步骤2: 双击"Xme5.exe"进行安装。 当需要输入产品密钥时,Xmanager 5 注册码:101210-450789-147200。 然后按照自己的习惯选择安装路径。 在这个界面中选择"典型"安装即可。 ...
windows xshell 跳板机登陆
1- 设置跳板机 2E60089C-923A-4888-BE53-CEB13E46E869.png 2- 设置用户身份验证,秘钥验证 A71075EB-A59C-4F73-A095-C4B8C502B395.png 3.设置登录后跳转 3A3D6531-10EF-4C8A-86EF-ACAC4267A106.png 4.设置跳板机代理 08C06592
Xshell上传文件到centos和下载文件到Windows
Xshell很好用,然后有时候想在windows和centos上传或下载某个文件. 很简单的方法就是rz,sz。 首先你的Linux上需要安装安装lrzsz工具包 yum install lrzsz -y 运行命令rz,即是接收文件(上传到centos上) 运行命令sz file 就是发文件到windows上 ...
Xshell下的文件传输(从windows到Linux)
方法一:使用工具rz(从windows中传输文件至Linuxs中),sz(从Linuxs中传输文件至windows中) 步骤:1、使用apt-get或yum下载工具sudo apt-get install lrzsz  或 sudo yum install lrzsz 2、使用sz或rz进行需要的操作 方法二:用Xshell进行sftp协议连接。 使用lcd切换当前位置,get
windows本地文件上传到Linux虚拟机--Xshell
在Linux主机上,安装上传下载工具包rz及sz[root@localhost ~]# yum provides */rz会找出一系列的软件包的名称和版本[root@localhost src]# yum install -y 软件包的名称和版本上传命令:[root@localhost ~]# rz下载命令:[root@localhost ~]# sz ****.tar.gz上传和下载的文件位置都...
linux网络配置和windows远程连接(xshell)
  首先检查网络配置,看是否有以下两个服务 检查net8是否正常启用    登录虚拟机改网络配置时,需要切换用户到root (只有超级用户root才有此权限,修网络配置    注意:设置的ipaddr不能与VMware net8重复(查看VMware net8的网络ip,这个是windows下的网络接口ip地址)   网关地址就是路由地址,点虚...
11.2运行异常和编译异常
异常体系 ------------|Throwable(super类) ----------------|Error(错误) ----------------|Exception(异常) ---------------------|运行时异常(方法内抛出一个运行异常时候 方法上方可以声明 也可以不声明) ---------------------|编译时异常(非运行时异常或称为受检异常
Linux系统下常见的Xshell运行命令——Xshell入门必看
最近接触到了Xshell这个软件,使用这个软件我们来进行连接Linux系统,进去之后我们可能会两眼一抹黑,小编就带大家来学些常见的shell命令。 首先我们要跟大家从最简单的聊起,我们进入Xshell的界面之后连接上Linux服务器,刚进去的时候我们是不知道我们有哪些文件的,这个时候我们可以使用ls命令来显示有哪些文件,或者使用ls -l,最简单的是ll。ls命令会把文件横向显示,看着不舒服,l
xshell换行导致python输入异常
不同系统下或不同远程登录客户端下换行符都是不一样的,以下以自己的亲身经历陈述下该影响
XShell| Xshell显示图形化界面
参考: https://blog.csdn.net/TM6zNf87MDG7Bo/article/details/78816543
xshell
window 下的unxi工具
xshell破解版和xshell最新版xshell稳定版
压缩包内两个Xshell,都是官网下载的官方版,分别是最新版和一直使用的稳定版,安装时直接选择校园和评估即可破解免费试用
运行AfxOleInit()异常
我调试到如下行时rnif (!AfxOleInit()) //出现异常rnrn ...rnrn运行AfxOleInit()后弹出对话框rn"First-chance exception in debug.exe(kernel32.dll):0xC0000005:Access Violation",请问是何原因?谢谢!!
hive运行异常
hive> show databases;rnOKrndefaultrnTime taken: 5.421 seconds, Fetched: 1 row(s)rnhive> describe database default;rnOKrndefault Default Hive database hdfs://master:9000/user/hive/warehouse public ROLE rnTime taken: 0.449 seconds, Fetched: 1 row(s)rnhive> create table harea (id int,area string) row format delimited fields terminated by '|' stored as textfile;rn[color=#800000]FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Could not connect to meta store using any of the URIs provided. Most recent failure: org.apache.thrift.transport.TTransportException: java.net.ConnectException: 拒绝连接 (Connection refused)[/color]rn at org.apache.thrift.transport.TSocket.open(TSocket.java:226)rn at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStoreClient.java:452)rn at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.reconnect(HiveMetaStoreClient.java:347)rn at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:148)rnrnhive启动正常,执行创建表时却报错了,有谁遇到过这类问题,请不吝赐教,网上找个各种方法也没解决!rnrn下面是服务运行情况:rn[root@master ~]# jpsrn1760 SecondaryNameNodern1921 ResourceManagerrn2561 HQuorumPeerrn2625 HMasterrn1474 NameNodern2025 NodeManagerrn2761 HRegionServerrn19833 RunJarrn20201 Jpsrnrn---xml配置情况rn rn javax.jdo.option.ConnectionURLrn jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=truern JDBC connect string for a JDBC metastorern rn rn javax.jdo.option.ConnectionDriverNamern com.mysql.jdbc.Driverrn Driver class name for a JDBC metastorern rnrn javax.jdo.option.ConnectionUserNamern hivern Username to use against metastore databasern rnrn javax.jdo.option.ConnectionPasswordrn 123456rn password to use against metastore databasern rn rn hive.metastore.warehouse.dirrn /user/hive/warehousern location of default database for the warehousern rnrn----mysql里的用户rnhive 登录也正常rn+-----------+-----------+rn| user | host |rn+-----------+-----------+rn| hive | % |rn| root | % |rn| mysql.sys | localhost |rn| root | localhost |rn| hive | master |rn+-----------+-----------+
as butterknife8.5.1 运行APP异常
编译能过。环境我搭的,其他同事都没问题。就我的不行。报错如下,内存大小都调整过,还是不行。rn大家帮看看,一加上annotationProcessor必死。rn[img=https://img-bbs.csdn.net/upload/201705/11/1494468111_322777.png][/img]rn[img=https://img-bbs.csdn.net/upload/201705/11/1494468037_842473.png][/img]
工作流运行异常
工作流的权限为 BUILTIN\Administrators,运行客户端应用程序时,引发异常:rnrnThe caller does not have the necessary permissions required for this operation.Permissions granted:无。Required permissions:WriteScope.HTTP headers received from the server - ActivityId:AC318A5F-7B96-4DA1-A632-F175372BB8E1.NodeId:MACHINENAME.Scope:/ExternalVariableSampleScope.Client ActivityId :4DD1EBC2-54C6-46ED-BD87-5CFE7BFFDDF4.rn
AfxGetInstanceHandle函数运行异常
我在动态链接库(静态链接到MFC)里调用:rn HINSTANCE hIns=AfxGetInstanceHandle();rn 编译链接正常,运行时这一行代码异常,rn 怎么回事啊?rn 异常弹出提示[img=d://afx.bmp][/img]
关于spark运行异常
rn命令 :rn./bin/spark-submit --class org.apache.spark.examples.SparkPi --master spark://master:7077 --executor-memory 1g --total-executor-cores 1 lib/spark-examples-1.6.1-hadoop2.6.0.jar 10rnrn运行现象,一直如下:rnrn executor 1rn16/06/16 17:32:02 INFO AppClient$ClientEndpoint: Executor added: app-20160616173158-0001/2 on worker-20160616170345-192.168.20.129-38513 (192.168.20.129:38513) with 1 coresrn16/06/16 17:32:02 INFO SparkDeploySchedulerBackend: Granted executor ID app-20160616173158-0001/2 on hostPort 192.168.20.129:38513 with 1 cores, 1024.0 MB RAMrn16/06/16 17:32:02 INFO AppClient$ClientEndpoint: Executor updated: app-20160616173158-0001/2 is now RUNNINGrn16/06/16 17:32:04 INFO AppClient$ClientEndpoint: Executor updated: app-20160616173158-0001/2 is now EXITED (Command exited with code 1)rn16/06/16 17:32:04 INFO SparkDeploySchedulerBackend: Executor app-20160616173158-0001/2 removed: Command exited with code 1rn16/06/16 17:32:04 INFO SparkDeploySchedulerBackend: Asked to remove non-existent executor 2rn16/06/16 17:32:04 INFO AppClient$ClientEndpoint: Executor added: app-20160616173158-0001/3 on worker-20160616170345-192.168.20.129-38513 (192.168.20.129:38513) with 1 coresrn16/06/16 17:32:04 INFO SparkDeploySchedulerBackend: Granted executor ID app-20160616173158-0001/3 on hostPort 192.168.20.129:38513 with 1 cores, 1024.0 MB RAMrn16/06/16 17:32:04 INFO AppClient$ClientEndpoint: Executor updated: app-20160616173158-0001/3 is now RUNNINGrn16/06/16 17:32:05 INFO AppClient$ClientEndpoint: Executor updated: app-20160616173158-0001/3 is now EXITED (Command exited with code 1)rn16/06/16 17:32:05 INFO SparkDeploySchedulerBackend: Executor app-20160616173158-0001/3 removed: Command exited with code 1rn16/06/16 17:32:05 INFO SparkDeploySchedulerBackend: Asked to remove non-existent executor 3rn16/06/16 17:32:05 INFO AppClient$ClientEndpoint: Executor added: app-20160616173158-0001/4 on worker-20160616170345-192.168.20.129-38513 (192.168.20.129:38513) with 1 coresrn16/06/16 17:32:05 INFO SparkDeploySchedulerBackend: Granted executor ID app-20160616173158-0001/4 on hostPort 192.168.20.129:38513 with 1 cores, 1024.0 MB RAMrn16/06/16 17:32:05 INFO AppClient$ClientEndpoint: Executor updated: app-20160616173158-0001/4 is now RUNNINGrn16/06/16 17:32:07 INFO AppClient$ClientEndpoint: Executor updated: app-20160616173158-0001/4 is now EXITED (Command exited with code 1)rn16/06/16 17:32:07 INFO SparkDeploySchedulerBackend: Executor app-20160616173158-0001/4 removed: Command exited with code 1rn16/06/16 17:32:07 INFO SparkDeploySchedulerBackend: Asked to remove non-existent executor 4rn16/06/16 17:32:07 INFO AppClient$ClientEndpoint: Executor added: app-20160616173158-0001/5 on worker-20160616170345-192.168.20.129-38513 (192.168.20.129:38513) with 1 coresrn16/06/16 17:32:07 INFO SparkDeploySchedulerBackend: Granted executor ID app-20160616173158-0001/5 on hostPort 192.168.20.129:38513 with 1 cores, 1024.0 MB RAMrn16/06/16 17:32:07 INFO AppClient$ClientEndpoint: Executor updated: app-20160616173158-0001/5 is now RUNNINGrn16/06/16 17:32:09 INFO AppClient$ClientEndpoint: Executor updated: app-20160616173158-0001/5 is now EXITED (Command exited with code 1)rn16/06/16 17:32:09 INFO SparkDeploySchedulerBackend: Executor app-20160616173158-0001/5 removed: Command exited with code 1rn16/06/16 17:32:09 INFO SparkDeploySchedulerBackend: Asked to remove non-existent executor 5rn16/06/16 17:32:09 INFO AppClient$ClientEndpoint: Executor added: app-20160616173158-0001/6 on worker-20160616170345-192.168.20.129-38513 (192.168.20.129:38513) with 1 coresrnrnrnweb ui 上面 显示 worker上面的executor连接driver 的ip为本机rn stderr log page for app-20160616173158-0001/2rnrnBack to MasterrnBytes 0 - 2035 of 2035rnrn16/06/16 17:32:03 INFO CoarseGrainedExecutorBackend: Registered signal handlers for [TERM, HUP, INT]rn16/06/16 17:32:04 INFO SecurityManager: Changing view acls to: shihjrn16/06/16 17:32:04 INFO SecurityManager: Changing modify acls to: shihjrn16/06/16 17:32:04 INFO SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(shihj); users with modify permissions: Set(shihj)rnException in thread "main" java.io.IOException: Failed to connect to /127.0.0.1:37743rn at org.apache.spark.network.client.TransportClientFactory.createClient(Transpo
java项目运行异常
我做的一个java项目,在类PersonnelManage中Run As→Java Application出现如下异常:rnjava.lang.NoClassDefFoundError: com/mwq/PersonnelManagernCaused by: java.lang.ClassNotFoundException: com.mwq.PersonnelManagern at java.net.URLClassLoader$1.run(URLClassLoader.java:200)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:307)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:252)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rnException in thread "main" rn类PersonnelManage的代码为:rnpublic class PersonnelManage rnrn boolean packFrame = false;rnrn public PersonnelManage() rn SwingUtilities.invokeLater(new Runnable() rn public void run() rn try rn UIManager.setLookAndFeel(UIManagerrn .getSystemLookAndFeelClassName());rn catch (Exception exception) rn exception.printStackTrace();rn rn land();rn rn );rn rnrn public void land() rn LandFrame frame = new LandFrame();rn if (packFrame) rn frame.pack();rn else rn frame.validate();rn rnrn // Center the windowrn Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();rn Dimension frameSize = frame.getSize();rn if (frameSize.height > screenSize.height) rn frameSize.height = screenSize.height;rn rn if (frameSize.width > screenSize.width) rn frameSize.width = screenSize.width;rn rn frame.setLocation((screenSize.width - frameSize.width) / 2,rn (screenSize.height - frameSize.height) / 2);rn frame.setVisible(true);rn rnrn public static void main(String[] args) rn new PersonnelManage();rn rnrnrn为什么找不到com.mwq.PersonnelManage这个类呢?rn请大拿们帮忙.
weblogic运行异常
运行在weblogic下的web站点,通过weblogic的数据源访问数据库。运行了大半年了,今天突然报出个错误,然后站点就无法访问,杀死该进程后重启,站点正常。看有没有大虾指点指点,以下是出错日志rn2014-11-03 14:36:45 [com.gdny.intl.cmu.control.action.MsgAction]-[INFO] Message route:IPSWEBrn2014-11-03 14:36:45 [com.gdny.intl.cmu.control.action.MsgAction]-[INFO] Invoke message processors......rn2014-11-03 14:36:56 [org.hibernate.util.JDBCExceptionReporter]-[WARN] SQL Error: 0, SQLState: nullrn2014-11-03 14:36:56 [org.hibernate.util.JDBCExceptionReporter]-[ERROR] weblogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: IO 错误: Connection resetrn2014-11-03 14:36:56 [org.hibernate.util.JDBCExceptionReporter]-[WARN] SQL Error: 0, SQLState: nullrn2014-11-03 14:36:56 [org.hibernate.util.JDBCExceptionReporter]-[ERROR] Cannot obtain connection: driverURL = jdbc:weblogic:pool:UPS, props = EmulateTwoPhaseCommit=false, connectionPoolID=UPS, jdbcTxDataSource=true, LoggingLastResource=false, dataSourceName=UPSrn2014-11-03 14:36:56 [org.hibernate.event.def.DefaultLoadEventListener]-[INFO] Error performing load commandrnorg.hibernate.exception.GenericJDBCException: Cannot open connectionrn at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:140)rn at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:128)rn at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)rn at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)rn at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)rn at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)rn at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)rn at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1596)
鼠标钩子运行异常...
鼠标消息被拦截了并被传递下去。rn但鼠标动一会后其他窗口就被自动关闭了!rn有人碰到过吗?谢谢!
案例——运行异常
UnsatisfiedLinkError: no xxx in java.library.path      在启动程序时,或者运行过程中输出:      “UnsatisfiedLinkError: no xxx in java.library.path”   定位方法: “java.library.path”是 Java 用来寻找 JNI(Native)库的路径(.dll,.so等);...
在tomcat下运行jax-ws 异常
注意事项:1.出现异常 Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 10 counts of IllegalAnnotationExceptionsTwo classes have the same XML type nam...
startActivityForResult运行异常
我从其他一个android工程移植了一部分代码到我工程。rn Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);rn ///startActivityForResult(enableIntent, REQUEST_ENABLE_BT);rn rn现在发现一运行startActivityForResult就报错,android手机运行一下就马上自己关闭了. log调试信息:rnShutting down VMrnFAIL EXCEPTION:mainrnjava.lang.RuntimeException:Unable to resume activitycom.exaple.pedometer/rncom.example.pedometer.MainActivity:java.lang.SecurityException:Permissionrn......rn请问这是怎么回事? 如何修改
VC运行异常
#include rn#include rnDWORD WINAPI fun(LPVOID lpParameter);rnint i=0;rnvoid main()rnrnHANDLE handle1;rnhandle1=CreateThread(NULL,0,fun,NULL,0,NULL);rnCloseHandle(handle1);rnwhile(i++<1000)rncout<<"main thread is running"<
对话框 继承 运行异常
新建自己的对话框基类://.h rn  class CMyDlg : public CDialogrn            // Dialog Datarn            // enum IDD = IDD_ADDDEVICEDLG ; //注释这句rnrn     新建构造函数:CMyDlg(DWORD dwID, CWnd* pParent = NULL); // my constructor,隐藏默认构筑函数rn rn // .cpprn CMyDlg ::CMyDlg (DWORD dwID,CWnd* pParent )rn : CDialog(dwID, pParent)rn rn新建对话框://.h class CChildDlg: public CMyDlg rn      //.cpp CChildDlg::CChildDlg(CWnd* pParent /*=NULL*/)rn : CMyDlg (CChildDlg::IDD, pParent)rnrnrn运行时,CChildDlg::DoModal(), 界面正常,但是运行到语句 :UpdateData(TRUE).软件崩溃。rn提示:Debug Assertion Failed!rn File: f:\dd\vctools\vc7libs\ship\atlmfc\src\wincore.cpprn Line: 932rnrn具体到代码: rnrnvoid CWnd::AssertValid() constrnrn if (m_hWnd == NULL)rn return; // null (unattached) windows are validrnrn // check for special wnd??? valuesrn ASSERT(HWND_TOP == NULL); // same as desktoprn if (m_hWnd == HWND_BOTTOM)rn ASSERT(this == &CWnd::wndBottom);rn else if (m_hWnd == HWND_TOPMOST)rn ASSERT(this == &CWnd::wndTopMost);rn else if (m_hWnd == HWND_NOTOPMOST)rn ASSERT(this == &CWnd::wndNoTopMost);rn elsern rn // should be a normal windowrn ASSERT(::IsWindow(m_hWnd));rnrn // should also be in the permanent or temporary handle maprn CHandleMap* pMap = afxMapHWND();rn ASSERT(pMap != NULL);rnrn CObject* p=NULL;rn if(pMap)rn rn异常 ASSERT( (p = pMap->LookupPermanent(m_hWnd)) != NULL ||rn (p = pMap->LookupTemporary(m_hWnd)) != NULL);rn rn
struts2-showcase-2.1.6.war运行异常,求解
环境:rnjava version "1.5.0_04"rnJava(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)rnJava HotSpot(TM) Server VM (build 1.5.0_04-b05, mixed mode)rnrnrnSun Java System Application Server Enterprise Edition 8.1_02 (build b11-fcs) rnrn部署struts2自带工程struts2-showcase-2.1.6.war,部署成功rn但是运行时页面显示rn“HTTP 状态 404 - result 'null' not found”rnrn日志抛出异常:rn[#|2009-08-31T09:44:46.004+0800|INFO|sun-appserver-ee8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|2009-08-31 09:44:45,991 ERROR (com.opensymphony.xwork2.ObjectFactory:27) - Unable to set parameter [location] in result of type [org.apache.struts2.dispatcher.ServletDispatcherResult]rnCaught OgnlException while setting property 'location' on type 'org.apache.struts2.dispatcher.ServletDispatcherResult'. - Class: ognl.OgnlRuntimernFile: OgnlRuntime.javarnMethod: invokeMethodrnLine: 508 - ognl/OgnlRuntime.java:508:-1rn at com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:392)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setProperty(OgnlUtil.java:143)rn at com.opensymphony.xwork2.ognl.OgnlReflectionProvider.setProperty(OgnlReflectionProvider.java:91)rn at com.opensymphony.xwork2.ObjectFactory.buildResult(ObjectFactory.java:221)rn at com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:208)rn at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:355)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:265)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter.doFilter(StrutsExecuteFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)rn at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)rn at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)rn at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)rn at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.doFilter(StrutsPrepareFilter.java:65)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)rn at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)rn at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)rn at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:226)rn at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2071)rnCaused by: java.lang.IllegalAccessException: Method [public void or|#]rn
运行异常 求解
#includern#includern#includern#includern#includernusing namespace std;rnrnstruct Timernrn float time;//读取时间rn float lasttime;//持续时间rn;rnrnstruct Lrcrnrn Time T;rn string lrc_text;rn struct Lrc *next;rn;rnrnfloat Gettime(string s)//获取播放时间rnrn //char *str1,*str2;rn string str3,str4;rnrn int flag1=s.find_first_of('[');rn int flag2=s.find_first_of(']');rn int flag3=s.find_first_of(':');rn str3=s.substr(flag1+1,flag3-flag1-1);rn str4=s.substr(flag3+1,flag2-flag3-1);rnrn //strcpy(str1,str3.c_str());rn //strcpy(str2,str4.c_str());rn rn float t1=atof(str3.c_str())*60000;rn float t2=atof(str4.c_str())*1000;rn return t1+t2;rnrnrnrnstruct Lrc *Creatlrc()//创建歌词链表rnrn Lrc *p=new Lrc;rn Lrc *head=new Lrc;rn int flag=0;rn string str;//获得歌词字符串rn ifstream infile("Linkin Park - in the end.lrc",ios_base::binary);rn int i=0;rn while(getline(infile,str,'\n'))rn rn //cout<T.time=Gettime(s1); //获取播放时间rn p->lrc_text=" ";rn rnrn else//[]后面有歌词 rn rn p->T.time=Gettime(str.substr(index1,index3-index1+1)); rn p->lrc_text=str.substr(index3+1); //获取歌词rn rn // cout<<"ssss";rn rnrn else//有多个[] rn //cout<<"[ti:In the End]";rn string s1,s2,s3; rn if(index2==(len-1)) //后面无歌词rn rn s1=str.substr(index1,index3-index1+1); rn s2=str.substr(index3+1,index2-index3); rn p->T.time=Gettime(s1);rn p->lrc_text="";rn //cout<<"[ti:In the End]";rn p=p->next;rn p->T.time=Gettime(s2);rn cout<<"[ti:In the End]";rn p->lrc_text="";rn rn rn rn elsern rn s3=str.substr(index2+1);rn s1=str.substr(index1,index3-index1+1); rn p->T.time=Gettime(s1);rn p->lrc_text=s3;rn s2=str.substr(index3+1,index2-index3);rn p->next->T.time=Gettime(s2);rn p->next->lrc_text=s3;rn rn rn rnrn if(flag=0)rn rn head=p;flag=1;rn rn p=p->next;rn if(!infile.eof())rn rn p=NULL;rn break;rn rn rn infile.close();rn delete p;rn return head;rnrnrnrnvoid sort(Lrc *head)//排序,计算每段持续时间rnrn Lrc *p=new Lrc;rn Lrc *p1=new Lrc;rn Lrc *p2=new Lrc;rn Lrc *p3=new Lrc;rn //p1=head;rn for(p=head;p!=NULL;p=p->next)rn rn p2=p;//记录最小值节点rn for(p1=p;p1!=NULL;p1=p1->next)rn if(p2->T.time>p1->T.time) p2=p1;rn//交换数据rn p3=p;rn p->T.time=p2->T.time;rn p->lrc_text=p2->lrc_text;rn p2->T.time=p3->T.time;rn p2->lrc_text=p3->lrc_text;rn rnrn //回带rn p=head;rn while(p!=NULL)rn rn if(p->next==NULL)p->T.lasttime=2000;break;rn p->T.lasttime=p->next->T.time-p->T.time;rn p=p->next;rn rn delete p;rn delete p1;rn delete p2;rn delete p3;rnrnrnvoid print(struct Lrc *head)rnrn Lrc *p=new Lrc;rn p=head;rn while(p!=NULL)rn rn cout<lrc_text<next;rn rn delete p;rnrnrnvoid main()rnrnrnrn Lrc *head=new Lrc; rn head=Creatlrc();rn //sort(head);rn print(head);rnrnrnrnrn主要是将歌词提取出来 用到了链表 写得时候就预感会出现n多错误 经过调试编译 链接没问题 运行老是出现问题 搞了一下午 还是不得要领 求大神 指点一二。rn歌词如下(把前边歌词标签之类省了)rn[00:01.04]Linkin Park - In the Endrn[00:06.04]Album:Hybrid Theoryrn[00:11.04]Lrc by 賴潤誠 oicq:85860288 ★rn[00:16.04]rn[00:20.04]It starts with one thing rn[00:22.58]I don't know why rn[00:23.80]It doesn't even matter how hard you try keep that in mind rn[00:27.02]I designed this rhyme rn[00:28.10]To explain in due time rn[00:29.38]All I know rn[00:31.01]Time is a valuable thing rn[00:32.88]Watch it fly by as the pendulum swings rn[00:35.15]Watch it count down to the end of the day rn[00:37.22]The clock ticks life away rn[00:38.78]It's so unreal rn[00:40.31]Didn't look out below rn[00:41.95]Watch the time go right out the window rn[00:44.42]Trying to hold on, but didn't even know rn[00:46.59]Wasted it all just to watch you go rn[00:49.39]I kept everything inside and even though I tried, it all fell apart rn[00:53.43]What it meant to me will eventually be a memory of a time when rn[00:56.35]rn[00:56.89]I tried so hard rn[00:58.94]And got so far rn[01:01.79]But in the end rn[01:03.56]It doesn't even matter rn[01:05.82]I had to fall rn[01:08.06]To lose it all rn[01:10.92]But in the end rn[01:12.74]It doesn't even matter rn[01:14.94]rn[01:16.32]One thing, I don't know why rn[01:18.58]It doesn?t even matter how hard you try, keep that in mind rn[01:21.80]I designed this rhyme, to explain in due time rn[01:24.22]I tried so hard rn[01:26.01]In spite of the way you were mocking me rn[01:28.08]Acting like I was part of your property rn[01:30.16]Remembering all the times you fought with me rn[01:32.35]I'm surprised it got so (far) rn[01:34.85]Things aren't the way they were before rn[01:36.91]You wouldn't even recognize me anymore rn[01:39.19]Not that you knew me back then rn[01:41.57]But it all comes back to me (in the end) rn[01:43.74]You kept everything inside and even though I tried, it all fell apart rn[01:48.21]What it meant to me will eventually be a memory of a time when I rn[01:51.26]rn[02:48.48][01:51.75]I tried so hard rn[02:50.74][01:53.72]And got so far rn[02:53.57][01:56.56]But in the end rn[02:55.32][01:58.37]It doesn't even matter rn[02:57.55][02:00.56]I had to fall rn[02:59.83][02:02.91]To lose it all rn[03:02.66][02:05.68]But in the end rn[03:04.43][02:07.37]It doesn't even matter rn[02:10.86]rn[02:30.23][02:12.07]I put my trust in you rn[02:34.96][02:16.59]Pushed as far as I can go rn[02:39.55][02:21.35]And for all this rn[02:41.82][02:23.54]There's only one thing you should know rn[03:09.82][02:47.63][02:29.39]rn[03:12.82]Lrc by 賴潤誠 oicq:85860288 ★rn
MFC运行后异常
MFC 按F5运行后,能正常运行,但按CTRL+F5退出运行时,就弹出rn时弹出 explorer.exe-应用程序错误 “0x00f02c28”指令引用“0x00f02c28”内存.该内存不能为“read”.rnrn是不是内存泄漏呢?怎么样找呢?请高手指指~感谢不尽~
运行异常求助
刚开始学Java,下载的JDK5,编译以后运行报错:rnException in thread "main" java.lang.unsupportedClassVersionError:HelloWorldApprnrn请教是什么原因?rn谢谢rn
java 运行异常
我在linux下运行JAVA时命令提示行经常提示这样的信息:rnNo suppored languages installedrnUnable to open resource filern这是什么引起的呢?rn我在程序中有用到动态库,是不是加载的时候出错?rn多运行几次有时候又正常……
运行异常,求解。
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>rn<%@ page import="com.zhao.*" %>rnrn<%rntryrnString sql;rnsql = "SELECT count(*) as num FROM XO";rnResultSet rs = DbBean.executeQuery(sql);rn%>rnrnrnrn rn Untitled Documentrnrnrnrnrn rn rn rn rn 表的增删改rn rn rn rn rn 姓名 rn 工资 rn 部门 rn 操作 rn rn<% rn int pagesize=8; rn int pagecount=0; rn int count=0; rn int currentpage=0; rn if (rs.next()) rn count = rs.getInt("num"); rn float f = (float) count / (float) pagesize; rn int pages = (int) (count / pagesize); rn if (f > pages) pages++; rn pagecount = pages ; rn rn if(request.getParameter("page")!=null)//假如接收的页面数不为空 rn currentpage = java.lang.Integer.parseInt(request.getParameter("page"));//就把接收的页面数pagg赋值给gopage rn else//否则 rn currentpage=1;//gopage为1,即显示第一页 rn rn rn //分页查询 rnrn sql = "select * from XO where id between 1 and 160"; rn // System.out.println(sql); rn rs = DbBean.executeQuery(sql); rn while(rs.next()) rn String id=rs.getString("id"); rn String xm2=rs.getString("xm"); rn String gz=rs.getString("gz");rn String bm=rs.getString("bm"); rn %> rn rn <%=xm2 %> rn <%=gz %> rn <%=bm %> rn 修改 rn 删除 rn rn <% rn rs.close(); rn %> rn rn 新增 rn rn rn rn rnrn rnrn rn DbBean.executeQuery(sql) rn rn rn rn rn <%catch(Exception e)rn out.print("");rn rn %>rn rnrnrn rnrnrnrnrn运行结果:rnaq.executeQuery: The url cannot be nullrn
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法