今天通过启动我的glassfish,我看到一条关于已过期的证书的错误消息...
有人可以帮助我说出我能做什么/必须做什么?
这里的消息是:
...
[exec]
[exec] [#|2013-08-15T08:57:42.106+0200|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=39;_ThreadName=Thread-2;|Grizzly
Framework 1.9.50 started in: 16ms - bound to [0.0.0.0:1307 6]|#]
[exec]
[exec] [#|2013-08-15T08:57:42.262+0200|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=Thread-2;|GlassFish
Server Open Source Edition 3.1.2.2 (5) startup time : Felix (1'1
23ms), startup services(609ms), total(1'732ms)|#]
[exec]
[exec] [#|2013-08-15T08:57:42.309+0200|SEVERE|glassfish3.1.2|javax.enterprise.system.ssl.security.com.sun.enterprise.security.ssl.impl|_ThreadID=40;_ThreadName=Thread-2;|SEC5054:
Certificate has expired: [
[exec] [
[exec] Version: V3
[exec] Subject: CN=GTE CyberTrust Root 5, OU="GTE CyberTrust Solutions, Inc.", O=GTE Corporation, C=US
[exec] Signature Algorithm: SHA1withRSA, OID = 1.2.840.113549.1.1.5
[exec]
[exec] Key: Sun RSA public key, 2048 bits
[exec] modulus: 237418898293472616608124373663877543854434319738611148654904141538840503317458119685231168476255701465927369352097185652960533868421359855348631579831288127741629980536737464707822524076734022381468699944387
29551246768368782318393878374421033907597162218758024581735139682087126982809511479059100617027892880227587855877479432885604404402435662802390484099065871430585284534529627347717530352189612077130606642676951640071336717026459037 …Run Code Online (Sandbox Code Playgroud) 有没有办法在Zend Framework中执行SQL String作为查询?
我有一个这样的字符串:
$sql = "SELECT * FROM testTable WHERE myColumn = 5"
Run Code Online (Sandbox Code Playgroud)
现在我想直接执行这个字符串withput解析它并Zend_Db_Table_Select"手动" 创建一个对象.或者,如果可以Zend_Db_Table_Select从该字符串创建对象,则执行该对象.
我怎样才能做到这一点?我没有在Zend doc中找到解决方案.
目前我正在编写一个java库来访问pointhq.com的REST API.
在开发Android客户端时,我意识到默认情况下不接受SSL证书,因此我编写了一个自定义TrustManager并添加了pointhq.com证书,如本文所述:使用HttpClient通过HTTPS信任所有证书
使用此Trustmanager和我导入的bks文件,我在尝试连接时收到以下错误: IssuerName(CN=GeoTrust Global CA, O=GeoTrust Inc., C=US) does not match SubjectName(CN=RapidSSL CA, O="GeoTrust, Inc.", C=US) of signing certificate.
那我做错了什么?我导入了pointhq.com,rapidssl.com,geotrust.com证书.但没有改变.是否有一种我必须注意的证书分类?我错过了根证书吗?
编辑:这是导入证书的列表:
类型:BKS提供者:BC条目:3
条目别名:geotrust global ca创建日期:19.10.2011 15:44:35 MESZ类型:可信证书证书:1
Certificate 1 of 1
Version: 3
Subject: CN=GeoTrust Global CA, O=GeoTrust Inc., C=US
Issuer: CN=GeoTrust Global CA, O=GeoTrust Inc., C=US
Serial Number: 0002 3456
Valid From: 21.05.2002 06:00:00
Valid Until: 21.05.2022 06:00:00
Public Key: RSA (2.048 bits)
Signature Algorithm: SHA1withRSA
SHA-1 Fingerprint: DE:28:F4:A4:FF:E5:B9:2F:A3:C5:03:D1:A3:49:A7:F9:96:2A:82:12
MD5 Fingerprint: F7:75:AB:29:FB:51:4E:B7:77:5E:FF:05:3C:99:8E:F5
Run Code Online (Sandbox Code Playgroud)
输入别名:pointhq.com(rapidssl ca)创建日期:29.09.2011 18:55:12 MESZ类型:可信证书证书:1 …
嗨,我有很多CSV文件要处理.每个文件都是由算法运行生成的.我的数据总是有一个键和一个这样的值:
csv1:
index value
1 1 1
2 2 1
3 3 1
4 4 1
5 5 1
Run Code Online (Sandbox Code Playgroud)
CSV2:
index value
1 4 3
2 5 3
3 6 3
4 7 3
5 8 3
Run Code Online (Sandbox Code Playgroud)
现在我想聚合这些CSV数据,如下所示:
当两个文件包含相同的密钥(例如5)时,结果行应包含密钥,两个文件共享(5)和两个值的平均值((1 + 3)/ 2 = 2).如果只有一个文件包含一个密钥(例如2),则该行只会添加到结果表中(key = 2,value = 1).
像这样的东西:
index value
1 1 1
2 2 1
3 3 1
4 4 2 (as (1+4)/2 = 2)
5 5 2 (as (1+4)/2 = 2)
6 6 3
7 7 3 …Run Code Online (Sandbox Code Playgroud) 因为我必须登录自定义(单个)数据库表,所以我编写了一个自定义logback appender来扩展logback DBAppender.
我有一些单元测试验证appender工作正常,但是很快,因为我想在我的webapplication中配置appender,我得到了一个ch.qos.logback.core.util.IncompatibleClassException.我不知道为什么会这样.以前有人有这个例外吗?
版本:
logback-core : 1.0.13
logback-classic : 1.0.13
slf4j-api : 1.7.5
Run Code Online (Sandbox Code Playgroud)
logback.xml
<?xml version="1.0" encoding="utf-8"?>
<configuration scan="true" debug="true" scanPeriod="10 seconds">
<appender name="db" class="com.custom.common.logging.slf4j.Slf4jDbAppender">
<connectionSource class="ch.qos.logback.core.db.JNDIConnectionSource">
<jndiLocation>jdbc/logging</jndiLocation>
</connectionSource>
</appender>
<root level="INFO">
<appender-ref ref="db" />
</root>
</configuration>
Run Code Online (Sandbox Code Playgroud)
例外:
2013-10-24 14:57:17 INFO AppenderAction About to instantiate appender of type [com.custom.common.logging.slf4j.LSlf4jDbAppender]
2013-10-24 14:57:17 ERROR AppenderAction Could not create an Appender of type [com.custom.common.logging.slf4j.LSlf4jDbAppender].
ch.qos.logback.core.util.IncompatibleClassException
at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:62)
at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:48)
at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:35)
at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:54)
at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:275)
at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:147)
at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129) …Run Code Online (Sandbox Code Playgroud) 我们使用 Maven 3.0.5 作为我们项目的构建工具,并且只有 Windows 客户端和服务器。在本地构建软件会提供干净的 maven 输出,没有任何警告。在我们的 ci 服务器 Jenkins 上运行相同的构建,我们收到此警告:
[WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
Run Code Online (Sandbox Code Playgroud)
我们会尽快收到警告,因为我们将source:jar目标包含在我们的构建中。
mvn cmd: -e clean source:jar.
有谁知道这意味着什么,以及如何摆脱它?我找不到任何如何修复它的提示,但是在谷歌上搜索了很多 Jenkins 构建日志都包含此警告。
[编辑] 配置
我还尝试将 maven-source-plugin 升级到最新版本2.4,但没有成功。
我在我的项目中使用 git,几天前我在两个客户端上提交了相同的更改。然后我将两个提交都推送到中央回购。现在我有一个有冲突的分支:
git branch
* master
master (In Konflikt stehende Kopie von Matthias 2011-05-24)
Run Code Online (Sandbox Code Playgroud)
对于非德语用户: master (conflicted copy by Matthias 2011-05-24)
如何删除这个冲突的主分支?除了提交消息外,两者都包含完全相同的数据。