Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-1480

"The filename or extension is too long" Error When DataNucleus Enhancer is Run Within STS

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.5.2.RELEASE
    • Fix Version/s: 2.6.0.RC1
    • Component/s: INTEGRATION
    • Environment:
      64-bit STS 2.5.2
      Java 1.6.0_22
      64-bit Windows 7 Operating System
      HW: Intel Core i5 M460

      Description

      The project has been generated using a roo script with the following database settings:

      persistence setup --provider DATANUCLEUS --database GOOGLE_APP_ENGINE --applicationId myprojectxyz001

      ..and the following post-domain object declaration options:

      gwt setup
      logging setup --level INFO

      After the project files are generated 'mvn gwt:run' is run from the command line successfully with the following warnings:

      [WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
      [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
      [WARNING] advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch]

      ..and the following errors:

      [ERROR] 2011-01-14 16:59:35.333:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
      [ERROR] 2011-01-14 16:59:35.632:INFO::jetty-6.1.x
      ...
      [ERROR] 2011-01-14 16:59:45.739:INFO::Started [email protected]:8888

      DataNucleus Enhancer seems to do its job when run in command line via mvn:

      ENHANCED (PersistenceCapable) : com.myproject.server.domain.DomainObject1
      ENHANCED (PersistenceCapable) : com.myproject.server.domain.DomainObject2
      ENHANCED (PersistenceCapable) : com.myproject.server.domain.DomainObject3
      ENHANCED (PersistenceCapable) : com.myproject.server.domain.DomainObject4
      ENHANCED (PersistenceCapable) : com.myproject.server.domain.DomainObject5
      ENHANCED (PersistenceCapable) : com.myproject.server.domain.DomainObject6

      When the generated project is loaded into STS, the following error is logged:

      DataNucleus Enhancer Error
      Cannot run program "C:\CLP\glassfishv3\jdk\bin\javaw.exe" (in directory "C:\CLP\spring\spring-roo-1.1.1.RELEASE\project\MyProjectXYZ001"): CreateProcess error=206, The filename or extension is too long

        Activity

        Hide
        freddy96 freddy96 added a comment -

        Try " Long Path Tool " is also useful in situations where you see these error messages:
        Cannot read from source file or disk, there has been a sharing violation,
        cannot delete file or folder, the file name you specified is not valid or too long,
        the source or destination file may be in use and many other file managing errors that you encounter in your computing use.

        Show
        freddy96 freddy96 added a comment - Try " Long Path Tool " is also useful in situations where you see these error messages: Cannot read from source file or disk, there has been a sharing violation, cannot delete file or folder, the file name you specified is not valid or too long, the source or destination file may be in use and many other file managing errors that you encounter in your computing use.
        Hide
        eden david added a comment -

        Use Long Path Tool, Long Path Tool can simplify and probably end your problems in unlocking, managing and renaming files that appear to have a long filename.

        Show
        eden david added a comment - Use Long Path Tool, Long Path Tool can simplify and probably end your problems in unlocking, managing and renaming files that appear to have a long filename.
        Hide
        eden david added a comment -

        Use Long Path Tool, Long Path Tool can simplify and probably end your problems in unlocking, managing and renaming files that appear to have a long filename.

        Show
        eden david added a comment - Use Long Path Tool, Long Path Tool can simplify and probably end your problems in unlocking, managing and renaming files that appear to have a long filename.
        Hide
        aiden carter aiden carter added a comment -

        The Long path tool is the very best program for error, unlock solution.
        Try it and solved your problem.
        I used the long path tool and I solved my error, unlocks problem solution.

        Show
        aiden carter aiden carter added a comment - The Long path tool is the very best program for error, unlock solution. Try it and solved your problem. I used the long path tool and I solved my error, unlocks problem solution.
        Hide
        mlippert Martin Lippert added a comment -

        We moved issue tracking for this project to https://github.com/spring-projects/spring-ide.
        If you would like to comment on or re-open this issue, please file a new issue at GitHub and refer to this one.

        Show
        mlippert Martin Lippert added a comment - We moved issue tracking for this project to https://github.com/spring-projects/spring-ide . If you would like to comment on or re-open this issue, please file a new issue at GitHub and refer to this one.

          People

          • Assignee:
            ldossantos Leo Dos Santos (c) [X]
            Reporter:
            coner Cengiz Öner
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 2.5d
              2.5d
              Remaining:
              Remaining Estimate - 2.5d
              2.5d
              Logged:
              Time Spent - Not Specified
              Not Specified