cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime error after migrating to 7.3

Former Member
0 Kudos

Hi,

We have an enterprise portal --> portal application standalone type DC. We have been able to migrate the DCs to 7.3. The problem we are facing currently is that one of the applications does not load in the portal giving a portal runtime error. Looking at the log files, the errors being shown are to do with one specific type of class.

setClientEvent(com.sapportals.htmlb.enum.EventTrigger,java.lang.String) in com.sapportals.htmlb.EventValidationComponent cannot be applied to (com.sapportals.htmlb.enums.EventTrigger,java.lang.String)
                     CustomerInput.setClientEvent(com.sapportals.htmlb.enums.EventTrigger.ON_KEYDOWN, "onCustomerEnter()");

The above error shows that at runtime, it is trying to resolve 'com.sapportals.htmlb.enum.EventTrigger' but this class is deprecated in 7.3. The code which we have written has the right package which is com.sapportals.htmlb.enums.EventTrigger.

I am not sure why it is still trying to resolve with an older version. If I try to change the code and use the 'enum' package instead of 'enums', then the application fails again with the runtime error.

Thanks & Regards,

Vaishnavi

Accepted Solutions (0)

Answers (1)

Answers (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Vaishnavi,

Somewhere in your deploy package or in some referenced one, obviously you have a reference to ...enums... Might be a problem with updating JARs during build or whatever, in any case, just search for it. Use WinRAR for example, with that you also can search within class files.

The root cause is obvious, so just search and shoot it

Hope it helps

Detlev

Former Member
0 Kudos

Hi Detlev,

The standard jar from SAP for com.sapportals.htmlb which comes within FRAMEWORK-EXT seems to have only the enums package. In the SAP note 1503649, there is an excel sheet attached which says that the package enum is 'PublicNonDeprecated'. api. In that case, the package should be there in the jar, but it isn't! In addition the enums package has been introduced.

So where would I go about changing things?

Thanks & Regards,

Vaishnavi

DK007
Active Participant
0 Kudos

Hello Vaishnavi,

Where you able to resolve this issue??

Thanks,

Dheeram

Former Member
0 Kudos

Hi,

Closing this thread. Not sure how it was solved. Apparently, there is another java method named setClientExt() which was used.

Thanks & Regards,

Vaishnavi

DK007
Active Participant
0 Kudos

Hi Vaishnavi,

Thank you it worked after changing the method to setClientEventExt.

Thanks,

Dheeram