0

ZK EE 8 BaseURI must not be null

asked 2017-04-13 12:16:45 +0800

Dresse gravatar image Dresse
1

updated 2017-04-13 14:54:06 +0800

Hi,

i have done an update from ZK 7.0.3 to ZK EE 8.0.4.2 but after the update my program throws an error when i try to create a component using the following statement.

Reader r = new FileReader(fileName); Executions.createComponentsDirectly(r, "html", parent, null);

java.lang.IllegalArgumentException: BaseURI must not be null org.zkoss.zsoup.helper.Validate.notNull(Validate.java:26) org.zkoss.zsoup.parser.TreeBuilder.initialiseParse(TreeBuilder.java:25) org.zkoss.zsoup.parser.TreeBuilder.parse(TreeBuilder.java:40) org.zkoss.zsoup.parser.HtmlTreeBuilder.parse(HtmlTreeBuilder.java:55) org.zkoss.zsoup.parser.Parser.parseInput(Parser.java:30) org.zkoss.zsoup.helper.DataUtil.parseByteData(DataUtil.java:115) org.zkoss.zsoup.helper.DataUtil.load(DataUtil.java:63) org.zkoss.zsoup.Zsoup.parse(Zsoup.java:135) org.zkoss.zhtml.impl.HtmlTreeBuilder.parse(HtmlTreeBuilder.java:328) org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:148) org.zkoss.zk.ui.metainfo.PageDefinitions.getPageDefinitionDirectly(PageDefinitions.java:96) org.zkoss.zk.ui.impl.AbstractUiFactory.getPageDefinitionDirectly(AbstractUiFactory.java:225) org.zkoss.zk.ui.http.ExecutionImpl.getPageDefinitionDirectly(ExecutionImpl.java:403) org.zkoss.zk.ui.impl.AbstractExecution.createComponentsDirectly0(AbstractExecution.java:419) org.zkoss.zk.ui.impl.AbstractExecution.createComponentsDirectly(AbstractExecution.java:380) org.zkoss.zk.ui.Executions.createComponentsDirectly(Executions.java:373)

What can i do to set a BaseURI for the HtmlTreeBuilder.parse() function?

Best Regards, Dresse

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2017-04-13 12:16:45 +0800

Seen: 25 times

Last updated: Apr 13 '17

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More