Buggy code:
@ MessageBundle ( projectCode = "JBAS" ) public interface JpaMessages { JpaMessages MESSAGES = Messages . getBundle ( JpaMessages . class ) ; @ Message ( id = 11420 , value = "Could<seq2seq4repair_space>not<seq2seq4repair_space>add<seq2seq4repair_space>%s<seq2seq4repair_space>integration<seq2seq4repair_space>module<seq2seq4repair_space>to<seq2seq4repair_space>deployment" ) RuntimeException cannotAddIntegration ( @ Cause Throwable cause , String name ) { } @ Message ( id = 11421 , value = "Cannot<seq2seq4repair_space>change<seq2seq4repair_space>input<seq2seq4repair_space>stream<seq2seq4repair_space>reference." ) IllegalArgumentException cannotChangeInputStream ( ) { } @ Message ( id = 11422 , value = "Container<seq2seq4repair_space>managed<seq2seq4repair_space>entity<seq2seq4repair_space>manager<seq2seq4repair_space>can<seq2seq4repair_space>only<seq2seq4repair_space>be<seq2seq4repair_space>closed<seq2seq4repair_space>by<seq2seq4repair_space>the<seq2seq4repair_space>container<seq2seq4repair_space>" + "(will<seq2seq4repair_space>happen<seq2seq4repair_space>when<seq2seq4repair_space>@remove<seq2seq4repair_space>method<seq2seq4repair_space>is<seq2seq4repair_space>invoked<seq2seq4repair_space>on<seq2seq4repair_space>containing<seq2seq4repair_space>SFSB)" ) IllegalStateException cannotCloseContainerManagedEntityManager ( ) { } @ Message ( id = 11423 , value = "Can<seq2seq4repair_space>only<seq2seq4repair_space>close<seq2seq4repair_space>SFSB<seq2seq4repair_space>XPC<seq2seq4repair_space>entity<seq2seq4repair_space>manager<seq2seq4repair_space>that<seq2seq4repair_space>are<seq2seq4repair_space>instances<seq2seq4repair_space>of<seq2seq4repair_space>ExtendedEntityManager<seq2seq4repair_space>%s" ) RuntimeException cannotCloseNonExtendedEntityManager ( String entityManagerTypeName ) { } @ Message ( id = 11424 , value = "Container<seq2seq4repair_space>managed<seq2seq4repair_space>entity<seq2seq4repair_space>manager<seq2seq4repair_space>can<seq2seq4repair_space>only<seq2seq4repair_space>be<seq2seq4repair_space>closed<seq2seq4repair_space>by<seq2seq4repair_space>the<seq2seq4repair_space>container<seq2seq4repair_space>" + "(auto-cleared<seq2seq4repair_space>at<seq2seq4repair_space>tx//invocation<seq2seq4repair_space>end<seq2seq4repair_space>and<seq2seq4repair_space>closed<seq2seq4repair_space>when<seq2seq4repair_space>owning<seq2seq4repair_space>component<seq2seq4repair_space>is<seq2seq4repair_space>closed.)" ) <START_BUG> IllegalArgumentException cannotCloseTransactionContainerEntityManger ( ) ; <END_BUG> @ Message ( id = 11425 , value = "Could<seq2seq4repair_space>not<seq2seq4repair_space>create<seq2seq4repair_space>instance<seq2seq4repair_space>of<seq2seq4repair_space>adapter<seq2seq4repair_space>class<seq2seq4repair_space>'%s'" ) DeploymentUnitProcessingException cannotCreateAdapter ( @ Cause Throwable cause , String className ) { } @ Message ( id = 11426 , value = "Could<seq2seq4repair_space>not<seq2seq4repair_space>deploy<seq2seq4repair_space>application<seq2seq4repair_space>packaged<seq2seq4repair_space>persistence<seq2seq4repair_space>provider<seq2seq4repair_space>'%s'" ) DeploymentUnitProcessingException cannotDeployApp ( @ Cause Throwable cause , String providerName ) { } @ Message ( id = 11427 , value = "Couldn't<seq2seq4repair_space>get<seq2seq4repair_space>Hibernate<seq2seq4repair_space>session<seq2seq4repair_space>factory<seq2seq4repair_space>from<seq2seq4repair_space>entity<seq2seq4repair_space>manager" ) RuntimeException cannotGetSessionFactory ( @ Cause Throwable cause ) { } @ Message ( id = 11428 , value = "Cannot<seq2seq4repair_space>inject<seq2seq4repair_space>RESOURCE_LOCAL<seq2seq4repair_space>container<seq2seq4repair_space>managed<seq2seq4repair_space>EntityManagers<seq2seq4repair_space>using<seq2seq4repair_space>@PersistenceContext" ) String cannotInjectResourceLocalEntityManager ( ) { } @ Message ( id = 11429 , value = "Cannot<seq2seq4repair_space>inject<seq2seq4repair_space>RESOURCE_LOCAL<seq2seq4repair_space>entity<seq2seq4repair_space>manager<seq2seq4repair_space>%s<seq2seq4repair_space>using<seq2seq4repair_space><persistence-context-ref>" ) DeploymentUnitProcessingException cannotInjectResourceLocalEntityManager ( String unitName ) { } @ Message ( id = 11430 , value = "Persistence<seq2seq4repair_space>provider<seq2seq4repair_space>adapter<seq2seq4repair_space>module<seq2seq4repair_space>(%s)<seq2seq4repair_space>load<seq2seq4repair_space>error<seq2seq4repair_space>(class<seq2seq4repair_space>%s)" ) DeploymentUnitProcessingException cannotLoadAdapterModule ( @ Cause Throwable cause , String adapterModule , String persistenceProviderClass ) { } @ Message ( id = 11431 , value = "Could<seq2seq4repair_space>not<seq2seq4repair_space>load<seq2seq4repair_space>entity<seq2seq4repair_space>class<seq2seq4repair_space>'%s'<seq2seq4repair_space>with<seq2seq4repair_space>PersistenceUnitInfo.getNewTempClassLoader()" ) RuntimeException cannotLoadEntityClass ( @ Cause Throwable cause , String className ) { } @ Message ( id = 11432 , value = "Couldn't<seq2seq4repair_space>load<seq2seq4repair_space>%s<seq2seq4repair_space>from<seq2seq4repair_space>JPA<seq2seq4repair_space>modules<seq2seq4repair_space>classloader" ) RuntimeException cannotLoadFromJpa ( @ Cause Throwable cause , String injectionTypeName ) { } @ Message ( id = 11433 , value = "Could<seq2seq4repair_space>not<seq2seq4repair_space>load<seq2seq4repair_space>module<seq2seq4repair_space>%s<seq2seq4repair_space>to<seq2seq4repair_space>add<seq2seq4repair_space>%s<seq2seq4repair_space>adapter<seq2seq4repair_space>to<seq2seq4repair_space>deployment" ) RuntimeException cannotLoadModule ( @ Cause Throwable cause , ModuleIdentifier moduleId , String name ) { } @ Message ( id = 11434 , value = "Persistence<seq2seq4repair_space>provider<seq2seq4repair_space>module<seq2seq4repair_space>load<seq2seq4repair_space>error<seq2seq4repair_space>%s<seq2seq4repair_space>(class<seq2seq4repair_space>%s)" ) DeploymentUnitProcessingException cannotLoadPersistenceProviderModule ( @ Cause Throwable cause , String persistenceProviderModule , String persistenceProviderClass ) { } @ Message ( id = 11435 , value = "Internal<seq2seq4repair_space>error:<seq2seq4repair_space>Cannot<seq2seq4repair_space>replace<seq2seq4repair_space>top<seq2seq4repair_space>of<seq2seq4repair_space>stack<seq2seq4repair_space>as<seq2seq4repair_space>stack<seq2seq4repair_space>is<seq2seq4repair_space>null<seq2seq4repair_space>(same<seq2seq4repair_space>as<seq2seq4repair_space>being<seq2seq4repair_space>empty)." ) RuntimeException cannotReplaceStack ( ) { } @ Message ( id = 11436 , value = "Cannot<seq2seq4repair_space>specify<seq2seq4repair_space>both<seq2seq4repair_space>%s<seq2seq4repair_space>(%s)<seq2seq4repair_space>and<seq2seq4repair_space>%s<seq2seq4repair_space>(%s)<seq2seq4repair_space>in<seq2seq4repair_space>%s<seq2seq4repair_space>for<seq2seq4repair_space>%s" ) DeploymentUnitProcessingException cannotSpecifyBoth ( String key1 , Object value1 , String key2 , Object value2 , String parentTag , Object object ) { } @ Message ( id = 11437 , value = "Found<seq2seq4repair_space>extended<seq2seq4repair_space>persistence<seq2seq4repair_space>context<seq2seq4repair_space>in<seq2seq4repair_space>SFSB<seq2seq4repair_space>invocation<seq2seq4repair_space>call<seq2seq4repair_space>stack<seq2seq4repair_space>but<seq2seq4repair_space>that<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>used<seq2seq4repair_space>" + ( ( ( "because<seq2seq4repair_space>the<seq2seq4repair_space>transaction<seq2seq4repair_space>already<seq2seq4repair_space>has<seq2seq4repair_space>a<seq2seq4repair_space>transactional<seq2seq4repair_space>context<seq2seq4repair_space>associated<seq2seq4repair_space>with<seq2seq4repair_space>it.<seq2seq4repair_space>" + "This<seq2seq4repair_space>can<seq2seq4repair_space>be<seq2seq4repair_space>avoided<seq2seq4repair_space>by<seq2seq4repair_space>changing<seq2seq4repair_space>application<seq2seq4repair_space>code,<seq2seq4repair_space>either<seq2seq4repair_space>eliminate<seq2seq4repair_space>the<seq2seq4repair_space>extended<seq2seq4repair_space>" ) + "persistence<seq2seq4repair_space>context<seq2seq4repair_space>or<seq2seq4repair_space>the<seq2seq4repair_space>transactional<seq2seq4repair_space>context.<seq2seq4repair_space>See<seq2seq4repair_space>JPA<seq2seq4repair_space>spec<seq2seq4repair_space>2.0<seq2seq4repair_space>section<seq2seq4repair_space>7.6.3.1.<seq2seq4repair_space>" ) + "Scoped<seq2seq4repair_space>persistence<seq2seq4repair_space>unit<seq2seq4repair_space>name=%s,<seq2seq4repair_space>persistence<seq2seq4repair_space>context<seq2seq4repair_space>already<seq2seq4repair_space>in<seq2seq4repair_space>transaction<seq2seq4repair_space>=%s,<seq2seq4repair_space>extended<seq2seq4repair_space>persistence<seq2seq4repair_space>context<seq2seq4repair_space>=%s" ) ) EJBException cannotUseExtendedPersistenceTransaction ( String puScopedName , EntityManager existingEntityManager , EntityManager self ) { } @ Message ( id = 11438 , value = "Could<seq2seq4repair_space>not<seq2seq4repair_space>find<seq2seq4repair_space>child<seq2seq4repair_space>'%s'<seq2seq4repair_space>on<seq2seq4repair_space>'%s'" ) RuntimeException childNotFound ( String child , VirtualFile parent ) { } @ Message ( id = 11439 , value = "Class<seq2seq4repair_space>level<seq2seq4repair_space>%s<seq2seq4repair_space>annotations<seq2seq4repair_space>must<seq2seq4repair_space>provide<seq2seq4repair_space>a<seq2seq4repair_space>%s." ) IllegalArgumentException classLevelAnnotationParameterRequired ( String annotation , String parameter ) { } @ Message ( id = 11440 , value = "Can't<seq2seq4repair_space>find<seq2seq4repair_space>a<seq2seq4repair_space>deployment<seq2seq4repair_space>unit<seq2seq4repair_space>named<seq2seq4repair_space>%s<seq2seq4repair_space>at<seq2seq4repair_space>%s" ) String deploymentUnitNotFound ( String puName , DeploymentUnit deploymentUnit ) { } @ Message ( id = 11441 , value = "Can't<seq2seq4repair_space>find<seq2seq4repair_space>a<seq2seq4repair_space>deployment<seq2seq4repair_space>unit<seq2seq4repair_space>named<seq2seq4repair_space>%s#%s<seq2seq4repair_space>at<seq2seq4repair_space>%s" ) IllegalArgumentException deploymentUnitNotFound ( String path , String puName , DeploymentUnit deploymentUnit ) { } @ Message ( id = 11442 , value = "Parameter<seq2seq4repair_space>%s<seq2seq4repair_space>is<seq2seq4repair_space>empty" ) IllegalArgumentException emptyParameter ( String parameterName ) { } @ Message ( id = 11443 , value = "An<seq2seq4repair_space>error<seq2seq4repair_space>occurred<seq2seq4repair_space>while<seq2seq4repair_space>getting<seq2seq4repair_space>the<seq2seq4repair_space>transaction<seq2seq4repair_space>associated<seq2seq4repair_space>with<seq2seq4repair_space>the<seq2seq4repair_space>current<seq2seq4repair_space>thread:<seq2seq4repair_space>%s" ) IllegalStateException errorGettingTransaction ( Exception cause ) { } @ Message ( id = 11445 , value = "Failed<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>adapter<seq2seq4repair_space>for<seq2seq4repair_space>persistence<seq2seq4repair_space>provider<seq2seq4repair_space>'%s'" ) DeploymentUnitProcessingException failedToGetAdapter ( String className ) { } @ Message ( id = 11446 , value = "Failed<seq2seq4repair_space>to<seq2seq4repair_space>add<seq2seq4repair_space>persistence<seq2seq4repair_space>unit<seq2seq4repair_space>service<seq2seq4repair_space>for<seq2seq4repair_space>%s" ) DeploymentUnitProcessingException failedToAddPersistenceUnit ( @ Cause Throwable cause , String puName ) { } @ Message ( id = 11447 , value = "Failed<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>module<seq2seq4repair_space>attachment<seq2seq4repair_space>for<seq2seq4repair_space>%s" ) DeploymentUnitProcessingException failedToGetModuleAttachment ( DeploymentUnit deploymentUnit ) { } @ Message ( id = 11448 , value = "Failed<seq2seq4repair_space>to<seq2seq4repair_space>parse<seq2seq4repair_space>%s" ) String failedToParse ( VirtualFile file ) { } @ Message ( id = 11449 , value = "Can<seq2seq4repair_space>only<seq2seq4repair_space>inject<seq2seq4repair_space>from<seq2seq4repair_space>a<seq2seq4repair_space>Hibernate<seq2seq4repair_space>EntityManagerFactoryImpl" ) RuntimeException hibernateOnlyEntityManagerFactory ( ) { } @ Message ( id = 11450 , value = "%s<seq2seq4repair_space>used<seq2seq4repair_space>incorrect<seq2seq4repair_space>persistence<seq2seq4repair_space>provider<seq2seq4repair_space>class<seq2seq4repair_space>name.<seq2seq4repair_space>Module<seq2seq4repair_space>=<seq2seq4repair_space>%s,<seq2seq4repair_space>persistenceProvider<seq2seq4repair_space>specified<seq2seq4repair_space>=<seq2seq4repair_space>%s,<seq2seq4repair_space>providers<seq2seq4repair_space>found<seq2seq4repair_space>=<seq2seq4repair_space>{%s}" ) DeploymentUnitProcessingException incorrectPersistenceProvider ( String puName , String persistenceProviderModule , String persistenceProviderClassName , Collection < ? > providerClasses ) { } @ Message ( id = 11451 , value = "Persistence<seq2seq4repair_space>unit<seq2seq4repair_space>name<seq2seq4repair_space>(%s)<seq2seq4repair_space>contains<seq2seq4repair_space>illegal<seq2seq4repair_space>'%s'<seq2seq4repair_space>character" ) IllegalArgumentException invalidPersistenceUnitName ( String persistenceUnitName , char c ) { } @ Message ( id = 11452 , value = "Scoped<seq2seq4repair_space>persistence<seq2seq4repair_space>name<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>\"%s\"<seq2seq4repair_space>but<seq2seq4repair_space>was<seq2seq4repair_space>%s" ) RuntimeException invalidScopeName ( String validName , String name ) { } @ Message ( id = 11453 , value = "Could<seq2seq4repair_space>not<seq2seq4repair_space>add<seq2seq4repair_space>%s<seq2seq4repair_space>integration<seq2seq4repair_space>module<seq2seq4repair_space>to<seq2seq4repair_space>deployment,<seq2seq4repair_space>did<seq2seq4repair_space>not<seq2seq4repair_space>get<seq2seq4repair_space>expected<seq2seq4repair_space>JarUrlConnection,<seq2seq4repair_space>got<seq2seq4repair_space>%s" ) RuntimeException invalidUrlConnection ( String integrationName , URLConnection connection ) { } @ Message ( id = 11454 , value = "Support<seq2seq4repair_space>for<seq2seq4repair_space>persistence-unit-ref<seq2seq4repair_space>without<seq2seq4repair_space>a<seq2seq4repair_space>lookup<seq2seq4repair_space>or<seq2seq4repair_space>persistence-unit-name,<seq2seq4repair_space>isn't<seq2seq4repair_space>yet<seq2seq4repair_space>implemented" ) RuntimeException lookupOrPersistenceUnitNameRequired ( ) { } @ Message ( id = 11455 , value = "Missing<seq2seq4repair_space>PersistenceUnitMetadata<seq2seq4repair_space>(thread<seq2seq4repair_space>local<seq2seq4repair_space>wasn't<seq2seq4repair_space>set)" ) RuntimeException missingPersistenceUnitMetadata ( ) { } @ Message ( id = 11456 , value = "Persistence<seq2seq4repair_space>provider<seq2seq4repair_space>adapter<seq2seq4repair_space>module<seq2seq4repair_space>(%s)<seq2seq4repair_space>has<seq2seq4repair_space>more<seq2seq4repair_space>than<seq2seq4repair_space>one<seq2seq4repair_space>adapter" ) DeploymentUnitProcessingException multipleAdapters ( String adapterModule ) { } @ Message ( id = 11457 , value = "More<seq2seq4repair_space>than<seq2seq4repair_space>one<seq2seq4repair_space>thread<seq2seq4repair_space>is<seq2seq4repair_space>invoking<seq2seq4repair_space>stateful<seq2seq4repair_space>session<seq2seq4repair_space>bean<seq2seq4repair_space>'%s'<seq2seq4repair_space>at<seq2seq4repair_space>the<seq2seq4repair_space>same<seq2seq4repair_space>time." ) RuntimeException multipleThreadsInvokingSfsb ( Object sessionBean ) { } @ Message ( id = 11458 , value = "More<seq2seq4repair_space>than<seq2seq4repair_space>one<seq2seq4repair_space>thread<seq2seq4repair_space>is<seq2seq4repair_space>using<seq2seq4repair_space>EntityManager<seq2seq4repair_space>instance<seq2seq4repair_space>'%s'<seq2seq4repair_space>at<seq2seq4repair_space>the<seq2seq4repair_space>same<seq2seq4repair_space>time." ) RuntimeException multipleThreadsUsingEntityManager ( EntityManager entityManager ) { } @ Message ( id = 11459 , value = "%s<seq2seq4repair_space>not<seq2seq4repair_space>set<seq2seq4repair_space>in<seq2seq4repair_space>InterceptorContext:<seq2seq4repair_space>%s" ) IllegalArgumentException notSetInInterceptorContext ( String name , InterceptorContext context ) { } @ Message ( id = 11460 , value = "Not<seq2seq4repair_space>yet<seq2seq4repair_space>implemented" ) RuntimeException notYetImplemented ( ) { } @ Message ( id = 11461 , value = "Internal<seq2seq4repair_space>%s<seq2seq4repair_space>error,<seq2seq4repair_space>null<seq2seq4repair_space>%s<seq2seq4repair_space>passed<seq2seq4repair_space>in" ) RuntimeException nullParameter ( String description , String parameterName ) { } @ Message ( id = 11462 , value = "Parameter<seq2seq4repair_space>%s<seq2seq4repair_space>is<seq2seq4repair_space>null" ) IllegalArgumentException nullVar ( String varName ) { } @ Message ( id = 11463 , value = "Previous<seq2seq4repair_space>object<seq2seq4repair_space>for<seq2seq4repair_space>class<seq2seq4repair_space>%s<seq2seq4repair_space>is<seq2seq4repair_space>%s<seq2seq4repair_space>instead<seq2seq4repair_space>of<seq2seq4repair_space>null" ) String objectAlreadyDefined ( Class < ? > cls , Object previous ) { } @ Message ( id = 11464 , value = "Only<seq2seq4repair_space>one<seq2seq4repair_space>persistence<seq2seq4repair_space>provider<seq2seq4repair_space>can<seq2seq4repair_space>be<seq2seq4repair_space>packaged<seq2seq4repair_space>with<seq2seq4repair_space>an<seq2seq4repair_space>application:<seq2seq4repair_space>%s" ) DeploymentUnitProcessingException onlyOnePersistenceProviderAllowed ( Collection < ? > providers ) { }

Fix:
IllegalStateException cannotCloseTransactionContainerEntityManger ( ) ;