Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pathing error after XMI import from StarUML #5

Open
jamesrwelch opened this issue Apr 19, 2023 · 1 comment
Open

Pathing error after XMI import from StarUML #5

jamesrwelch opened this issue Apr 19, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jamesrwelch
Copy link
Contributor

Error on expanding the tree - incorrect pathing built.

Server Error

We're sorry, but the server responded with an error message.

Details

{
  "headers": {
    "normalizedNames": {},
    "lazyUpdate": null
  },
  "status": 500,
  "statusText": "OK",
  "url": "http://localhost:8080/api/tree/folders/dataModels/a94210e3-4a2c-493d-8be8-186a1c88fd9e",
  "ok": false,
  "name": "HttpErrorResponse",
  "message": "Http failure response for http://localhost:8080/api/tree/folders/dataModels/a94210e3-4a2c-493d-8be8-186a1c88fd9e: 500 OK",
  "error": {
    "status": 500,
    "reason": "Internal Server Error",
    "errorCode": "PSXX",
    "message": "No domain found for path node [dc:Delete - CODED_TEXT] in path [dm:RootModel$main|dc:Delete - CODED_TEXT]",
    "path": "/api/tree/folders/dataModels/a94210e3-4a2c-493d-8be8-186a1c88fd9e",
    "environment": "DEVELOPMENT",
    "version": "5.4.0-SNAPSHOT",
    "exception": {
      "type": "ApiInternalException",
      "message": "No domain found for path node [dc:Delete - CODED_TEXT] in path [dm:RootModel$main|dc:Delete - CODED_TEXT]",
      "stacktrace": [
        "jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)",
        "jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)",
        "uk.ac.ox.softeng.maurodatamapper.core.path.PathService$__tt__findAllResourceIdsInPath_closure17.doCall(PathService.groovy:190)",
        "jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
        "uk.ac.ox.softeng.maurodatamapper.path.Path.each(Path.groovy:129)",
        "uk.ac.ox.softeng.maurodatamapper.core.path.PathService.$tt__findAllResourceIdsInPath(PathService.groovy:186)",
        "jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
        "jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
        "grails.gorm.transactions.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:94)",
        "org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)",
        "grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:91)",
        "uk.ac.ox.softeng.maurodatamapper.core.tree.TreeItemService.contextualiseTreeItem(TreeItemService.groovy:908)",
        "uk.ac.ox.softeng.maurodatamapper.core.tree.TreeItemService.$tt__createModelItemTreeItem(TreeItemService.groovy:883)",
        "jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
        "jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
        "grails.gorm.transactions.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:94)",
        "org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)",
        "grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:91)",
        "uk.ac.ox.softeng.maurodatamapper.core.tree.TreeItemService$__tt__buildCatalogueItemTree_closure73.doCall(TreeItemService.groovy:327)",
        "uk.ac.ox.softeng.maurodatamapper.core.tree.TreeItemService.$tt__buildCatalogueItemTree(TreeItemService.groovy:317)",
        "jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)",
        "jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
        "jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)",
        "jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
        "grails.gorm.transactions.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:94)",
        "org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)",
        "grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:91)",
        "uk.ac.ox.softeng.maurodatamapper.core.tree.TreeItemController.show(TreeItemController.groovy:77)",
        "jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)",
        "jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
        "org.grails.core.DefaultGrailsControllerClass$ReflectionInvoker.invoke(DefaultGrailsControllerClass.java:211)",
        "org.grails.core.DefaultGrailsControllerClass.invoke(DefaultGrailsControllerClass.java:188)",
        "org.grails.web.mapping.mvc.UrlMappingsInfoHandlerAdapter.handle(UrlMappingsInfoHandlerAdapter.groovy:90)",
        "org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)",
        "org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)",
        "org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)",
        "org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)",
        "org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)",
        "org.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:77)",
        "org.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:67)",
        "java.lang.Thread.run(Thread.java:833)"
      ]
    }
  }
}
@jamesrwelch jamesrwelch self-assigned this Apr 19, 2023
@jamesrwelch jamesrwelch added the bug Something isn't working label Apr 19, 2023
@jamesrwelch
Copy link
Contributor Author

This is to do with character escaping - the original class has a name with spaces encoded as %20. These are left as-is in the class name, but escaped in the encoding of the path, so causing a mismatch. Simplest solution is to unescape these on import.

jamesrwelch added a commit that referenced this issue Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant