Skip to content

Instantly share code, notes, and snippets.

View ssogabe's full-sized avatar

Seiji Sogabe ssogabe

View GitHub Profile
var temperature = dsData[dsIndex]['temperature'];
if (temperature >= 25) {
return "red";
} else {
return "blue";
}
@ssogabe
ssogabe / gist:7974514
Last active December 31, 2015 10:39
Twiiterでgitbucketをふくむつぶやきを検索して、IRCにポストする例
public class MyRouteBuilder extends RouteBuilder {
/**
* Let's configure the Camel routing rules using Java code...
*/
@Override
public void configure() {
from("twitter://search?keywords=gitbucket&type=polling&delay=30&consumerKey=xxx&consumerSecret=yyy&accessToken=zzz&accessTokenSecret=zzz")
.split(body()).to("irc:twitter-bot@192.168.10.50:6667?channels=#gitbucket&keys=gitbucket");
}
2013/10/02 6:16:26 org.apache.catalina.core.StandardContext listenerStart
致命的: クラス servlet.AutoUpdateListener のリスナインスタンスにコンテキスト初期化イベントを送信中の例外です
java.sql.SQLException: No suitable driver found for jdbc:h2:/home/tomcat/gitbucket/data
at java.sql.DriverManager.getConnection(DriverManager.java:602)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at servlet.AutoUpdateListener.getConnection(AutoUpdateListener.scala:151)
at servlet.AutoUpdateListener.contextInitialized(AutoUpdateListener.scala:121)
at org.apache.catalina.core.StandardContext.listenerStart(Unknown Source)
at org.apache.catalina.core.StandardContext.startInternal(Unknown Source)
at org.apache.catalina.util.LifecycleBase.start(Unknown Source)
@ssogabe
ssogabe / gist:6261485
Created August 18, 2013 12:46
GitBucket 1.4
HTTPステータス 500 -
type 例外レポート
メッセージ
説明 The server encountered an internal error that prevented it from fulfilling this request.
例外
エラー: [Exception... "'SyntaxError: Badly formed JSON string: '<html><body>\n<h1>404 Not Found</h1>\n<p>Stapler
processed this HTTP request as follows, but couldn\'t find the resource to consume the request\n<pre>\n->
evaluate(&lt;hudson.model.Hudson@6fd6768f> :hudson.model.Hudson,"/pluginManager/contextMenu")\n->
evaluate(((StaplerProxy)&lt;hudson.model.Hudson@6fd6768f>).getTarget(),"/pluginManager/contextMenu")\n->
evaluate(&lt;hudson.model.Hudson@6fd6768f>.pluginManager,"/contextMenu")\n->
evaluate(&lt;hudson.LocalPluginManager@2174009b> :hudson.LocalPluginManager,"/contextMenu")\n<font color=red>-&gt; No
matching rule was found on &lt;hudson.LocalPluginManager@2174009b&gt; for "/contextMenu"</font>\n</pre>
\n<p>&lt;hudson.LocalPluginManager@2174009b&gt; has the following URL mappings, in the order of preference:<ol>\n<li>
\nhudson.PluginManager.doUpdateSources(...) for url=/updateSources/...\n<li>\nhudson.PluginManager.doInstall(...) for
url=/install/...\n<li>\nhudson.PluginManager.doSiteConfigure(..
Hotspots:
4.1174 - changelog.html
0.7785 - core/src/main/java/hudson/Util.java
0.7785 - core/src/main/java/hudson/os/PosixAPI.java
0.4750 - core/src/main/java/hudson/security/GlobalMatrixAuthorizationStrategy.java
0.4518 - war/pom.xml
0.4347 - pom.xml
0.4344 - core/src/main/java/hudson/cli/CliManagerImpl.java
0.3968 - maven-plugin/src/main/java/hudson/maven/RedeployPublisher.java
0.3966 - core/src/main/java/hudson/model/ResultTrend.java
定期的に実行
[EnvInject] - Preparing an environment for the job.
masterでビルドします。
Updating http://bacons.ddo.jp/svn/misc/phpsample/trunk
At revision 487
no change for http://bacons.ddo.jp/svn/misc/phpsample/trunk since the previous build
looking for '/var/lib/hudson/jobs/php-sample/workspace/phpsample/build.xml' ...
[phpsample] $ phing -buildfile build.xml test pmd -DTEST=************** -logger phing.listener.DefaultLogger
Buildfile: /var/lib/hudson/jobs/php-sample/workspace/phpsample/build.xml
Parsing POMs
FATAL: com.google.inject.Binder.bindListener(Lcom/google/inject/matcher/Matcher;[Lcom/google/inject/spi/ProvisionListener;)V
java.lang.NoSuchMethodError: com.google.inject.Binder.bindListener(Lcom/google/inject/matcher/Matcher;[Lcom/google/inject/spi/ProvisionListener;)V
at org.sonatype.guice.plexus.binders.PlexusBindingModule.configure(PlexusBindingModule.java:74)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
at com.google.inject.spi.Elements.getElements(Elements.java:101)
at com.google.inject.spi.Elements.getElements(Elements.java:78)
at org.sonatype.guice.bean.binders.MergedModule.configure(MergedModule.java:54)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
at com.google.inject.spi.Elements.getElements(Elements.java:101)
エラーメッセージ
No signature for META-INF/JENKINS.DSA
スタックトレース
java.lang.AssertionError: No signature for META-INF/JENKINS.DSA
at org.junit.Assert.fail(Assert.java:93)
at jenkins.RemotingJarSignatureTest.testSignature(RemotingJarSignatureTest.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
ユーザーSeiji Sogabeが実行
masterでビルドします。
Checkout:workspace / /var/lib/hudson/jobs/mantis-plugin/workspace - hudson.remoting.LocalChannel@13e0937b
Using strategy: Default
Last Built Revision: Revision 91913a06d4dff30df39fe6c2cc551c2aca6dc5e6 (origin/master)
Checkout:workspace / /var/lib/hudson/jobs/mantis-plugin/workspace - hudson.remoting.LocalChannel@13e0937b
Fetching changes from 1 remote Git repository
Fetching upstream changes from git://github.com/jenkinsci/mantis-plugin.git
Commencing build of Revision 91913a06d4dff30df39fe6c2cc551c2aca6dc5e6 (origin/master)
Checking out Revision 91913a06d4dff30df39fe6c2cc551c2aca6dc5e6 (origin/master)