【发布时间】: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