About injection

21-30 of 48Refresh
Forum
5

Database is erased after deploying a new web application version

.inject.Injections.getOrCreate(Injections.java:169) at org.glassfish.jersey.server.model ... .java:653) at org.glassfish.jersey.internal.inject.Injections.getOrCreate(Injections.java:169
Forum
5

Entity factory

via dependency injection like: @Entiy public class User { private final UserService userService;     @Inject private User(UserService userService) { this.userService ... without the possibility to inject dependencies (at least without using static variables which are very bad code
Forum
4

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

class GuestDao {     // Injected database connection: @PersistenceContext(unitName = "guest-pu ... {     // Injected database connection:     @PersistenceContext private EntityManager em;     // Stores ... (TransactionAttributeType.REQUIRED) public class GuestDao {     // Injected database connection
Forum
4

Null enums and IS (NOT) NULL: NullPointerException

:606) at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:89) at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:73) at org.jboss.weld.injection.producer
Forum
4

A lot of ENT and SIV instances which are not cleared by GC

.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:89) at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.preDestroy(DefaultLifecycleCallbackInvoker.java:82) at org.jboss.weld.injection.producer.BasicInjectionTarget
Forum
3

Cannot save or update entity on Spring App

@Component @Transactional public class LanguageRepository { // Injected database connection ... { // Injected database connection: @PersistenceUnit(unitName="pu") EntityManagerFactory ... DefaultRepository{ // Injected database connection: @PersistenceContext private EntityManager em
Forum
3

Problem undeploying Glassfish3.1.1 web application cleanly

EntityManager injection, using the undeploy feature under the Glassfish server node  of Netbeans7.1 ... (which also uses @PersistenceContext EntityManager injection)? > Is it possible to get this exception ... injection)? Could not build GuestBook example from Maven, but I could create a new Netbeans web application
Forum
3

Not Enhanced: ...: com.objectdb.o.TEX: Type ..._$$_javassist_1 is not found

through @Inject. Both are not entities or anything related to ObjectDB. AuthB is used in a JSF page for login. UserSessionB contains @Inject UserC, which is @Stateless for dealing with CRUD operations on User
Forum
3

Spring Data JPA - PersistenceException thrown

.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at org.springframework
Forum
3

Type ... is not defined as an entity (@Entity is missing) (error 302)

is shown below: package com.epimss.lab.data.bacti import groovy.beans.Bindable import javax.inject.Inject import com.epimss.lab.data.misc.OtherRqst import com.epimss.lab.data.misc