小编zoi*_*oit的帖子

主页目录不存在JBOSS

我正在尝试以7.1运行jboos,当我运行standalone.bat时,我收到此错误.我已经配置了所有内容,您可以在此处看到:

Calling "C:\jboss-as-7.1.1.Final\bin\standalone.conf.bat"
===============================================================================

JBoss Bootstrap Environment

JBOSS_HOME: C:\jboss-as-7.1.1.Final\

JAVA: C:\Program Files\Java\jdk1.7.0_45\bin\java

JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx51
2M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.se
rver.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.war
ning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.c
onfig=standalone.xml

===============================================================================

13:21:17,915 Informaci¾n [org.jboss.modules] JBoss Modules version 1.1.1.GA
java.lang.IllegalStateException: JBAS015849: Home directory does not exist: C:\j
boss-as-7.1.1.Final"
    at org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:3
28)
    at org.jboss.as.server.Main.determineEnvironment(Main.java:242)
    at org.jboss.as.server.Main.main(Main.java:83)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.jboss.modules.Module.run(Module.java:260)
    at org.jboss.modules.Main.main(Main.java:291)
Presione una tecla para continuar . . .
Run Code Online (Sandbox Code Playgroud)

bin/standalone.conf.bat就是这个:

rem ### -*- batch …
Run Code Online (Sandbox Code Playgroud)

java jboss

5
推荐指数
4
解决办法
2万
查看次数

更换费太低

我正在尝试使用 Node.js 运行脚本来获取一些数据。该脚本是我在下一行中附加的以下脚本:

const IdentityManager = artifacts.require("IdentityManager");
const fs = require("fs");
const path = require("path");
const ethers = require("ethers");
// Admin keystore
const adminPath = path.resolve('./dev-tools/createFakeIdentities/mocked-identity-keys/admin-f8bd94fcb46ee4232ade9f4880be9332909ea277');
// Identity Manager Address
const imAddress = "0xD23068144e89Cb08988C3487AAd46cf941E71D77";
    
module.exports = async function () {
  try {
    
    let provider = new ethers.providers.JsonRpcProvider("http://localhost:22000");
    let adminKeystore = fs.readFileSync(adminPath, 'utf-8');
    let adminAccount = await ethers.Wallet.fromEncryptedJson(adminKeystore, "12345",(progress)=>{
      
    });
    const wallet = adminAccount.connect(provider);
    let imInstance = new ethers.Contract(imAddress, IdentityManager.abi, wallet);
    const tx1 = await imInstance.prepareID(adminAccount.address,{gasPrice:"0",gasLimit:"0x6691b7"});
    console.log(tx1);
    console.log("tx1", tx1);
    const tx2 …
Run Code Online (Sandbox Code Playgroud)

node.js ethereum truffle

5
推荐指数
1
解决办法
1万
查看次数

java.text.ParseException:Unparseable date:"Wed Jan 11 00:00:00 CET 2012"

我有这个日期的下一个问题:

java.text.ParseException: Unparseable date: "Wed Jan 11 00:00:00 CET 2012"
Run Code Online (Sandbox Code Playgroud)

我有这个:

 DateFormat formatter ; 
      Date dateIn=null;  
       formatter = new SimpleDateFormat( "EEE MMM dd HH:mm:ss yyyy" ); 
       try {
        dateIn = (Date)formatter.parse(dateI);
    } catch (ParseException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } 
Run Code Online (Sandbox Code Playgroud)

我做得不好?谢谢

java date simpledateformat

1
推荐指数
1
解决办法
8545
查看次数

Java中的日期问题

当我使用java时,我有下一个日期问题.我有这个代码:

String dateF=anio_final+"-12-31";
System.out.println("La fecha final al principio:"+dateF);

java.util.Date f_final=null;
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-mm-dd");
f_final=formatter.parse(dateF);
System.out.println("Al final la fecha final es:"+f_final);

//=> anio_final is 2012, 
Run Code Online (Sandbox Code Playgroud)

因此,当我打印dateF时,我得到了2012-12-31,但是当我将SimpleDateFormat放在f_final变量上时,我得到了2012-01-31,为什么?

java syntax date simpledateformat

1
推荐指数
1
解决办法
69
查看次数

标签 统计

java ×3

date ×2

simpledateformat ×2

ethereum ×1

jboss ×1

node.js ×1

syntax ×1

truffle ×1