# Extensions

**URL:** <https://techcommunity.softwareag.com/t/extensions/58642>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Service-Orchestrator\
**Created:** [September 21, 2004, 5:08pm UTC](https://techcommunity.softwareag.com/t/extensions/58642 "2004-09-21T17:08:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tooljav](https://avatars.discourse-cdn.com/v4/letter/t/6bbea6/32.png) [@Tooljav](https://techcommunity.softwareag.com/u/Tooljav)\
**Post date:** [September 21, 2004, 5:08pm UTC](https://techcommunity.softwareag.com/t/extensions/58642/1 "2004-09-21T17:08:25Z")

</div>

Hi all.  
Thanks, Matthew for your reply. I put the debug level and I can saw the error.   
Another question:  
I have created a new extension, and the Java class has this method with this signature:  
  
public void cutFile(String inputFile, String outputPath, int size\_reg, int regInitial, int regFinal)  
  
When I execute the sequence, I get the exception:  
FileUtilExtension - java.lang.IllegalArgumentException: argument type mismatch  
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
 at java.lang.reflect.Method.invoke(Method.java:324)  
 at com.softwareag.xbridge.objectgateway.ObjectActionImplCall.invoke(DashOB6501:79)  
 at com.softwareag.xbridge.objectgateway.ObjectManager.invoke(DashOB6501:78)  
 at com.softwareag.xbridge.objectgateway.ObjectMessage.process(DashOB6501:155)  
 at com.softwareag.xbridge.objectgateway.ObjectGatewayImpl.modify(DashOB6501:182)  
 at com.softwareag.xbridge.infrastructure.y.modify(DashOB6501:56)  
 at com.softwareag.xbridge.sequencer.KeywordSTEP.execute(DashOB6501:148)  
 at com.softwareag.xbridge.sequencer.SequencerImpl.execute(DashOB6501:573)  
 at com.softwareag.xbridge.sequencer.SequencerImpl.dispatch(DashOB6501:293)  
 at com.softwareag.xbridge.infrastructure.ac.perform(DashOB6501:235)  
 at com.softwareag.xbridge.util.WorkerThread.run(DashOB6501:424)  
  
Only String arguments are allowed or the problem is only with primitive types(int)?  
  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Matthew](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Matthew](https://techcommunity.softwareag.com/u/Matthew)\
**Post date:** [September 21, 2004, 5:45pm UTC](https://techcommunity.softwareag.com/t/extensions/58642/2 "2004-09-21T17:45:12Z")

</div>

You are right to assume the int types are your problem. Mediator only supports string and ByteArray as input values for your class. A solution might be to rewrite your class to accept string instead of int values and perform a conversion in the class before using the values.  
  
Regards,  
  
- Matthew G.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:39pm UTC](https://techcommunity.softwareag.com/t/extensions/58642/3 "2021-04-02T14:39:22Z")

</div>


