Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    TehLeo
    @TehLeo
    Feel free to ask question, discuss issues or request new features
    jahill92
    @jahill92
    Hi there I just stumbled across this promising library and wanted to integrate it into my existing maven project
    I want to represent graph edges as structs and created a @Struct annotated Class Edge.
    However when i try to create the struct with something like Edge[] edges = Edge[100] i get lang.Error:
    Caused by: java.lang.Error: Unresolved compilation problem:
    Edge cannot be resolved to a variable
    jahill92
    @jahill92
    In my project I am using the spring framework which tries to instantiate the beans
    full error log:

    Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
    2018-09-28 11:55:01.231 ERROR 7955 --- [ main] o.s.boot.SpringApplication : Application startup failed

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'OsmInterface' defined in file [/media/data/dev/git/evOSM/osmspring/target/classes/de/unistuttgart/fmi/alg/fapra/EVOsm/OsmInterface.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.unistuttgart.fmi.alg.fapra.EVOsm.OsmInterface]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problem:
    Edge cannot be resolved to a variable

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1155) ~[spring-beans-4.3.13.RELEASE.jar:4.3.13.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099) ~[spring-beans-4.3.13.RELEASE.jar:4.3.13.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) ~[spring-beans-4.3.13.RELEASE.jar:4.3.13.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.13.RELEASE.jar:4.3.13.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.13.RELEASE.jar:4.3.13.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.13.RELEASE.jar:4.3.13.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.13.RELEASE.jar:4.3.13.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.13.RELEASE.jar:4.3.13.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.13.RELEASE.jar:4.3.13.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-4.3.13.RELEASE.jar:4.3.13.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[spring-context-4.3.13.RELEASE.jar:4.3.13.RELEASE]
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
    at de.unistuttgart.fmi.alg.fapra.EVOsm.OsmspringApplication.main(OsmspringApplication.java:13) [classes/:na]

    Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.unistuttgart.fmi.alg.fapra.EVOsm.OsmInterface]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problem:
    Edge cannot be resolved to a variable

    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:154) ~[spring-beans-4.3.13.RELEASE.jar:4.3.13.RELEASE]
    at org.springframework.be
    TehLeo
    @TehLeo
    Thank you for trying the library, I apologise for the late reply. You get the error edge cannot be resolved to a variable because your syntax is missing the 'new' keyword. create an array of structs with: Edge[] edges = new Edge[100]; Hope this helps.
    Oberdiah
    @Oberdiah
    Hello! I've been trying to install and mess with your library in an attempt to build an ECS (Entity Component System) using it - since the two concepts go hand in hand. After a few hours of trying and failing to get it working in both Eclipse (following your Youtube video) and IntelliJ, I've finally managed to get it functioning in Netbeans. Are you open to receiving pull requests/are you still working on this project at all? There doesn't seem to have been any activity since Dec. last year.
    TehLeo
    @TehLeo
    Hi!, Thank you for your interest. Yes, I am open to receiving PRs/ discussing any features/changes/recomendations. I have some code which hasn't been committed yet, which adds support for multidimensional arrays and some fixes. Yes, I had a plan to write one ECS myself using this library as well. I'm quite curious what the problem was with Eclipse installation. I would be open to helping you install it in order to figure out the problem. Otherwise, once I'll manage to reserve some time for the Eclipse plugin, I'll try to make the installation as user friendly as possible.
    Mark J. Williamson
    @mjw99
    TehLeo
    @TehLeo
    Thanks, I'll give JMH a try.