was1840 opened a new issue, #496:
URL: https://github.com/apache/celix/issues/496

   main.c:
   ```c
   #include <celix_bundle_activator.h>
   int main()
   {
       // 创建参数配置器
       celix_properties_t* properties = properties_create();
   
       // 设置捆包包路径
       properties_set(properties, "CELIX_BUNDLES_PATH", "/mnt/nfs/");
       properties_set(properties, OSGI_FRAMEWORK_FRAMEWORK_STORAGE, 
"/mnt/nfs/.cache1");
   
       // 创建框架
       celix_framework_t* fw = 
celix_frameworkFactory_createFramework(properties);
   
       // 获取捆绑包的上下文
       celix_bundle_context_t* fwContext = 
celix_framework_getFrameworkContext(fw);
   
       // 安装框架
       celix_bundleContext_installBundle(fwContext, "celix_shell.zip", true);
   
       // 安装框架
       celix_bundleContext_installBundle(fwContext, "celix_shell_tui.zip", 
true);
   
       while (1)
       {
           sleep(100000);
       }
   
   
       // // 销毁框架
       // celix_frameworkFactory_destroyFramework(fw);
   }
   ````
   log:
   ```
   [root@dvrdvs nfs] # ./MyContainer 
   [2023-03-09T14:27:16] [   info] [celix_framework] [framework_start:522] 
Celix framework started
   [2023-03-09T14:27:16] [  error] [celix_framework] [extractBundlePath:138] 
Could not extract bundle zip file `celix_shell.zip` to 
`/mnt/nfs/.cache1/bundle1/version0.0`: No such file or directory
   [2023-03-09T14:27:16] [  error] [celix_framework] [bundleRevision_create:65] 
File I/O exception: "Failed to create revision"
   [2023-03-09T14:27:16] [  error] [celix_framework] 
[bundleArchive_createRevisionFromLocation:608] File I/O exception: "Could not 
create revision [location=celix_shell.zip,inputFile=(null)]"
   [2023-03-09T14:27:16] [  error] [celix_framework] 
[bundleArchive_reviseInternal:581] File I/O exception: "Could not revise bundle 
archive"
   [2023-03-09T14:27:16] [  error] [celix_framework] [bundleArchive_revise:558] 
File I/O exception: "Could not revise bundle archive"
   [2023-03-09T14:27:16] [  error] [celix_framework] [bundleArchive_create:143] 
File I/O exception: "Could not create archive"
   [2023-03-09T14:27:16] [  error] [celix_framework] 
[celix_bundleCache_createArchive:191] File I/O exception: "Failed to create 
archive"
   [2023-03-09T14:27:16] [  error] [celix_framework] [fw_installBundle2:695] 
Bundle exception: Could not install bundle
   [2023-03-09T14:27:16] [  error] [celix_framework] [extractBundlePath:138] 
Could not extract bundle zip file `celix_shell_tui.zip` to 
`/mnt/nfs/.cache1/bundle2/version0.0`: No such file or directory
   [2023-03-09T14:27:16] [  error] [celix_framework] [bundleRevision_create:65] 
File I/O exception: "Failed to create revision"
   [2023-03-09T14:27:16] [  error] [celix_framework] 
[bundleArchive_createRevisionFromLocation:608] File I/O exception: "Could not 
create revision [location=celix_shell_tui.zip,inputFile=(null)]"
   [2023-03-09T14:27:16] [  error] [celix_framework] 
[bundleArchive_reviseInternal:581] File I/O exception: "Could not revise bundle 
archive"
   [2023-03-09T14:27:16] [  error] [celix_framework] [bundleArchive_revise:558] 
File I/O exception: "Could not revise bundle archive"
   [2023-03-09T14:27:16] [  error] [celix_framework] [bundleArchive_create:143] 
File I/O exception: "Could not create archive"
   [2023-03-09T14:27:16] [  error] [celix_framework] 
[celix_bundleCache_createArchive:191] File I/O exception: "Failed to create 
archive"
   [2023-03-09T14:27:16] [  error] [celix_framework] [fw_installBundle2:695] 
Bundle exception: Could not install bundle
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to