我在安装SonarQube4.4到5.1的实例时遇到问题.
该指令说停止SonarQube服务器,搭配几个文件(备份数据库,复制插件等),然后重新启动了更新版本的声纳服务器.
我的问题是我不知道如何启动/停止服务器.命令:
bin/<SYSTEM>/sonar stop
Run Code Online (Sandbox Code Playgroud)
和
NEW_SONARQUBE_HOME/bin/<SYSTEM>/sonar start
Run Code Online (Sandbox Code Playgroud)
不被承认.这是文件位置的样子,这是我StartSonar在新实例上遇到的错误.
当我从5.1开始
当我从4.4开始

声纳日志出错.我正在使用9000端口,所以我不确定它为什么要试图获得9001
2015.06.12 09:59:47 ERROR web[o.a.c.h.Http11NioProtocol] Failed to initialize end point associated with ProtocolHandler ["http-nio-0.0.0.0-9000"]
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method) ~[na:1.7.0_55]
at sun.nio.ch.Net.bind(Net.java:444) ~[na:1.7.0_55]
at sun.nio.ch.Net.bind(Net.java:436) ~[na:1.7.0_55]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) ~[na:1.7.0_55]
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[na:1.7.0_55]
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:343) ~[tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:730) ~[tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:457) ~[tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:120) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.connector.Connector.initInternal(Connector.java:960) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:567) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-8.0.18.jar:8.0.18]
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:851) [tomcat-embed-core-8.0.18.jar:8.0.18] …Run Code Online (Sandbox Code Playgroud) 我需要在饼图中为每个切片定义特定的十六进制值.
我正在关注维基,但该方法似乎并不适用PieDataSet
PieDataSet dataSet = new PieDataSet(entries, "Fuel");
dataSet.setColors(new int[] { R.color.green1, R.color.green2, R.color.green3, R.color.green4 }, Context);
Run Code Online (Sandbox Code Playgroud)
显示以下错误:
Cannot resolve symbol 'green1'
Expression expected <-- At the 'Context'
Run Code Online (Sandbox Code Playgroud)
是否有另一种设置饼图切片颜色的方法?这似乎适用于折线图,但不适用于饼图.
我有一个Gradle项目,我正在尝试在本地部署,gradlew stopServers deploy startServers但它失败并出现此错误:
:components/verification-ear:stopServers
Stopping server: localhost/server-three
Failed to get the list of the operation properties: "JBAS014883: No resource definition is registered for address [
("host" => "localhost"),
("server-config" => "server-three")
]"
:components/verification-ear:stopServers FAILED
FAILURE: Build failed with an exception.
Run Code Online (Sandbox Code Playgroud)
我不明白为什么这会引发错误.我关闭了服务器1和2,而3运行全ha.我的JBOSS_HOME变量是正确的,我正在从JBoss Home bin运行域模式.
I am trying to set up an apache web server on my vm and im running into some issues. When I do an 'nslookup' on the hostname of the machine this is what I get:
nslookup rhel64.xxxxx.xxxxx.com
Server: xxx.xxx.32.1
Address: xxx.xxx.32.1#53
** server can't find rhel64.xxxxx.xxxxx.com: NXDOMAIN
Run Code Online (Sandbox Code Playgroud)
I'm sure this is a common problem but I'm not sure how to fix it. It seems that dnsmasq can't resolve the hostname. Adding the hostname to /etc/hosts doesn't fix it. Running on …
我试图将今天的日期格式设置为“MM/dd/yyy HH:00”,其中分钟始终清零。使用此格式时,时间无法正确显示:
LocalDate date = DateTime.now().withZone(DateTimeZone.forID("America/New_York")).toLocalDate();
String format = date.toString("MM/dd/yyyy HH:00");
logger.info(format);
Run Code Online (Sandbox Code Playgroud)
输出
有没有其他方法可以使用 来获取时间LocalDate?
如何替换JavaScriptEclipse 中的20 多行代码?我可以一次查找和替换一行,但不能一次查找和替换多行。我需要从我的所有文件中完全删除这段代码:
<!-- /BoldChat Live Chat Button HTML v4.00 --></li>
<li><a href="index.jsp">Contact Us</a></li>
<li class="login-mega last"><a href="../user_profile.jsp"></a>
<div class="login-mega-main">
<div class="login-options">
<form id="login" name="j_security_form" action="/public/j_security_check" method="post" accept-charset="UTF-8">
<strong>Account Login</strong><br>
Username:<br>
<input type="text" name="j_username"><br>
Password:<br>
<input type="text" name="j_password"><br>
<br>
<input type="submit" value="Login"><br>
<br>
New users <a href="../user_registration.jsp">register here</a><br>
<a href="../forgot_password.jsp">Forgot password?</a>
<input type="hidden" name="auth_mode" value="basic">
<script>
var newloc = document.location.href;
newloc =newloc.replace('index.jsp','index.jsp');
document.write('<input type="hidden" name="orig_url" value="'+newloc+'">');
</script>
</form>
</div>
</div>
</li>
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用setString(index, parameter)Prepared Statements 的方法来创建一个ResultSet但它似乎没有正确插入.我知道查询是正确的,因为我在以后使用相同的(减去需要setString)else.这是我目前的代码:
**根据我的理解,ps.setString(1, "'%" + committeeCode + "%'");应该替换?查询,但我的输出说不然.任何帮助表示赞赏.
public String getUpcomingEvents(String committeeCode) throws SQLException{
Context ctx = null;
DataSource ds = null;
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;
StringBuilder htmlBuilder = new StringBuilder();
String html = "";
try {
ctx = new InitialContext();
ds = (DataSource) ctx.lookup("java:ConnectDaily");
conn = ds.getConnection();
if(committeeCode != null){
//get all events
String queryStatement = "SELECT …Run Code Online (Sandbox Code Playgroud) 有没有一种方法可以Sonar 5.1.1在仪表板GUI中完全运行分析?
如果不是,则有哪些步骤可以运行它?我似乎找不到一个可以逐步指导您的文档。
我正在尝试为 aDate为 null的情况编写一个案例,但我不断收到此错误:
ORA-00932: inconsistent datatypes: expected CHAR got DATE
00932. 00000 - "inconsistent datatypes: expected %s got %s"
*Cause:
*Action:
Run Code Online (Sandbox Code Playgroud)
代码非常简单。null与 a 比较时是否有不同的检查方法Date?
case
when cr.COMPLETED_DATE is null then '--'
else cr.COMPLETED_DATE
end completed_date,
Run Code Online (Sandbox Code Playgroud) 我有一个记住用户用户名和密码的登录信息.如何禁用密码的自动填充功能?使用autocomplete="off"工作正常IE但不在Firefox.
<td><input type="password" name="pass" redisplay="false" autocomplete="off" /></td>
Run Code Online (Sandbox Code Playgroud)
我知道FireFox在FF 30之后已经开始忽略这个属性.是否有解决方法在HTML表单中禁用它?
我有一个Java方法比较两个Dates并返回它们之间的天数,但是它已经过了一天.
即使在小时,分钟和秒之后,计算仍然关闭.
public long compareDates(Date exp, Date today){
TimeZone tzone = TimeZone.getTimeZone("America/New_York");
Calendar expDate = Calendar.getInstance();
Calendar todayDate = Calendar.getInstance();
expDate.setTime(exp);
todayDate.setTime(today);
expDate.set(Calendar.HOUR_OF_DAY, 0);
expDate.set(Calendar.MINUTE, 0);
expDate.set(Calendar.SECOND, 0);
todayDate.set(Calendar.HOUR_OF_DAY, 0);
todayDate.set(Calendar.MINUTE, 0);
todayDate.set(Calendar.SECOND, 0);
logger.info("Today = " + Long.toString(todayDate.getTimeInMillis()) + " Expiration = " + Long.toString(expDate.getTimeInMillis()));
expDate.setTimeZone(tzone);
todayDate.setTimeZone(tzone);
return (expDate.getTimeInMillis()-todayDate.getTimeInMillis())/86400000;
}
Run Code Online (Sandbox Code Playgroud)
产量
Today = 1453939200030 Expiration = 1454544000000
Run Code Online (Sandbox Code Playgroud)
在1/28和2/4之间有7天,但这会返回6.
我有一个Oracle列END_DATE,这是一个varchar2(256).我需要比较那个值,SYSDATE但我一直在收到错误.
END_DATE |SYSDATE
----------------|-------
06/30/2016 00:00|29-FEB-16
Run Code Online (Sandbox Code Playgroud)
这就是我尝试过的:
u.END_DATE > SYSDATE ---> ORA-01843: not a valid month
TO_DATE(u.END_DATE, 'DD-MM-YY') > SYSDATE ----> ORA-01843: not a valid month
TO_DATE(u.END_DATE, 'MM/DD/YYYY HH:MM') > SYSDATE ----> ORA-01810: format code appears twice
Run Code Online (Sandbox Code Playgroud)
有什么我想念的吗?
java ×4
date ×2
oracle ×2
sonarqube ×2
sql ×2
android ×1
apache ×1
autocomplete ×1
calendar ×1
dnsmasq ×1
eclipse ×1
firefox ×1
forms ×1
gradle ×1
hosts ×1
java-time ×1
javascript ×1
jboss ×1
jenkins ×1
mysql ×1
nslookup ×1
passwords ×1
replace ×1
resultset ×1
service ×1
sonar-runner ×1
sonarqube5.1 ×1
varchar ×1
webserver ×1