【问题标题】:Azure local storage emulator exception - Null InputStream is not a valid argumentAzure 本地存储模拟器异常 - Null InputStream 不是有效参数
【发布时间】:2013-02-25 18:12:43
【问题描述】:

我在 tomcat 上使用带有 java 的 windows azure。我想使用本地存储模拟器。所以我启动了本地存储模拟器并使用:

storageConnectionString = "UseDevelopmentStorage=true"

然后我尝试创建一个表:

public static void createUsersTable() {
    try {
        CloudStorageAccount storageAccount = CloudStorageAccount
                .parse(storageConnectionString);

        CloudTableClient tableClient = storageAccount
                .createCloudTableClient();

        CloudTable table = tableClient.getTableReference("users");

        table.createIfNotExist();

        Logger.info("table users was created");

    } catch (Exception e) {
        Logger.info("table users cannot be created");
        e.printStackTrace();
    }
}

但是在执行 table.createIfNotExist() 行时,我得到了异常:

java.lang.IllegalArgumentException: Null InputStream 不是有效参数 在 com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:614) 在 com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:317) 在 com.microsoft.windowsazure.services.core.storage.utils.Utility.createXMLStreamReaderFromStream(Utility.java:327) 在

我在互联网上找不到任何关于该异常的信息,有人以前见过吗?

【问题讨论】:

    标签: azure


    【解决方案1】:

    好的,找到了问题所在。我使用的是 maven,我没有将天蓝色的依赖项放在那里,只是使用了 jar 文件。这导致与 maven 导入的某些轴 jar 发生冲突。

    【讨论】:

    • 你能给出确切的说明吗?我也面临同样的问题
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-29
    • 1970-01-01
    • 2019-02-24
    • 1970-01-01
    相关资源
    最近更新 更多