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.

Experimental -> Tools -> Add Banner: Exception

See original GitHub issue

Prerequisites

Description

Adding a banner causes the below exception

java.lang.Exception: No I/O provider found for object type au.gov.asd.tac.constellation.graph.schema.visual.attribute.objects.Banner, attribute ImmutableAttribute[id=57;type=banner;label=banner;description=banner;elementType=Metadata;defaultValue=null]
	at au.gov.asd.tac.constellation.graph.file.io.GraphJsonWriter.writeElements(GraphJsonWriter.java:386)
[catch] at au.gov.asd.tac.constellation.graph.file.io.GraphJsonWriter.writeGraphToStream(GraphJsonWriter.java:261)
	at au.gov.asd.tac.constellation.graph.file.io.GraphJsonWriter.writeGraphToZip(GraphJsonWriter.java:168)
	at au.gov.asd.tac.constellation.graph.file.io.GraphJsonWriter.writeGraphToZip(GraphJsonWriter.java:144)
	at au.gov.asd.tac.constellation.graph.file.io.GraphJsonWriter.writeGraphToZip(GraphJsonWriter.java:135)
	at au.gov.asd.tac.constellation.graph.interaction.plugins.io.AutosaveGraphPlugin.execute(AutosaveGraphPlugin.java:94)
	at au.gov.asd.tac.constellation.plugins.templates.SimplePlugin.run(SimplePlugin.java:68)
	at au.gov.asd.tac.constellation.graph.node.plugins.DefaultPluginEnvironment.executePluginNow(DefaultPluginEnvironment.java:219)
	at au.gov.asd.tac.constellation.plugins.PluginExecution.executeNow(PluginExecution.java:310)
	at au.gov.asd.tac.constellation.graph.interaction.plugins.io.Autosaver$1.run(Autosaver.java:113)

Steps to Reproduce

  1. New graph -> draw mode, add 3 nodes, select 1
  2. Add banner

Expected behaviour: A banner to be added

Actual behaviour: Exception, and that is all

Reproduces how often: 30%

Additional Information

Found using .exe v2.0 rc2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
formalhaut69commented, Jul 28, 2020

This issue is really odd. I’ve done a bit of analysis and I’ve noticed that the BannerIOProvider is being registered properly because you can see it in the list of all of the providers within the getProviders() method in AbstractGraphIOProvider. image

But whats strange is that when you call the getProviders() method from another class, for example in the GraphJsonWriter constructor the BannerIOProvider is not returned. I’ll do some more analysis though and see what else I can find.

0reactions
cygnus-x-1commented, Aug 3, 2020

I don’t think you necessarily need to implement convertFromString. Broadly, for an IOProvider to work, you need to define a way to serialize an object (in this case a Banner) to and from JSON in the IOProvider class. I suspect convertToString is offloading the work to the Banner class in this case, but it could just as easily be done in the IOProvider class.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Banner Basics and Navigation - Staff
Understanding the components and terminology of Banner forms will make navigating through Banner easier. Banner General Menu Form: Note: Most Menu Items and ......
Read more >
How to Open Banner
When trying to open Banner, if you are seeing a blank page, or the browser ... Click on the tools button in IE...
Read more >
Banner Hanging Guidelines for J
Banners must include grommets at all four corners in order to be attached to the building. The exception is if the banners are...
Read more >
Creating and Selecting a Banner Blackboard Questions ...
Open Microsoft Powerpoint and click the Page Setup button (under Design Tab). Select Banner from the drop down menu under Slides sized for....
Read more >
Banner General Quick Reference - SIUE
Your password to Banner is maintained as you manage your e-ID password. ... Insert Record: Add record to Information Block ... IE Tools...
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