[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
RISC - code can't be parsed by code generator  XML
Forum Index -> Development
Author Message
wwillemsens

Power User

Joined: 14/11/2016 18:05:48
Messages: 32
Offline

Hi,

Captaincasa complains that it cannot parse my code...
"Error when opening the code generator org.eclnt.ecitor.codeggen.GenerationException : line 43:26, Expecting EOF, found 'PreparedStatement'"

cc complains about the second line..

Im using try - with -resources like
Code:
 try (Connection connection = DatabaseConnectionPool.getDatabaseConnection();
 			 PreparedStatement preparedStatement = connection.prepareStatement(sql)) {
 			preparedStatement.setString(1, getWebhookId());
 			
 			System.out.println("webhookid in payconiq.java : " + getWebhookId());
 			try (ResultSet resultSet = preparedStatement.executeQuery())
 			{
 				while (resultSet.next())
 				{
 
 


I have this in some files, not all. But it has always something to do with the try-with-resources...
Somebody a clue?
Kind regards
Wim
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5534
Offline

Hi Wim,
please send me the whole source file (just the class that should be shown in the code generator). THanks!
Regards, Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5534
Offline

Hi Wim,

no additional info needed. Our parser that we internally use for analyzing the source code does not support try-with-resources - and does bring up a corresponding error. There is no short term solution to this - other than updating the code on your side, and shifting this code into some sub-processing.

Well, maybe it's some good hint, to not do any type of Connection processing inside the beans that manages UI... ;-)

Regards, Björn

Björn Müller, CaptainCasa GmbH
wwillemsens

Power User

Joined: 14/11/2016 18:05:48
Messages: 32
Offline

Thanx for the info,
Kind regards
Wim
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team