Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numerous warnings about not processed images #12

Open
Kissaki opened this issue Jun 2, 2018 · 4 comments
Open

Numerous warnings about not processed images #12

Kissaki opened this issue Jun 2, 2018 · 4 comments
Assignees

Comments

@Kissaki
Copy link

Kissaki commented Jun 2, 2018

2018-06-02 22:03:21 WARN  JoomlaContent:47 - Images for 1 not processed
Unexpected token END OF FILE at position 0.
        at org.json.simple.parser.JSONParser.parse(JSONParser.java:257)
        at org.json.simple.parser.JSONParser.parse(JSONParser.java:81)
        at org.json.simple.parser.JSONParser.parse(JSONParser.java:75)
        at com.thecoderscorner.web.hugojoomla.JoomlaImage.<init>(JoomlaImage.java:22)
        at com.thecoderscorner.web.hugojoomla.JoomlaContent.<init>(JoomlaContent.java:44)
        at com.thecoderscorner.web.hugojoomla.JoomlaHugoConverter.lambda$performConversion$2(JoomlaHugoConverter.java:107)
        at org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:93)
        at org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:60)
        at org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:463)
        at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:408)
        at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:474)
        at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:484)
        at com.thecoderscorner.web.hugojoomla.JoomlaHugoConverter.performConversion(JoomlaHugoConverter.java:96)
        at com.thecoderscorner.web.hugojoomla.HugoJoomla.main(HugoJoomla.java:35)

introImage = new JoomlaImage("intro", images);

@davetcc davetcc self-assigned this Jun 5, 2018
@davetcc
Copy link
Owner

davetcc commented Jun 5, 2018

Looking at the code, the image tag is corrupt or missing in your Joomla database:

Unexpected token END OF FILE at position 0 <-- notice the image tag was empty. The warning can be ignored if you were not expecting images. I've not seen this before in Joomla 3.

This does not affect processing and I think it is a valid warning. I'll drop the stack trace from the warning.

@davetcc
Copy link
Owner

davetcc commented Jun 5, 2018

Could you confirm which Joomla version you're trying to convert?

davetcc added a commit that referenced this issue Jun 5, 2018
@Kissaki
Copy link
Author

Kissaki commented Jun 6, 2018

Joomla 3.8. It’s an upgraded install from various previous versions. So content may be in an old style or sth, if that's a thing. I dunno.

@davetcc
Copy link
Owner

davetcc commented Jun 7, 2018

Thanks for the reply, I’ve cleaned up the code on master so that it doesn’t print the stack trace, as it’s possible the field could be blank as in your case. It now just reports a warning that the image Json is not present. Once I’ve got the other issues sorted I’ll do a release. I’m your case there was no consequence to the exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants