question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dynamic metamodel doesn't support resources

See original GitHub issue

With the new dynamic metamodel trying to get a reference to a resource like this:

Module mod = `module`;
assert (exists resource = mod.resourceByPath("test.txt"));

While running with java -cp 'ceylon classpath hello/1.0.0' hello.run_ results in the following error:

Exception in thread "main" java.lang.NullPointerException
	at com.redhat.ceylon.compiler.java.runtime.metamodel.decl.ModuleImpl.resourceByPath(ModuleImpl.java:166)
	at hello.restestRelative_.restestRelative(hello.ceylon:30)
	at hello.run_.run(hello.ceylon:36)
	at hello.run_.main(hello.ceylon)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
FroMagecommented, Jul 31, 2017

Fixed.

0reactions
gavinkingcommented, Jul 31, 2017

Excellent.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Static metamodel class is not generated - Stack Overflow
I change a service class from implemented service to service so the implementation class was still existing, i erase that file an everything ......
Read more >
Create type-safe queries with the JPA static metamodel
The static metamodel classes provide a type-safe way to create criteria queries and dynamic entity graphs.
Read more >
Using the Metamodel API to Model Entity Classes
Obtaining the metamodel classes dynamically, by calling Root<T>.getModel or EntityManager.getMetamodel and then the entity method, doesn't allow for ...
Read more >
Dynamic Metamodel Extension Modules to Support Adaptive ...
We define dynamic metamodel extension modules that support adaptive data management by evolving a system in the event of changing requirements and show....
Read more >
Dynamic, typesafe queries in JPA 2.0 - IBM Developer
This article describes how to write dynamic, typesafe queries using the Criteria API and the closely associated Metamodel API.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found