Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-593

SY Eclipse tools cannot create test classes using Eclipse 3.6

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 0.3
    • Fix Version/s: 0.4
    • Component/s: None
    • Labels:
      None

      Description

      The test file is blank and there is an exception in the Eclipse log. This is caused by the AST language level used to create the source parser, used to add the methods. The level used is only supported in Eclipse 3.7.1.

      The typical error in the Eclipse log:

      eclipse.buildId=M20110210-1200
      java.version=1.6.0_27
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
      Framework arguments: -product org.eclipse.epp.package.jee.product
      Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product

      Error
      Mon Dec 19 09:44:16 MST 2011
      Error creating bean service class.

      java.lang.IllegalArgumentException
      at org.eclipse.jdt.core.dom.ASTParser.<init>(ASTParser.java:222)
      at org.eclipse.jdt.core.dom.ASTParser.newParser(ASTParser.java:125)
      at org.eclipse.jdt.internal.corext.refactoring.util.RefactoringASTParser.<init>(RefactoringASTParser.java:40)
      at org.switchyard.tools.ui.wizards.NewServiceTestClassWizardPage.resolveServiceType(NewServiceTestClassWizardPage.java:298)
      at org.switchyard.tools.ui.wizards.NewServiceTestClassWizardPage.createTypeMembers(NewServiceTestClassWizardPage.java:262)
      at org.eclipse.jdt.ui.wizards.NewTypeWizardPage.createType(NewTypeWizardPage.java:2068)
      at org.switchyard.tools.ui.operations.CreateBeanServiceOperation.execute(CreateBeanServiceOperation.java:88)
      at org.switchyard.tools.ui.operations.AbstractSwitchYardProjectOperation.run(AbstractSwitchYardProjectOperation.java:100)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1957)
      at org.switchyard.tools.ui.wizards.NewBeanServiceWizard$1.run(NewBeanServiceWizard.java:91)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rcernich Rob Cernich
                Reporter:
                rcernich Rob Cernich
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: