Issue: When you inject some resources using @Inject, you may encounter following exception after app deployed. Exception: Caused by: org.jboss.weld.exceptions.DeploymentException:WELD-001408 Unsatisfied dependencies for type [SelectModelFactory] with…
项目中需要用到缓存,经过比较后,选择了redis,客户端使用jedis连接,也使用到了spring提供的spring-data-redis.配置正确后启动tomcat,发现如下异常: ============================================================================= Caused by: org.springframework.beans.factory.BeanCreationException: Error creati…
INFO - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@17c395e: defining beans [dataSource,sqlSessionFactory,userDetailsManager,transactionManager,org.springframework.security.authentication.event.LoggerL…
比如在XXXServiceImpl里面写了aa()方法给别的地方调用 但是自己又调用了自己 在开头写了 @Autowired Private XXX xxx; xxx.aa(); 这样重复调用自己的bean就发生错误…
参数传递          函数参数的传递是初始化语义:用调用者的实参去初始化函数的形参,如果参数是对象,需要调用该类的拷贝构造函数,如果没有显式定义的拷贝构造函数,则执行默认的按成员拷贝          返回值传递          函数返回值的传递内容稍多,示例代码: TestClass get_test_obj() { TestClass ret_obj(200): return ret_obj; } void user() { TestClass obj: obj = get_test…
官方参考:http://docs.jboss.org/weld/reference/latest/en-US/html/index.html https://antoniogoncalves.org/2011/04/07/injection-with-cdi-part-i/ After writing a post about how to bootstrap CDI in your environment and giving you some tips about how to incorp…
昨晚想实现一个功能,需要把一个对象存储于ViewState中去,但在运行时,出现下面的异常. Type 'Insus.NET.PictureObject' in Assembly 'App_Code, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable. Description: An unhandled exception occurred during the executi…
今天碰到一个问题,就是我现有项目需要加一个定时器任务,我的代码如下: <!-- 每日数据同步 总数监测任务******************begin --> <bean id="dataMonitorServiceImpl" class="com.netqin.function.dataMonitor.service.impl.DataMonitorServiceImpl"> </bean> <bean id="…
HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException: type Exception report message Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException: descriptio…
Exception handling in IL is a big let down. We expected a significant amount of complexity,but were proved wrong, right from the beginning. IL cannot be termed as a machine levelassembler. It actually has a number of directives like try and catch, th…