全部 文章 问答 分享 共找到15个相关内容
[问答] SobAndroidMiniWeb测试Post上传文件失败(404)
今天在做SobAndroidMiniWeb测试Post上传文件的时候失败了,返回错误码(404),我的ip是192.168.1.5,用浏览器都能正常访问本地的SobAndroidMiniWeb服务器,文件大小不到
2020-09-03 14:28 · post / 文件上传 / 404
[问答] SOBAndroidMiniWeb访问
Android网络编程那里,SOBAndroidMiniWeb电脑和手机都可以访问,为啥模拟器无法访问,连接超时
2020-04-04 12:47 · 1
[问答] SOBAndroidMiniWeb存储及获取的问题
关于SOBAndroidMiniWeb,我想请问,图片和文件,是存储在后台的jar包里吗?我可以直接在后台文件夹里面新建文件夹存储东西,再去get获取数据吗?
2020-03-26 12:11 · Android网络编程
[问答] SOBAndroidMiniWeb从github或是gitee下载解压都显示文件已损坏
SOBAndroidMiniWeb从github或是gitee下载解压都显示文件已损坏
2020-03-30 15:59 · 下载失败
[问答] Retrofit 单文件上传,后台找不到路径(macOS)
-------------941349043783355951568424header--> 16655path-->file:/Users/****/git/AndroidServer/SOBAndroidMiniWeb-master
2020-06-25 14:14 · Retrofit
[问答] 文件上传的不能成功.看老师视频是可以上传成功的.
POST实验都是OK的,现在就是卡在上传文件这里.我的服务端运行在C:\server目录下.server目录是我自己建的.老师视频的服务端是运行在C:/users/TrillGates/Desktop/sobAndroidMiniWeb-master
2021-02-11 04:03 · 文件上传问题
[问答] SOBAndroidMiniWeb-master 启动失败application run fail

说是springboot版本问题,改了没有效果

2022-04-19 15:41 · 工具
[问答] SOBAndroidMiniWeb下载文件成功,显示文件损坏?
部分代码如下,请问到底是哪里写错了啊:if(responseCode==HttpURLConnection.HTTP_OK){StringcontentDisposition=httpURLConnection.getHeaderField("Content-disposition");intfileNameStrIndex=contentDisposition.indexOf("filename=")+"filename=".length();StringfileName=contentDisposition.substring(fileNameStrIndex);Log.d(TAG,"fileName---->"+fileName);FileexternalFilesDir=RequestTestActivity.this.getExternalFilesDir(Environment.DIRECTORY_PICTURES);Log.d(TAG,"externalFilesDir---->"+externalFilesDir);if(!externalFilesDir.exists()){externalFilesDir.mkdir();}FilepicFile=newFile(externalFilesDir+File.separator+fileName);Log.d(TAG,"picFile---->"+picFile);if(!picFile.exists()){picFile.createNewFile();}inputStream=httpURLConnection.getInputStream();fileOutputStream=newFileOutputStream(picFile);byte[]buffer=newbyte[1024];intlength=0;while((length=inputStream.read(buffer,0,buffer.length))!=-1){fileOutputStream.write(buffer,0,buffer.length);}fileOutputStream.flush();
2020-09-05 00:56 · SOBAndroidMiniWeb / 文件下载 / 损坏
[文章] android开发网络框架OkHttp
学习神器SOBAndroidMiniWeb程序地址:SOBAndroidMiniWeb具体的使用方法请看里面的文档说明。有了这个神器,我们就可以做接下来的网络学习了。
[问答] 关于在服务器端配置SOBAndroidMiniWeb出错的问题

以下是错误信息

环境是华为云的 CentOS 8.2

java环境的jdk版本为16



  ███████  ██████  ██████

  ██      ██   ██ ██   ██

  ███████ ██   ██ ██████

       ██ ██   ██ ██   ██

  ███████ ███████ ██████


████████ www.sunofbeaches.com ████████

███████████████████████████

2021-08-30 13:52:21.091 INFO 8983 --- [      main] c.sunofbeaches.android.MainApplication  : Starting MainApplication v1.0-SNAPSHOT on quietly with PID 8983 (/home/sob-android-mini-web-1.0.0.jar started by root in /home)

2021-08-30 13:52:21.095 INFO 8983 --- [      main] c.sunofbeaches.android.MainApplication  : No active profile set, falling back to default profiles: default

2021-08-30 13:52:21.241 INFO 8983 --- [      main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@548ad73b: startup date [Mon Aug 30 13:52:21 CST 2021]; root of context hierarchy

2021-08-30 13:52:22.981 ERROR 8983 --- [      main] o.s.boot.SpringApplication        : Application run failed


java.lang.IllegalStateException: Cannot load configuration class: com.sunofbeaches.android.MainApplication

    at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:414) ~[spring-context-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:254) ~[spring-context-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:284) ~[spring-context-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:128) ~[spring-context-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694) ~[spring-context-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532) ~[spring-context-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]

    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) ~[spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]

    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395) ~[spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]

    at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) ~[spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]

    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255) ~[spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]

    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243) ~[spring-boot-2.0.3.RELEASE.jar!/:2.0.3.RELEASE]

    at com.sunofbeaches.android.MainApplication.main(MainApplication.java:13) ~[classes!/:1.0-SNAPSHOT]

    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]

    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[na:na]

    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]

    at java.base/java.lang.reflect.Method.invoke(Method.java:567) ~[na:na]

    at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) ~[sob-android-mini-web-1.0.0.jar:1.0-SNAPSHOT]

    at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) ~[sob-android-mini-web-1.0.0.jar:1.0-SNAPSHOT]

    at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) ~[sob-android-mini-web-1.0.0.jar:1.0-SNAPSHOT]

    at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) ~[sob-android-mini-web-1.0.0.jar:1.0-SNAPSHOT]

Caused by: java.lang.ExceptionInInitializerError: null

    at org.springframework.context.annotation.ConfigurationClassEnhancer.newEnhancer(ConfigurationClassEnhancer.java:122) ~[spring-context-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.context.annotation.ConfigurationClassEnhancer.enhance(ConfigurationClassEnhancer.java:110) ~[spring-context-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:403) ~[spring-context-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    ... 20 common frames omitted

Caused by: org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InaccessibleObjectException-->Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @56cbfb61

    at org.springframework.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:464) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:336) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:93) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:91) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]

    at org.springframework.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.cglib.core.internal.LoadingCache.get(LoadingCache.java:34) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:116) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:291) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.cglib.core.KeyFactory$Generator.create(KeyFactory.java:221) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:174) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:153) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.cglib.proxy.Enhancer.<clinit>(Enhancer.java:73) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    ... 23 common frames omitted

Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @56cbfb61

    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357) ~[na:na]

    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) ~[na:na]

    at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199) ~[na:na]

    at java.base/java.lang.reflect.Method.setAccessible(Method.java:193) ~[na:na]

    at org.springframework.cglib.core.ReflectUtils$1.run(ReflectUtils.java:61) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at java.base/java.security.AccessController.doPrivileged(AccessController.java:554) ~[na:na]

    at org.springframework.cglib.core.ReflectUtils.<clinit>(ReflectUtils.java:52) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:243) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    at org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:329) ~[spring-core-5.0.7.RELEASE.jar!/:5.0.7.RELEASE]

    ... 35 common frames omitted


2021-08-30 13:52:22.983 INFO 8983 --- [      main] ConfigServletWebServerApplicationContext : Closing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@548ad73b: startup date [Mon Aug 30 13:52:21 CST 2021]; root of context hierarchy

2021-08-30 14:23 · java
[问答] 安卓模拟器无法访问SOBAndroidMiniWeb后台服务器10.0.2.2:9102/get/text

电脑可以访问,但就模拟器无法访问。救救我救救我>o<

2022-08-17 10:31 · SOBAndroidMiniWeb / genymotion / 无法访问
[问答] 安卓网路编程sob-android-mini-web-1.0.0.jar问题
ProtocolhandlerstartfailedCausedby:java.net.BindException:Addressalreadyinuse:bind[C:\Users\Administrator\Desktop\SOBAndroidMiniWeb
2020-05-01 19:39 · 网络编程 / Android
[文章] 【笔记】HTTP-POST多文件上传
/***后台程序*https://github.com/TrillGates/SOBAndroidMiniWeb**/publicclassPostTextActivityextendsAppCompatActivity
2020-04-03 03:50 · 文件上传 / POST请求
[文章] Android网络编程Retrofit
服务器接口SOBAndroidMiniWeb或者使用网站的商城API商城API文档文档和代码文档地址:retrofit文档github地址retrofitAPI文档添加依赖版本版本在release里看就好了
  • 1