java.lang.Error: Unresolved compilation problems: Access restriction: The type AbsentInformationException is not accessible due to restriction on required project org.eclipse.xtext.idea

GitHub | tommyettinger | 4 months ago
  1. 0

    Xtext IDEA plugin prevents breakpoint debugging in all projects while enabled

    GitHub | 4 months ago | tommyettinger
    java.lang.Error: Unresolved compilation problems: Access restriction: The type AbsentInformationException is not accessible due to restriction on required project org.eclipse.xtext.idea
  2. 0

    Trouble by generating a table in a tabbledpane JAVA

    Stack Overflow | 11 months ago | Freelancef
    java.lang.Error: Unresolved compilation problems: Access restriction: The type JFrame is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JLabel is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JPanel is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JTabbedPane is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JButton is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JTextField is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JComboBox<E> is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type BorderFactory is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JScrollPane is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JTextArea is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type UIManager is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JTable is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JOptionPane is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JFrame is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JTabbedPane is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The constructor JTabbedPane() is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JTabbedPane is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The method getContentPane() from the type JFrame is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JPanel is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The constructor JPanel() is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JPanel is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JPanel is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The constructor JPanel() is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JPanel is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JPanel is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The constructor JPanel() is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JPanel is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The method setBorder(Border) from the type JComponent is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type BorderFactory is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The method createEmptyBorder(int, int, int, int) from the type BorderFactory is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JTextField is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The constructor JTextField(int) is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JTextField is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JTextField is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The constructor JTextField(int) is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JTextField is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JComboBox<E> is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The constructor JComboBox() is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JComboBox<E> is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The method setPreferredSize(Dimension) from the type JComponent is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The method addItem(Object) from the type JComboBox is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The method addItem(Object) from the type JComboBox is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The method addItem(Object) from the type JComboBox is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The method addItem(Object) from the type JComboBox is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JTextArea is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The constructor JTextArea(String, int, int) is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JTextArea is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JPanel is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The constructor JPanel(LayoutManager) is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JPanel is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The constructor JLabel(String) is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JLabel is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The constructor JLabel(String) is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JLabel is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The constructor JLabel(String) is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JLabel is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The constructor JLabel(String) is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JLabel is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The constructor JLabel(String) is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JLabel is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JButton is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The constructor JButton(String) is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JButton is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The method addTab(String, Component) from the type JTabbedPane is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The method addTab(String, Component) from the type JTabbedPane is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The method addTab(String, Component) from the type JTabbedPane is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JButton is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The constructor JButton(String) is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JButton is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar topPanel cannot be resolved to a variable Access restriction: The constructor JPanel() is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JPanel is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar topPanel cannot be resolved Access restriction: The method getContentPane() from the type JFrame is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar topPanel cannot be resolved to a variable table cannot be resolved to a variable Access restriction: The constructor JTable(Object[][], Object[]) is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JTable is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar scrollPane cannot be resolved to a variable Access restriction: The type JScrollPane is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar table cannot be resolved to a variable topPanel cannot be resolved scrollPane cannot be resolved to a variable Access restriction: The method addActionListener(ActionListener) from the type AbstractButton is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JOptionPane is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The method showMessageDialog(Component, Object, String, int) from the type JOptionPane is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The type JOptionPane is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar Access restriction: The field INFORMATION_MESSAGE from the type JOptionPane is not accessible due to restriction on required library /opt/java/32/jre1.8.0_45/lib/rt.jar
  3. 0

    Can´t use JFrame in Eclipse for mac

    Stack Overflow | 1 year ago | Clabra
    java.lang.Error: Unresolved compilation problems: Access restriction: The type JFrame is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Access restriction: The constructor JFrame(String) is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Access restriction: The method setDefaultCloseOperation(int) from the type JFrame is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Access restriction: The type JFrame is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Access restriction: The field EXIT_ON_CLOSE from the type JFrame is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Access restriction: The method getContentPane() from the type JFrame is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Access restriction: The type JLabel is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Access restriction: The constructor JLabel(String) is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Access restriction: The type JLabel is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar textLabel cannot be resolved Access restriction: The type JLabel is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Jlabel cannot be resolved to a type Access restriction: The type JTextField is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Access restriction: The constructor JTextField(String, int) is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Access restriction: The type JTextField is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Access restriction: The type JTextArea is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Access restriction: The constructor JTextArea(String, int, int) is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Access restriction: The type JTextArea is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Access restriction: The type JButton is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Access restriction: The constructor JButton(String) is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar Access restriction: The type JButton is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar pintlessButton cannot be resolved
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I am using only the 3rd party bundles from the revision 6343, spring-osgi-core, spring-osgi-extender, io and mock are from revision 6170. (I've got compilation errors on the new version)... anyway: The thing is that I've got a lot of class not found errors when I try to use hibernate3 and spring-hibernate3. Bundle H is the actual hibernate bundle, which exports all the org.hibernate packages... Bundle A has .hbm.xml, has DAO's and is using springs HibernateTemplate by extending the class HibernateDaoSupport. Actually I just need to import org.springframework.orm.hibernate3.support package to A, but I needed some more: org.springframework.core, org.springframework.orm.hibernate3, org.springframework.beans.factory, org.springframework.dao.support.DaoSupport, org.hibernate.proxy, This are lots of unneccessary imports for my own bundle, it seems that a lot of them are requiered indirectly by other parts of spring(-osgi)... please double check that, because a plug-in developer for my own application, which wants to use some of my DAO's in its own bundle doesn't really want to import some stuff he doesn't know about.... he just wants to import packages that he/she is using directly.... The spring-hibernate3 bundle needed also some more imports from the actual hibernate3 bundle: org.hibernate.exception, org.hibernate.loader.custom, org.hibernate.engine.query.sql, package org.hibernate.collection spring-hibernate3 bundle seems to be incomplete... a good solution would be to import all real hibernate3 packages... please double check that, too. The above description is just a summary of my protocal I wrote besides I resolved the errors. Here it is (from top to the bottom): --- Invocation of init method failed; nested exception is net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null .... Caused by: java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) Solution: Adding the package org.hibernate.proxy to my own bundle, where the DAO's are present. This shouldn't be the case, because I just want to import packages that I directly use. --- java.lang.NoClassDefFoundError: org/hibernate/exception/GenericJDBCException Caused by: java.lang.NoClassDefFoundError: org/hibernate/exception/GenericJDBCException at org.springframework.orm.hibernate3.LocalSessionFactoryBean.updateDatabaseSchema(LocalSessionFactoryBean.java:940) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterSessionFactoryCreation(LocalSessionFactoryBean.java:833) ... Solution: Adding to the imports of spring-hibernate3 manifest the package org.hibernate.exception --- java.lang.NoClassDefFoundError: org.hibernate.loader.custom.CustomQuery Caused by: java.lang.NoClassDefFoundError: org.hibernate.loader.custom.CustomQuery at $Proxy1.<clinit>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) ... Solution: Adding to the imports of spring-hibernate3 manifest the package org.hibernate.loader.custom --- java.lang.NoClassDefFoundError: org.hibernate.engine.query.sql.NativeSQLQuerySpecification Caused by: java.lang.NoClassDefFoundError: org.hibernate.engine.query.sql.NativeSQLQuerySpecification at $Proxy1.<clinit>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ... Solution: Adding to the imports of spring-hibernate3 manifest the package org.hibernate.engine.query.sql --- java.lang.NoClassDefFoundError: org.hibernate.collection.PersistentCollection Caused by: java.lang.NoClassDefFoundError: org.hibernate.collection.PersistentCollection at $Proxy1.<clinit>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ... Solution: Adding to the imports of spring-hibernate3 manifest the package org.hibernate.collection --- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'vorlesungsDAO' defined in OSGi bundle resource [id=2|symName=de.fhbrs.aloe.core|bundle-url:bundleentry://2/META-INF/spring/bundle-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [de.fhbrs.aloe.core.model.dao.VorlesungsDAO]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems: The hierarchy of the type VorlesungsDAO is inconsistent The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced from required .class files The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files Access restriction: The method save(Object) from the type HibernateTemplate is not accessible due to restriction on required library spring-hibernate3/target/classes/ Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [de.fhbrs.aloe.core.model.dao.VorlesungsDAO]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems: The hierarchy of the type VorlesungsDAO is inconsistent The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced from required .class files The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files Access restriction: The method save(Object) from the type HibernateTemplate is not accessible due to restriction on required library spring-hibernate3/target/classes/ Caused by: java.lang.Error: Unresolved compilation problems: The hierarchy of the type VorlesungsDAO is inconsistent The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced from required .class files The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files Access restriction: The method save(Object) from the type HibernateTemplate is not accessible due to restriction on required library spring-hibernate3/target/classes/ at de.fhbrs.aloe.core.model.dao.VorlesungsDAO.<init>(VorlesungsDAO.java:10) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ... Eclipse is complaining the same thing. DAO class: public class myDAO extends HibernateDaoSupport implements IVorlesungsDAO { .. } Imports from DAO bundle so far: Import-Package: org.hibernate.proxy, org.springframework.orm.hibernate3.support;specification-version="2.1.0.SNAPSHOT-202-2" Solution: adding to my DAO bundle manifest the package org.springframework.dao.support.DaoSupport. This shouldn't be the case, because I just want to import packages that I directly use. --- next problem is the same, but with package org.springframework.beans.factory: Caused by: java.lang.Error: Unresolved compilation problems: The hierarchy of the type VorlesungsDAO is inconsistent The type org.springframework.beans.factory.InitializingBean cannot be resolved. It is indirectly referenced from required .class files Access restriction: The method save(Object) from the type HibernateTemplate is not accessible due to restriction on required library spring-hibernate3/target/classes/ Solution: adding to my DAO bundle manifest the package org.springframework.beans.factory. This shouldn't be the case, because I just want to import packages that I directly use. --- Eclipse complains: Access restriction: The method save(Object) from the type HibernateTemplate is not accessible due to restriction on required library spring-hibernate3/target/classes/ de.fhbrs.aloe.core/src/main/java/de/fhbrs/aloe/core/model/dao Solution: Adding the package org.springframework.orm.hibernate3 to my own bundle, where the DAO's are present. This shouldn't be the case, because I just want to import packages that I directly use. --- Eclipse complains: The project was not built since its build path is incomplete. Cannot find the class file for org.springframework.core.NestedRuntimeException. Fix the build path then try building this project Solution: Adding the package org.springframework.core to my own bundle, where the DAO's are present. This shouldn't be the case, because I just want to import packages that I directly use.

    Spring JIRA | 10 years ago | Martin Dames
    java.lang.Error: Unresolved compilation problems: The hierarchy of the type VorlesungsDAO is inconsistent The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced from required .class files The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files Access restriction: The method save(Object) from the type HibernateTemplate is not accessible due to restriction on required library spring-hibernate3/target/classes/
  6. 0

    I am using only the 3rd party bundles from the revision 6343, spring-osgi-core, spring-osgi-extender, io and mock are from revision 6170. (I've got compilation errors on the new version)... anyway: The thing is that I've got a lot of class not found errors when I try to use hibernate3 and spring-hibernate3. Bundle H is the actual hibernate bundle, which exports all the org.hibernate packages... Bundle A has .hbm.xml, has DAO's and is using springs HibernateTemplate by extending the class HibernateDaoSupport. Actually I just need to import org.springframework.orm.hibernate3.support package to A, but I needed some more: org.springframework.core, org.springframework.orm.hibernate3, org.springframework.beans.factory, org.springframework.dao.support.DaoSupport, org.hibernate.proxy, This are lots of unneccessary imports for my own bundle, it seems that a lot of them are requiered indirectly by other parts of spring(-osgi)... please double check that, because a plug-in developer for my own application, which wants to use some of my DAO's in its own bundle doesn't really want to import some stuff he doesn't know about.... he just wants to import packages that he/she is using directly.... The spring-hibernate3 bundle needed also some more imports from the actual hibernate3 bundle: org.hibernate.exception, org.hibernate.loader.custom, org.hibernate.engine.query.sql, package org.hibernate.collection spring-hibernate3 bundle seems to be incomplete... a good solution would be to import all real hibernate3 packages... please double check that, too. The above description is just a summary of my protocal I wrote besides I resolved the errors. Here it is (from top to the bottom): --- Invocation of init method failed; nested exception is net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null .... Caused by: java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) Solution: Adding the package org.hibernate.proxy to my own bundle, where the DAO's are present. This shouldn't be the case, because I just want to import packages that I directly use. --- java.lang.NoClassDefFoundError: org/hibernate/exception/GenericJDBCException Caused by: java.lang.NoClassDefFoundError: org/hibernate/exception/GenericJDBCException at org.springframework.orm.hibernate3.LocalSessionFactoryBean.updateDatabaseSchema(LocalSessionFactoryBean.java:940) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterSessionFactoryCreation(LocalSessionFactoryBean.java:833) ... Solution: Adding to the imports of spring-hibernate3 manifest the package org.hibernate.exception --- java.lang.NoClassDefFoundError: org.hibernate.loader.custom.CustomQuery Caused by: java.lang.NoClassDefFoundError: org.hibernate.loader.custom.CustomQuery at $Proxy1.<clinit>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) ... Solution: Adding to the imports of spring-hibernate3 manifest the package org.hibernate.loader.custom --- java.lang.NoClassDefFoundError: org.hibernate.engine.query.sql.NativeSQLQuerySpecification Caused by: java.lang.NoClassDefFoundError: org.hibernate.engine.query.sql.NativeSQLQuerySpecification at $Proxy1.<clinit>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ... Solution: Adding to the imports of spring-hibernate3 manifest the package org.hibernate.engine.query.sql --- java.lang.NoClassDefFoundError: org.hibernate.collection.PersistentCollection Caused by: java.lang.NoClassDefFoundError: org.hibernate.collection.PersistentCollection at $Proxy1.<clinit>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ... Solution: Adding to the imports of spring-hibernate3 manifest the package org.hibernate.collection --- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'vorlesungsDAO' defined in OSGi bundle resource [id=2|symName=de.fhbrs.aloe.core|bundle-url:bundleentry://2/META-INF/spring/bundle-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [de.fhbrs.aloe.core.model.dao.VorlesungsDAO]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems: The hierarchy of the type VorlesungsDAO is inconsistent The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced from required .class files The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files Access restriction: The method save(Object) from the type HibernateTemplate is not accessible due to restriction on required library spring-hibernate3/target/classes/ Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [de.fhbrs.aloe.core.model.dao.VorlesungsDAO]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems: The hierarchy of the type VorlesungsDAO is inconsistent The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced from required .class files The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files Access restriction: The method save(Object) from the type HibernateTemplate is not accessible due to restriction on required library spring-hibernate3/target/classes/ Caused by: java.lang.Error: Unresolved compilation problems: The hierarchy of the type VorlesungsDAO is inconsistent The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced from required .class files The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files Access restriction: The method save(Object) from the type HibernateTemplate is not accessible due to restriction on required library spring-hibernate3/target/classes/ at de.fhbrs.aloe.core.model.dao.VorlesungsDAO.<init>(VorlesungsDAO.java:10) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ... Eclipse is complaining the same thing. DAO class: public class myDAO extends HibernateDaoSupport implements IVorlesungsDAO { .. } Imports from DAO bundle so far: Import-Package: org.hibernate.proxy, org.springframework.orm.hibernate3.support;specification-version="2.1.0.SNAPSHOT-202-2" Solution: adding to my DAO bundle manifest the package org.springframework.dao.support.DaoSupport. This shouldn't be the case, because I just want to import packages that I directly use. --- next problem is the same, but with package org.springframework.beans.factory: Caused by: java.lang.Error: Unresolved compilation problems: The hierarchy of the type VorlesungsDAO is inconsistent The type org.springframework.beans.factory.InitializingBean cannot be resolved. It is indirectly referenced from required .class files Access restriction: The method save(Object) from the type HibernateTemplate is not accessible due to restriction on required library spring-hibernate3/target/classes/ Solution: adding to my DAO bundle manifest the package org.springframework.beans.factory. This shouldn't be the case, because I just want to import packages that I directly use. --- Eclipse complains: Access restriction: The method save(Object) from the type HibernateTemplate is not accessible due to restriction on required library spring-hibernate3/target/classes/ de.fhbrs.aloe.core/src/main/java/de/fhbrs/aloe/core/model/dao Solution: Adding the package org.springframework.orm.hibernate3 to my own bundle, where the DAO's are present. This shouldn't be the case, because I just want to import packages that I directly use. --- Eclipse complains: The project was not built since its build path is incomplete. Cannot find the class file for org.springframework.core.NestedRuntimeException. Fix the build path then try building this project Solution: Adding the package org.springframework.core to my own bundle, where the DAO's are present. This shouldn't be the case, because I just want to import packages that I directly use.

    Spring JIRA | 10 years ago | Martin Dames
    java.lang.Error: Unresolved compilation problems: The hierarchy of the type VorlesungsDAO is inconsistent The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced from required .class files The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files Access restriction: The method save(Object) from the type HibernateTemplate is not accessible due to restriction on required library spring-hibernate3/target/classes/

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.Error

      Unresolved compilation problems: Access restriction: The type AbsentInformationException is not accessible due to restriction on required project org.eclipse.xtext.idea

      at org.eclipse.xtext.idea.debug.TraceBasedPositionManagerFactory$TraceBasedPositionManager.createPrepareRequest()
    2. org.eclipse.xtext
      TraceBasedPositionManagerFactory$TraceBasedPositionManager.createPrepareRequest
      1. org.eclipse.xtext.idea.debug.TraceBasedPositionManagerFactory$TraceBasedPositionManager.createPrepareRequest(TraceBasedPositionManagerFactory.java:68)
      1 frame
    3. IDEA
      ApplicationImpl$2.run
      1. com.intellij.debugger.engine.CompoundPositionManager.lambda$createPrepareRequests$4(CompoundPositionManager.java:148)
      2. com.intellij.debugger.engine.CompoundPositionManager.iterate(CompoundPositionManager.java:77)
      3. com.intellij.debugger.engine.CompoundPositionManager.createPrepareRequests(CompoundPositionManager.java:143)
      4. com.intellij.debugger.engine.requests.RequestManagerImpl.callbackOnPrepareClasses(RequestManagerImpl.java:308)
      5. com.intellij.debugger.ui.breakpoints.Breakpoint.createOrWaitPrepare(Breakpoint.java:196)
      6. com.intellij.debugger.ui.breakpoints.BreakpointWithHighlighter.createRequest(BreakpointWithHighlighter.java:276)
      7. com.intellij.debugger.engine.JavaBreakpointHandler$1.action(JavaBreakpointHandler.java:56)
      8. com.intellij.debugger.engine.events.DebuggerCommandImpl.run(DebuggerCommandImpl.java:45)
      9. com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:150)
      10. com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:40)
      11. com.intellij.debugger.impl.InvokeThread.run(InvokeThread.java:153)
      12. com.intellij.debugger.impl.InvokeThread.access$100(InvokeThread.java:31)
      13. com.intellij.debugger.impl.InvokeThread$WorkerThreadRequest.run(InvokeThread.java:60)
      14. com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:308)
      14 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames