Menu
  • HOME
  • TAGS

Hybris Entity not found exception

java,spring,spring-mvc,hybris

It turned out this had nothing to do with code or configuration. It was a database error. While our managed services partner was not seeing any errors in their diagnostics, a restart of the database fixed the issue.

Product CSV file with Header

csv,export,export-to-csv,hybris

Yes you can! Using the includeExternalData method of ImpexReader. You can also use it with a CSVReader which is more customizable. With both solutions you have the possibility to set a linesToSkip parameter. You can set it to 1 assuming your header is in the first line. Don't forget to...

executing ant clean, Build Failed, Wrong java Version

java,ant,hybris

Since you were able to get Hybris working with JDK 7, it appears that Java JDK version 1.8.0_40 does not have backwards compatibility/support for Hybris 5.2.0.6. You may want to open a bug with Hybris if you are feeling entrepid.

Export impex template page in Hybris

import,content-management-system,export,hybris

If you just want to play around and want to test something the "quick-and-dirty"-way you can use the cms cockpit. (not recommended) In our project we use only impex files for cms stuff. The main reasons for this approach are: your pages and components do not get lost when you...

copy tenant from one db to another

junit,hybris

You can do that using Impex (but it might arise some errors) and you have to do passwords separately (AFAIK at least). Also, hybris never delete fields in DB. You have to remove attributes from DB1 that might have been created in the past but are not part of the...

How to get an existing MediaContainerModel in hybris?

hybris

I got the solution we can get as follows @Autowired MediaContainerService mediaContainerService;...... MediaContainerModel mediaContainer = null; try { mediaContainer = mediaContainerService.getMediaContainerForQualifier("testContainer"); } catch (final Exception e) { mediaContainer = createMediaContainer("testContainer"); } mediaContainer.setCatalogVersion(catalogVersion);...

Hybris extension addon conflict css

java,hybris

Can you change those properties defined in b2ccheckoutaddon: b2ccheckoutaddon.css.paths.desktop=/desktop/common/css/b2ccheckoutaddon.css;/desktop/common/css/checkoutContentPanel.css;/desktop/common/css/checkoutOrderDetails.css;/desktop/common/css/checkoutProgress.css b2ccheckoutaddon.css.paths.mobile=/mobile/common/css/b2ccheckoutaddon.css to b2ccheckoutaddon.css.paths.desktop= b2ccheckoutaddon.css.paths.mobile= in local.properties...

how to configure external image server path in Hybris

hybris

In PCM cockpit, if you need to display product image that is on remote server you can follow these steps (i don't know if it's the best solution but at least it works) : Add an attribute "pcmUrl" in the Product definition (items.xml) Add to this attribute and attribute handler...

How to run unit tests only in a Hybris project?

unit-testing,junit,hybris

You should use ant unittests and not ant unit tests: ant unittests -Dtestclasses.extensions=myext Note Running simple unit tests exclusively is not so easy whenever someone uses somewhere Registry.getApplicationContext() in the code under test! In fact, Registry.getApplicationContext() starts a Hybris instance. If that happens to you, you need to eliminate that...

Get method is getting invoked twice in Safari

post,safari,get,hybris

issue is resolved. I was using img with empty source tag which caused Safari to invoke GET method twice....

Unable to generate class model after modifying my *-items.xml file

xml,eclipse,java-ee,hybris

build your project and refresh it within the ide. If the ant build goes through without errors it should have generated the model classes.

Hybris:cannot find cmssite associated with current url

hybris

You need to use hosts file mappings or use the site-ID parameter to avoid a 500 error. Please follow these link https://wiki.hybris.com/display/accdoc/Just+One+Storefront If you have administrator rights, it is a good idea to add the following entries in your host file. 127.0.0.1 hybris.local [Example] The etc hosts modification allows the...

hybris - Product Update API

web-services,rest,hybris

I have to give the PRODUCT DTO with the code. That made this work.. THanks.....

Solr attributes not giving Expected results

solr,hybris

Looks like the main problem is that your sale field is not a facet, and consequently it is not added to resulting SOLR search query. Also, as Stretch already said, your code will filter out sale products not only from suggestions result, but also from regular text search result. I...

How to lock Hybris to Intialize System on Production Environment

hybris

You can use this setting in your local.properties on the production system to avoid the running system from being initialized accidentally from the administration page: system.unlocking.disabled=true Hybris highly recommend to use this setting once you have your system up and running....

Changing the hybris database to MySQL

mysql,hybris

If you want to connect to MySQLyou just have to change configuration in hybris/config/local.properties. db.url=jdbc:mysql://localhost/hybris db.driver=com.mysql.jdbc.Driver db.username=anything but not "root" db.password= mysql.allow.fractional.seconds=true (if you're using MySQL 5.6.4 or later) Since hybris Commerce Suite version 5.0.2, MySQL connector is not shipped with the hybris Commerce Suite . Please download the file...

Hybris include datamodel to HMC

java,hybris

All you need to do is add the appropriate directives to extensioninfo.xml: <requires-extension name="hmc"/> <hmcmodule extensionclassname="..."/> The the hmc.xml file under hmc/resources will be loaded....

Hybris sync system error

sync,hybris

You can find the info on dropped lines in the output of the CronJob. Go to the hMC > System > CronJobs. Find the CronJob 00002J68. Then you can download the unresolved lines CSV....

Localization in the hmc structure

xml,properties,localization,structure,hybris

In your hmc.xml you reference original_totals this should be section.original_totals leading to: name="section.original_totals". If you overwrite/extend existing functionality and you are not sure how to declare your code it is always a good habit to look for the original files, in this case the hmc.xml in the hmc extension.

Which table or columns store the changes made to a Hybris Type?

hybris

savedvalues, savedvalueentry, props A SavedValue object contains one or more SavedValueEntries which contains the old and new value (props)...

FATAL ERROR in native method: JDWP No transports initialized error while starting hybris server in debug mode

hybris

@thijsraets is correct. Either you have to check where is the port (8000) has been occupied or you can override the default value to something else in local.properties file. tomcat.debugjavaoptions=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8001,suspend=n Run "ant all". This will configure debug for port 8001. OR You can change the JVM parameters in...

Mocking getPk() function when there is no setPk()

unit-testing,junit,mockito,hybris,powermockito

If you test a real system with a real object, then the lack of primary key is going to have real consequences. Your best "seams" for testing are to override your Model class, extract out your call to it so you can externalize it, or spy on a real object....