Ask - Test
RE: Liferay Servicebuilder
Liferay Servicebuilder
Regular Member Posts: 110 Join Date: 3/10/11 Recent PostsIm developing some portlets and have problems updating my servicebuilder services on the production server.Im using Liferay IDE 3.9.3 on the development side and Liferay 7.4GA25 on the production server. I have created CRUD functions for my Entities, I can create new data, but when editing the whole server goes
Http Status 500 - Internal Server Error
After updating my classes i get the following errors:
java.lang.NoSuchMethodError
This even though they clearly are there
Another error I get is:
java.lang.AbstractMethodError: Receiver XXX does not define
or inherit an implementation of the resolved method abstract cloneWithOriginalValues()
I can not understand why this would happen. Again any help
would be really appreciated, thank you
RE: Liferay Servicebuilder
Expert Posts: 308 Join Date: 2/13/13 Recent PostsAre you in the community slack? You can see some information about this here. Since I think you've already updated settings.gradle to use a new workspace verions, I'm going to guess that your service.xml needs its DTD reference updated. Something like
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 7.4.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_7_4_0.dtd">
RE: RE: Liferay Servicebuilder
Regular Member Posts: 110 Join Date: 3/10/11 Recent PostsI cant seem to get access to the community on slack.
The DTD was the same as you have, as the service was built for
liferay 7.4GA1 (or else it was changed for me)
I seem to have a lot of things working, i could not build
anything with the product version at 7.4GA43, but when i changed the
target to a lower version ie 7.4GA25 almost all started to work. But
one thing still not working; my custom theme. There seems to be
something missing with the clay stuff:
Parsed /css/clay.scss in 26030ms
Exception in thread "main" com.liferay.sass.compiler.jsass.internal.JSassCompilerException: io.bit3.jsass.CompilationException: Error: Undefined variable: "$cadmin-selector".
on line 1 of build/buildTheme/css/application/_drag_drop.scss
from line 10 of build/buildTheme/css/_application.scss
from line 9 of build/buildTheme/css/main.scss
>> html#{$cadmin-selector} {
Again i assume that there is something refering to something that has changed. Any simple way to update the theme to work with newer versions of liferay? I thank you again for the help
RE: RE: Liferay Servicebuilder
Expert Posts: 308 Join Date: 2/13/13 Recent PostsOkay, so you're developing for GA25, and now ithe service builder code is working when you use GA25 in the workspace? If so, that's fine for your use case. Expected, even.
However, the specific issue you saw when you used GA43, with cloneWithOriginalValues, makes me nervous that something has regressed in a later version of the worksopace plugin, because as I said, this is an issue people had earlier. It was fixed in later workspace plugin versions, so we'll have to keep an eye out for a regression there.
I don't know about the theme issue, sorry.
RE: RE: Liferay Servicebuilder
Regular Member Posts: 110 Join Date: 3/10/11 Recent PostsEnded up doing a clean install on the production server, these issues seem to be fixed with that, but as usual others emerge.
The theme issue was resolvet with adding
@import 'clay/cadmin-variables';
to _imports.scss
RE: RE: Liferay Servicebuilder
New Member Post: 1 Join Date: 9/20/19 Recent PostsConverting themes from 7.2 --> 7.4 and ran into below theme issue. adding @import 'clay/cadmin-variables'; solved it. Thank you for sharing the resolution.
formatted: Error: Undefined variable: "$cadmin-selector".
on line 1 of build/_css/application/_drag_drop.scss
from line 10 of build/_css/_application.scss
from line 9 of build/_css/main.scss
>> html#{$cadmin-selector} {
Powered by Liferay™