Skip to content

SBM tool - migrate-stateless-ejb isssue #837

@L-G-v1

Description

@L-G-v1

Describe the bug
Running the migrate-stateless-ejb from the terminal in Windows/Linux, is making SBM to throw this error:
ERROR o.s.sbm.java.impl.OpenRewriteMember - Could not get Type for annotation: 'EJB' while comparing with 'javax.inject.Inject'.

SBM Version
0.11 and 0.11.1 , since the application is using Java 11 and not Java 17

SBM Application
Shell

To Reproduce
Steps to reproduce the behavior:

  1. Run SBM shell.
  2. Run scan on the project
  3. Run: apply migrate-stateless-ejb
  4. See error that looks like: ERROR o.s.sbm.java.impl.OpenRewriteMember - Could not get Type for annotation: 'EJB' while comparing with 'javax.inject.Inject'.

Expected behavior
I've would expect for all the @ejb to be migrated to @Autowired

Screenshots
sbm_error

Stacktrace
There isn't any stacktrace, except the error that appears in the terminal:
ERROR o.s.sbm.java.impl.OpenRewriteMember - Could not get Type for annotation: 'EJB' while comparing with 'javax.inject.Inject'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions