cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP COMMERCE 2211 String cannot be converted to Marker

stefaniaZ
Participant
0 Kudos
1,651

Good morning,

I migrate to sao commerce 2211. I have problem with Cloud Hot Folder Extensions .

I download the 2211 versione, I try to compile, but i have this error.

AbstractMonitoringAspect.java:70: error: incompatible types: String cannot be converted to Marker
   [yjavac] 			LOG.warn("No MonitorHistory within the thread, cannot add action Code [{}] Status [{}] started [{}]", code, status, started);




DataImportUnzippedFolderImportService.java:60: error: incompatible types: String cannot be converted to Marker
   [yjavac] 			LOG.info("directory [{}] didn't contain the required subfolder [{}] for importService [{}]", unzippedAs, this.getRequiredSubdirectory(), importService);





ZipHeaderExecutionTask.java:53: error: incompatible types: String cannot be converted to Marker
   [yjavac]                 LOG.debug("zip [{}] didn't match pattern [{}] for [{}]", zipFileName, pattern, service);
I can't modify this class, because it is part of clout hot folder extension.Could you help me?ThanksStefania

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

remove cloudhotfolder/lib/slf4j-api-1.6.6.jar

romitchhabra
Participant
0 Kudos

Hi Mouloudi,

How can it be removed from the environment in ccv2?

pgaeckle
Explorer
0 Kudos

@romitchhabra 

I ran into the same issue with some other topic. I removed it with a buildcallback.
Use the macrodef after_build_all_extensions calling the macrodef for removing the lib you want to get rid of.

 

<macrodef name="extension_after_build_all_extensions">
	<sequential>
		<removeOld_jgrapht/>
	</sequential>
</macrodef>

 

The macrodef to remove the library looks something like this

 

<macrodef name="removeOld_jgrapht">
	<sequential>
		<if>
			<available file="${ext.cockpit.path}/lib/jgrapht-jdk1.6-0.8.2.jar"/>
			<then>
				<echo> Moving ${ext.cockpit.path}/lib/jgrapht-jdk1.6-0.8.2.jar so it's not recognized any more </echo>
				<move file="${ext.cockpit.path}/lib/jgrapht-jdk1.6-0.8.2.jar"
					  tofile="${ext.cockpit.path}/lib-removed/jgrapht-jdk1.6-0.8.2.jar"/>
			</then>
			<else>
				<echo> jgrapht-jdk1.6-0.8.2.jar already moved to ${ext.cockpit.path}/lib-removed </echo>
			</else>
		</if>
	</sequential>
</macrodef>

 

I didn't want to remove it so I moved it into a separate folder named lib-removed.
You also could simply delete it with

 

<delete file="${ext.cockpit.path}/lib/jgrapht-jdk1.6-0.8.2.jar" />

 

Hope this helps.

 

saket_chiluveru
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Any fix for this issue ?

adambadura
Participant
0 Kudos

Did you also download cloud hot folder extensions for 2211 (see note 2817992)?

stefaniaZ
Participant
0 Kudos

Yes, I download this version: cloudhotfolders-2211-20230429-020346.zip KB