on 05-17-2017 7:12 AM
Hi Experts,
I created one java project in which one of the java file to implement DestinationDataProvider file as below, I am overriding the registerDestinationDataProvider() from DestinationDataProvider.
The corresponding package of the class (com.sap.conn.jco.ext.DestinationDataProvider) DestinationDataProvider has been added to the class path even though I am getting error like java.lang.NoClassDefFoundError: com/sap/conn/jco/ext/DestinationDataProvider.
also note that I am using other classes from the same package for which no exception is thrown like above, please help
package com.acn.rpa.utilities; import java.util.HashMap; import java.util.Map; import java.util.Properties; import com.sap.conn.jco.ext.DestinationDataEventListener; ///import com.sap.conn.jco.DestinationDataProvider; import com.sap.conn.jco.ext.DestinationDataProvider; public class MyDestinationDataProvider implements DestinationDataProvider { Map<String, Properties> propertiesForDestinationName = new HashMap<String, Properties>(); public void addDestination( String destinationName, Properties properties ) { propertiesForDestinationName.put( destinationName, properties ); } public Properties getDestinationProperties( String destinationName ) { if ( propertiesForDestinationName.containsKey( destinationName ) ) { return propertiesForDestinationName.get( destinationName ); } else { throw new RuntimeException( "JCo destination not found: " + destinationName ); } } public void setDestinationDataEventListener( DestinationDataEventListener eventListener ) { // nothing to do } public boolean supportsEvents() { return false; } }
Regards,
Rajesh V
This Issue still persists, please let me know if any suggestions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.