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

Exception while GetRepositorySchemaCommand.execute()

Former Member
0 Likes
292

Hi All,

I am trying to implement a search on a table of my repository, however, the step of retrieving the repository schema stops me in my tracks.

In the fist lines, I created and authenticated a repository session. Then, I do this:

GetRepositorySchemaCommand repSchemaComm = new GetRepositorySchemaCommand(connPool);
repSchemaComm.setSession(Session);
boolean complete = repSchemaComm.isCommandComplete();
System.out.println(complete);
		
try {                                                                 
repSchemaComm.execute();
}
...

In the console, "false" is displayed for <repSchemaComm.isCommandComplete();>

...and the error message:

<i>Exception in thread "main" java.lang.NumberFormatException: For input string: ""

at java.lang.NumberFormatException.forInputString(Unknown Source)

at java.lang.Integer.parseInt(Unknown Source)

at java.lang.Integer.parseInt(Unknown Source)

at com.sap.mdm.internal.schema.CMFieldInfoHelper$GetFloatParam.execute(CMFieldInfoHelper.java:242)

at com.sap.mdm.internal.schema.PropertiesHelper.convertFrom(PropertiesHelper.java:452)

at com.sap.mdm.internal.schema.SchemaHelper.convertFrom(SchemaHelper.java:30)

at com.sap.mdm.internal.schema.SchemaHelper.convertFrom(SchemaHelper.java:78)

at com.sap.mdm.schema.commands.GetRepositorySchemaCommand.execute(GetRepositorySchemaCommand.java:91)

at mdm.SearchByKeyword.main(SearchByKeyword.java:64)</i>

What's the matter here? Can anyone give me a hint?

Thanks,

Christin

View Entire Topic
Former Member
0 Likes

Which version is this? Do you have a real field type defined in any one of the tables?