Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-582

Issue in ClassHelper class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • V2 2.0.2
    • None
    • odata2-annotation
    • None

    Description

      When I create annotation service through AnnotationServiceFactory and my server is located at location which has space in the path (for example c:\My servers\serverX) the Olingo fails with the following exception:

      ...
      Caused by: java.lang.IllegalArgumentException: Invalid folder path for path URL 'file:/C:/Development/Workspaces/Eclipse Luna Lean/Extensions Service/Servers/Java Web Server-config/...more path...' from thread context class loader.
      at org.apache.olingo.odata2.annotation.processor.core.util.ClassHelper.getResourceUri(ClassHelper.java:118)
      at org.apache.olingo.odata2.annotation.processor.core.util.ClassHelper.loadClasses(ClassHelper.java:72)
      at org.apache.olingo.odata2.annotation.processor.core.util.ClassHelper.loadClasses(ClassHelper.java:65)
      at org.apache.olingo.odata2.annotation.processor.core.edm.AnnotationEdmProvider.<init>(AnnotationEdmProvider.java:101)
      at org.apache.olingo.odata2.annotation.processor.core.rt.AnnotationServiceFactoryImpl.createAnnotationService(AnnotationServiceFactoryImpl.java:42)
      at org.apache.olingo.odata2.annotation.processor.api.AnnotationServiceFactory.createAnnotationService(AnnotationServiceFactory.java:103)
      at com.sap.core.extensions.service.hcm.cloud.content.management.odata.cfg.AnnotationSampleServiceFactory$AnnotationInstances.<clinit>(AnnotationSampleServiceFactory.java:18)
      ... 60 more|

      This issue makes my web project an environment dependent, because I need to ensure that my server hasn't space in the location.

      Attachments

        Activity

          People

            mirbo mibo
            iliyan.velichkov Iliyan Velichkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: