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

开发者社区> 问答> 正文

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

halo7 2018-01-20 22:06:56 4988

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) 
存储 Android开发
分享到
取消 提交回答
全部回答(1)
  • 铁丝面
    2019-07-17 21:55:41

    表格存储会在你的client的执行路径的上级路径访问一个log的目录,这个错误提示是说这个日志无法创建。比如你运行的目录没有上级目录,或者没有权限创建log文件夹。

    0 0
开发与运维
使用钉钉扫一扫加入圈子
+ 订阅

集结各类场景实战经验,助你开发运维畅行无忧

推荐文章
相似问题
推荐课程