Menu

#21 Offroad fails to start under Manjaro Linux

1.0
open
nobody
None
2024-07-25
2022-03-25
No

Hello
I installed Offroad under Manjaro Linux from an official Manjaro source.
It fails to start, from reading the terminal output (see attached) it would seem that the installation failed to create the file "/home/rf/.OffRoad/offroad.properties".
Suggestions would be very welcome!
Thank you in advance.
Rudolf

1 Attachments

Related

Tickets: #21

Discussion

  • Michael Severin

    Michael Severin - 2022-04-06

    Same here :-(
    I would appreciate any help.

    Apr. 06, 2022 10:48:25 PM net.sourceforge.offroad.OsmWindow getAppPath
    INFORMATION: Searching for /home/mse/.OffRoad/offroad.properties
    java.io.FileNotFoundException: /home/mse/.OffRoad/offroad.properties (Datei oder Verzeichnis nicht gefunden)
        at java.base/java.io.FileInputStream.open0(Native Method)
        at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
        at net.sourceforge.offroad.OffRoadSettings.readDefaultPreferences(OffRoadSettings.java:125)
        at net.sourceforge.offroad.OffRoadSettings.<init>(OffRoadSettings.java:94)
        at net.sourceforge.offroad.OsmWindow.<init>(OsmWindow.java:232)
        at net.sourceforge.offroad.OsmWindow.getInstance(OsmWindow.java:1154)
        at net.sourceforge.offroad.OsmWindow.main(OsmWindow.java:866)
    Panic! Error while loading offroad properties.
    Apr. 06, 2022 10:48:25 PM net.sourceforge.offroad.OsmWindow getAppPath
    INFORMATION: Searching for /home/mse/.OffRoad/
    java.nio.file.NoSuchFileException: /home/mse/.OffRoad
    Create prefs for net.osmand.settings.default
    Create prefs for offroad
    WARNING: Found path as /res/values-de/strings.xml instead of res/values-de/strings.xml
    Apr. 06, 2022 10:48:25 PM net.sourceforge.offroad.OsmWindow loadStrings
    INFORMATION: Trying to load resources sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@319b92f3
    Apr. 06, 2022 10:48:25 PM com.sun.xml.bind.v2.runtime.reflect.opt.Injector <clinit>
    SCHWERWIEGEND: null
    java.security.PrivilegedActionException: java.lang.NoSuchMethodException: sun.misc.Unsafe.defineClass(java.lang.String,[B,int,int,java.lang.ClassLoader,java.security.ProtectionDomain)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:573)
        at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.<clinit>(Injector.java:197)
        at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:81)
        at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:179)
        at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:285)
        at com.sun.xml.bind.v2.runtime.property.ArrayProperty.<init>(ArrayProperty.java:68)
        at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.<init>(ArrayERProperty.java:88)
        at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.<init>(ArrayElementProperty.java:100)
        at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.<init>(ArrayElementNodeProperty.java:62)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
        at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:128)
        at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:181)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:514)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:331)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:139)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1156)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:165)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:289)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:217)
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:175)
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:353)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:508)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:465)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:366)
        at net.sourceforge.offroad.OsmWindow.loadStrings(OsmWindow.java:980)
        at net.sourceforge.offroad.OsmWindow.initStrings(OsmWindow.java:939)
        at net.sourceforge.offroad.OsmWindow.<init>(OsmWindow.java:890)
        at net.sourceforge.offroad.OsmWindow.getInstance(OsmWindow.java:1154)
        at net.sourceforge.offroad.OsmWindow.main(OsmWindow.java:866)
    Caused by: java.lang.NoSuchMethodException: sun.misc.Unsafe.defineClass(java.lang.String,[B,int,int,java.lang.ClassLoader,java.security.ProtectionDomain)
        at java.base/java.lang.Class.getMethod(Class.java:2227)
        at com.sun.xml.bind.v2.runtime.reflect.opt.Injector$3.run(Injector.java:201)
        at com.sun.xml.bind.v2.runtime.reflect.opt.Injector$3.run(Injector.java:197)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
        ... 36 more
    
    Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Method.invoke(Object, Object[])" because "com.sun.xml.bind.v2.runtime.reflect.opt.Injector.defineClass" is null
        at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:311)
        at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:97)
        at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:87)
        at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:179)
        at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:285)
        at com.sun.xml.bind.v2.runtime.property.ArrayProperty.<init>(ArrayProperty.java:68)
        at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.<init>(ArrayERProperty.java:88)
        at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.<init>(ArrayElementProperty.java:100)
        at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.<init>(ArrayElementNodeProperty.java:62)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
        at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:128)
        at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:181)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:514)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:331)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:139)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1156)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:165)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:289)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:217)
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:175)
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:353)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:508)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:465)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:366)
        at net.sourceforge.offroad.OsmWindow.loadStrings(OsmWindow.java:980)
        at net.sourceforge.offroad.OsmWindow.initStrings(OsmWindow.java:939)
        at net.sourceforge.offroad.OsmWindow.<init>(OsmWindow.java:890)
        at net.sourceforge.offroad.OsmWindow.getInstance(OsmWindow.java:1154)
        at net.sourceforge.offroad.OsmWindow.main(OsmWindow.java:866)
    
     

    Last edit: Michael Severin 2022-04-06
  • strubbl

    strubbl - 2022-04-27

    I have exactly the same issue with offroad 0.5-2 in Arch Linux.

     
  • Reimar Döffinger

    The 0.5 release is not compatible with Java 16 nor Java 17.
    0.6-beta3 is the first to mostly support them, but you might still need to delete your .OffRoad.
    I can make a newer beta or try to debug if you still have the issue with the 0.6 beta. And maybe it's time to just do a proper 0.6 release, but would appreciate people testing the betas before.
    I also attached the very latest version so you can try it out if it might be suitable for a 0.6 release.
    See these changes:

    commit cbf8dc0d0bc3b9f52bf245ef6dfe7f07900c36c2
    Author: Reimar Döffinger Reimar.Doeffinger@gmx.de
    Date: Fri Jan 14 11:37:29 2022 +0100

    Attempt to work around issue 20.
    
    Fails to start in Java 17 with latest version if there is a .OffRoad
    from a previous version.
    Seems to happen only specific cases though.
    

    commit 3c27a93674dc74e0746c37472c1ce4c41f94bff5
    Author: Reimar Döffinger Reimar.Doeffinger@gmx.de
    Date: Sun Aug 22 11:27:47 2021 +0200

    Update JAXB implementation to Jakarta.
    
    Fixes a java.security.PrivilegedActionException error with Java 16.
    Fixes ticket #15.
    
     
    • Rudolf Fischer

      Rudolf Fischer - 2022-06-11

      Hello Reimar
      thanks for dealing with the issue.
      However, the link you put into this mail leads nowhere.
      (Whoops, we can't find that page.)
      Thanks for fixing that.
      Rudolf

      Am 11.06.2022 um 12:20 schrieb "Reimar Döffinger":

      The 0.5 release is not compatible with Java 16 nor Java 17.
      0.6-beta3 is the first to mostly support them, but you might still need
      to delete your .OffRoad.
      I can make a newer beta or try to debug if you still have the issue with
      the 0.6 beta. And maybe it's time to just do a proper 0.6 release, but
      would appreciate people testing the betas before.
      I also attached the very latest version so you can try it out if it
      might be suitable for a 0.6 release.
      See these changes:

      commit cbf8dc0d0bc3b9f52bf245ef6dfe7f07900c36c2
      Author: Reimar Döffinger Reimar.Doeffinger@gmx.de
      Reimar.Doeffinger@gmx.de
      Date: Fri Jan 14 11:37:29 2022 +0100

      |Attempt to work around issue 20. Fails to start in Java 17 with latest
      version if there is a .OffRoad from a previous version. Seems to happen
      only specific cases though. |

      commit 3c27a93674dc74e0746c37472c1ce4c41f94bff5
      Author: Reimar Döffinger Reimar.Doeffinger@gmx.de
      Reimar.Doeffinger@gmx.de
      Date: Sun Aug 22 11:27:47 2021 +0200

      |Update JAXB implementation to Jakarta. Fixes a
      java.security.PrivilegedActionException error with Java 16. Fixes ticket

      15. |

      Attachments:


      [tickets:#21] https://sourceforge.net/p/offroadosm/tickets/21/
      Offroad fails to start under Manjaro Linux

      Status: open
      Milestone: 1.0
      Created: Fri Mar 25, 2022 08:41 PM UTC by Rudolf Fischer
      Last Updated: Wed Apr 27, 2022 06:20 PM UTC
      Owner: nobody
      Attachments:

      Hello
      I installed Offroad under Manjaro Linux from an official Manjaro source.
      It fails to start, from reading the terminal output (see attached) it
      would seem that the installation failed to create the file
      "/home/rf/.OffRoad/offroad.properties".
      Suggestions would be very welcome!
      Thank you in advance.
      Rudolf


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/offroadosm/tickets/21/
      https://sourceforge.net/p/offroadosm/tickets/21/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #21

  • Reimar Döffinger

    Yes, sorry, I made a mistake and the fixed file is too big to attach. I'm trying to upload it somewhere.

     
  • Reimar Döffinger

    Seems I lost permission to upload releases here in sourceforge.
    For the moment, I uploaded the test release here: http://svn.mplayerhq.hu/~reimar/OffRoad-0.6-release-test.zip
    But hopefully it gets fixed soon an I can make it available on sourceforge as well.

     
    • Rudolf Fischer

      Rudolf Fischer - 2022-06-11

      Hello Reimar
      thanks, this one works.
      I'll test this version.
      Rudolf

      Am 11.06.2022 um 13:03 schrieb "Reimar Döffinger":

      Seems I lost permission to upload releases here in sourceforge.
      For the moment, I uploaded the test release here:
      http://svn.mplayerhq.hu/~reimar/OffRoad-0.6-release-test.zip
      http://svn.mplayerhq.hu/~reimar/OffRoad-0.6-release-test.zip
      But hopefully it gets fixed soon an I can make it available on
      sourceforge as well.


      [tickets:#21] https://sourceforge.net/p/offroadosm/tickets/21/
      Offroad fails to start under Manjaro Linux

      Status: open
      Milestone: 1.0
      Created: Fri Mar 25, 2022 08:41 PM UTC by Rudolf Fischer
      Last Updated: Sat Jun 11, 2022 10:55 AM UTC
      Owner: nobody
      Attachments:

      Hello
      I installed Offroad under Manjaro Linux from an official Manjaro source.
      It fails to start, from reading the terminal output (see attached) it
      would seem that the installation failed to create the file
      "/home/rf/.OffRoad/offroad.properties".
      Suggestions would be very welcome!
      Thank you in advance.
      Rudolf


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/offroadosm/tickets/21/
      https://sourceforge.net/p/offroadosm/tickets/21/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #21

      • Rudolf Fischer

        Rudolf Fischer - 2022-06-11

        Hello Reimar
        I am relatively new to Linux and need instructions as to how I can run
        your zipped file under Linux.
        Thanks.
        Rudolf

        Am 11.06.2022 um 14:20 schrieb Rudolf Fischer:

        Hello Reimar
        thanks, this one works.
        I'll test this version.
        Rudolf

        Am 11.06.2022 um 13:03 schrieb "Reimar Döffinger":

        Seems I lost permission to upload releases here in sourceforge.
        For the moment, I uploaded the test release here:
        http://svn.mplayerhq.hu/~reimar/OffRoad-0.6-release-test.zip
        <http://svn.mplayerhq.hu/~reimar/OffRoad-0.6-release-test.zip>
        http://svn.mplayerhq.hu/~reimar/OffRoad-0.6-release-test.zip
        <http://svn.mplayerhq.hu/~reimar/OffRoad-0.6-release-test.zip>
        But hopefully it gets fixed soon an I can make it available on
        sourceforge as well.
        
        ------------------------------------------------------------------------
        
        /[tickets:#21] <https://sourceforge.net/p/offroadosm/tickets/21/>
        https://sourceforge.net/p/offroadosm/tickets/21/
        <https://sourceforge.net/p/offroadosm/tickets/21/>
        Offroad fails to start under Manjaro Linux/
        
        /Status:/ open
        /Milestone:/ 1.0
        /Created:/ Fri Mar 25, 2022 08:41 PM UTC by Rudolf Fischer
        /Last Updated:/ Sat Jun 11, 2022 10:55 AM UTC
        /Owner:/ nobody
        /Attachments:/
        
          * rudolf_offroad.txt
            https://sourceforge.net/p/offroadosm/tickets/21/attachment/rudolf_offroad.txt
            <https://sourceforge.net/p/offroadosm/tickets/21/attachment/rudolf_offroad.txt>
            (17.4 kB; text/plain)
        
        Hello
        I installed Offroad under Manjaro Linux from an official Manjaro source.
        It fails to start, from reading the terminal output (see attached) it
        would seem that the installation failed to create the file
        "/home/rf/.OffRoad/offroad.properties".
        Suggestions would be very welcome!
        Thank you in advance.
        Rudolf
        
        ------------------------------------------------------------------------
        
        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/offroadosm/tickets/21/
        <https://sourceforge.net/p/offroadosm/tickets/21/>
        https://sourceforge.net/p/offroadosm/tickets/21/
        <https://sourceforge.net/p/offroadosm/tickets/21/>
        
        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/
        <https://sourceforge.net/auth/subscriptions/>
        https://sourceforge.net/auth/subscriptions/
        <https://sourceforge.net/auth/subscriptions/>
        

        [tickets:#21] https://sourceforge.net/p/offroadosm/tickets/21/
        Offroad fails to start under Manjaro Linux

        Status: open
        Milestone: 1.0
        Created: Fri Mar 25, 2022 08:41 PM UTC by Rudolf Fischer
        Last Updated: Sat Jun 11, 2022 11:03 AM UTC
        Owner: nobody
        Attachments:

        Hello
        I installed Offroad under Manjaro Linux from an official Manjaro source.
        It fails to start, from reading the terminal output (see attached) it
        would seem that the installation failed to create the file
        "/home/rf/.OffRoad/offroad.properties".
        Suggestions would be very welcome!
        Thank you in advance.
        Rudolf


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/offroadosm/tickets/21/
        https://sourceforge.net/p/offroadosm/tickets/21/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Tickets: #21

        • Reimar Döffinger

          Huh? How did you run the 0.5 version? The zip file contains the same things and it should work the same way.
          In principle, just unpack and run
          java -jar OffRoad.jar

           
  • Marco

    Marco - 2024-07-25

    OffRoad-0.6-release-test still fails with the same error on OpenJDK 21 in Fedora.

     

Log in to post a comment.

MongoDB Logo MongoDB