开发者社区> 问答> 正文

阿里云表格存储putRow报错:StatusLogger Unable to create file ../logs/aliyun-openservices-tablestore.log java.io.IOException: open failed: ENOENT (No such file or directory)

client.putRow(putRowRequest);调用报错,无法上传至阿里云
百度也找不到解决方法,求指教
android里的代码:
line93 PutRowRequest putRowRequest=new PutRowRequest(rowPutChange);
line94 client.putRow(putRowRequest);
logcat错误:
ERROR StatusLogger Unable to create file ../logs/aliyun-openservices-tablestore.log java.io.IOException: open failed: ENOENT (No such file or directory)
01-20 21:56:04.775 com.example.f.like2 W: at java.io.File.createNewFile(File.java:939)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:306)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:290)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:71)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:60)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:79)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.appender.RollingFileAppender.createAppender(RollingFileAppender.java:182)
01-20 21:56:04.775 com.example.f.like2 W: at java.lang.reflect.Method.invoke(Native Method)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:133)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:744)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:683)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:675)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:349)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:150)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:364)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:422)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:146)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:85)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:37)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.LogManager.getContext(LogManager.java:269)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.slf4j.Log4jLoggerFactory$PrivateManager.getContext(Log4jLoggerFactory.java:98)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:84)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:44)
01-20 21:56:04.775 com.example.f.like2 W: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277)
01-20 21:56:04.775 com.example.f.like2 W: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
01-20 21:56:04.775 com.example.f.like2 W: at com.alicloud.openservices.tablestore.core.TraceLogger.(TraceLogger.java:14)
01-20 21:56:04.775 com.example.f.like2 W: at com.alicloud.openservices.tablestore.InternalClient.getTraceLogger(InternalClient.java:171)
01-20 21:56:04.775 com.example.f.like2 W: at com.alicloud.openservices.tablestore.InternalClient.putRow(InternalClient.java:341)
01-20 21:56:04.775 com.example.f.like2 W: at com.alicloud.openservices.tablestore.SyncClient.putRow(SyncClient.java:150)
01-20 21:56:04.775 com.example.f.like2 W: at com.example.f.like2.TableStore$1.run(TableStore.java:93)
01-20 21:56:04.775 com.example.f.like2 W: at java.lang.Thread.run(Thread.java:818)
01-20 21:56:04.775 com.example.f.like2 W: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
01-20 21:56:04.775 com.example.f.like2 W: at libcore.io.Posix.open(Native Method)
01-20 21:56:04.775 com.example.f.like2 W: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
01-20 21:56:04.775 com.example.f.like2 W: at java.io.File.createNewFile(File.java:932)
01-20 21:56:04.775 com.example.f.like2 W: ... 30 more
01-20 21:56:04.775 com.example.f.like2 W: ERROR StatusLogger catching java.lang.reflect.InvocationTargetException
01-20 21:56:04.775 com.example.f.like2 W: at java.lang.reflect.Method.invoke(Native Method)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:133)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:744)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:683)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:675)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:349)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:150)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:364)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:422)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:146)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:85)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:37)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.LogManager.getContext(LogManager.java:269)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.slf4j.Log4jLoggerFactory$PrivateManager.getContext(Log4jLoggerFactory.java:98)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:84)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:44)
01-20 21:56:04.775 com.example.f.like2 W: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277)
01-20 21:56:04.775 com.example.f.like2 W: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
01-20 21:56:04.775 com.example.f.like2 W: at com.alicloud.openservices.tablestore.core.TraceLogger.(TraceLogger.java:14)
01-20 21:56:04.775 com.example.f.like2 W: at com.alicloud.openservices.tablestore.InternalClient.getTraceLogger(InternalClient.java:171)
01-20 21:56:04.775 com.example.f.like2 W: at com.alicloud.openservices.tablestore.InternalClient.putRow(InternalClient.java:341)
01-20 21:56:04.775 com.example.f.like2 W: at com.alicloud.openservices.tablestore.SyncClient.putRow(SyncClient.java:150)
01-20 21:56:04.775 com.example.f.like2 W: at com.example.f.like2.TableStore$1.run(TableStore.java:93)
01-20 21:56:04.775 com.example.f.like2 W: at java.lang.Thread.run(Thread.java:818)
01-20 21:56:04.775 com.example.f.like2 W: Caused by: java.lang.IllegalStateException: Unable to create a manager
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:73)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:60)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:79)
01-20 21:56:04.775 com.example.f.like2 W: at org.apache.logging.log4j.core.appender.RollingFileAppender.createAppender(RollingFileAppender.java:182)
01-20 21:56:04.775 com.example.f.like2 W: ... 24 more
01-20 21:56:04.785 com.example.f.like2 W: ERROR StatusLogger Unable to invoke factory method in class class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile.
01-20 21:56:04.795 com.example.f.like2 W: ERROR StatusLogger Null object returned for RollingFile in Appenders.
01-20 21:56:05.705 ? E: FATAL EXCEPTION: Thread-1369

                    Process: com.example.f.like2, PID: 16905
                    java.lang.ExceptionInInitializerError
                        at com.alicloud.openservices.tablestore.InternalClient.getTraceLogger(InternalClient.java:171)
                        at com.alicloud.openservices.tablestore.InternalClient.putRow(InternalClient.java:341)
                        at com.alicloud.openservices.tablestore.SyncClient.putRow(SyncClient.java:150)
                        at com.example.f.like2.TableStore$1.run(TableStore.java:93)
                        at java.lang.Thread.run(Thread.java:818)
                     Caused by: org.apache.logging.log4j.core.config.ConfigurationException: No appenders are available for AsyncAppender Async
                        at org.apache.logging.log4j.core.appender.AsyncAppender.start(AsyncAppender.java:105)
                        at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:157)
                        at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:364)
                        at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:422)
                        at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:146)
                        at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:85)
                        at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:37)
                        at org.apache.logging.log4j.LogManager.getContext(LogManager.java:269)
                        at org.apache.logging.slf4j.Log4jLoggerFactory$PrivateManager.getContext(Log4jLoggerFactory.java:98)
                        at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:84)
                        at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:44)
                        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277)
                        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
                        at com.alicloud.openservices.tablestore.core.TraceLogger.<clinit>(TraceLogger.java:14)
                        at com.alicloud.openservices.tablestore.InternalClient.getTraceLogger(InternalClient.java:171) 
                        at com.alicloud.openservices.tablestore.InternalClient.putRow(InternalClient.java:341) 
                        at com.alicloud.openservices.tablestore.SyncClient.putRow(SyncClient.java:150) 
                        at com.example.f.like2.TableStore$1.run(TableStore.java:93) 
                        at java.lang.Thread.run(Thread.java:818) 

展开
收起
halo7 2018-01-20 22:06:56 9659 0
1 条回答
写回答
取消 提交回答
  • 表格存储会在你的client的执行路径的上级路径访问一个log的目录,这个错误提示是说这个日志无法创建。比如你运行的目录没有上级目录,或者没有权限创建log文件夹。

    2019-07-17 21:55:41
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Spring Cloud Alibaba - 重新定义 Java Cloud-Native 立即下载
The Reactive Cloud Native Arch 立即下载
多IO线程优化版 立即下载