medhaj hambi

Ranch Hand
+ Follow
since Jun 04, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by medhaj hambi

Yes I did, but not sure which method to use for ByteToChar conversion. Any pointers would be appreciated.
It appears they have been removed. Although I could find one link
http://www.docjar.com/docs/api/sun/io/ByteToCharConverter.html

and thats where my second question lies, is there a way for me to use ByteToChar conversion functionality from within java.nio.charset ? If yes, can I please get a code snippet ? I have trying to find with no luck and would really appreciate it if I could get one.

Regards
Hi,

Is there a way I can use java.nio package for byte to char array conversion ? Due to some technical reason, I have to write a code and have to use the package java.nio and I am not able to figure out a way to do that. It will be great if someone can suggest me or provide me a sample code snippet. Really appreciate your help !

Thanks
Hello All,

I managed to find the list of classes/methods that are deprecated. Is there anyway I can get the alternatives to these ? I couldnt find anywhere on this at Oracles website. Pl suggest.

These are the classes and methods I am interested in.
sun.io.ByteToCharConverter
sun.io.MalformedInputException


Just curious, is there a way for anyone to find out the list of the classes that are part of the SCA file that are obsolete ? I am hoping there is some kind of a command line utility that tells us that. Any thoughts ?
Yep, I have already started that thread. This is just being a curious me and wanted to dig deep into the root cause analysis.

Anyway thanks for your help,

Cheers
[EXCEPTION]
javax.ejb.EJBTransactionRolledbackException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: sun/io/MalformedInputException; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: sun/io/MalformedInputException
javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: sun/io/MalformedInputException
java.lang.RuntimeException: java.lang.NoClassDefFoundError: sun/io/MalformedInputException
at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:99)
at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:172)
at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:99)
at com.sun.proxy.$Proxy231.process(Unknown Source)
at com.sap.aii.af.app.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:264)
at sun.reflect.GeneratedMethodAccessor625.invoke(Unknown Source)

Caused by: java.lang.NoClassDefFoundError: sun/io/MalformedInputException
at com.ariba.asc.sap.netweaver.xiadapter.ra.CCIInteraction.execute(CCIInteraction.java:197)
at com.sap.aii.af.app.endpoint.ModuleProcessorExitBean.process(ModuleProcessorExitBean.java:206)
at sun.reflect.GeneratedMethodAccessor628.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47)
... 90 more
Caused by: java.lang.ClassNotFoundException: sun.io.MalformedInputException
------------------------- Loader Info -------------------------
ClassLoader name: [ariba.com/com.an.asc.sap.netweaver.xiadapter.ra]
Loader hash code: 116852c0
Living status: alive
Direct parent loaders:
[system:Frame]
[service:servlet_jsp]
[service:ejb]
[interface:com.sap.aii.af.ifc.facade]
[service:engine.security.facade]
[library:com.sap.aii.af.lib.facade]
[service:com.sap.aii.af.svc.facade]
Resources:
D:\\usr\\sap\\DP1\\J00\\j2ee\\cluster\\apps\\ariba.com\\com.ariba.asc.sap.netweaver.xiadapter.ra\\connector\\bin\\AribaNetworkAdapterSAPNetweaver.rar\\AribaNetworkAdapterSAPNetweaver.jar
D:\\usr\\sap\\DP1\\J00\\j2ee\\cluster\\apps\\ariba.com\\com.ariba.asc.sap.netweaver.xiadapter.ra\\connector\\bin\\AribaNetworkAdapterSAPNetweaver.rar\\commons-httpclient.jar
D:\\usr\\sap\\DP1\\J00\\j2ee\\cluster\\apps\\ariba.com\\com.ariba.asc.sap.netweaver.xiadapter.ra\\connector\\bin\\AribaNetworkAdapterSAPNetweaver.rar\\commons-codec.jar
D:\\usr\\sap\\DP1\\J00\\j2ee\\cluster\\apps\\ariba.com\\com.ariba.asc.sap.netweaver.xiadapter.ra\\connector\\bin\\AribaNetworkAdapterSAPNetweaver.rar\\xercesImpl.jar

javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: sun/io/MalformedInputException
at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:99)
Thanks Rob. I am not sure if this is part of the actual codebase or whether it belongs some external jar files. Basically I have one SCA file that is used to deploy in our landscape. To give you some more context on the actual issue, we are a third party adapter that sits on top of SAP ESB. As of recently SAP has certified the usage of its Std. adapters on JVM 8, whereas our adapter is not. We had a customer using the adapter on JVM 8 and that's where the issue began.

I am not the developer who worked on it, so I have no idea where to look for. What I do know is that the root cause of the exception is that this class is deprecated and is not available in Java 1.8 (I wrote a simple import statement in eclipse with JVM 1.8 and with 1.7 the code compiles fine). Now my question would be is there a way for me look at the code base from the SCA file ? What would those steps be ? I basically extracted all the jars out of the SCA file, but not sure where to go from there. If there is anyone who can point me in the right direction, I would very much appreciate that.

Thanks a lot.
Dear friends,

We have a SAP ESB adapter that is throwing below error while communicating to a target system

java.lang.NoClassDefFoundError: sun/io/MalformedInputException; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: sun/io/MalformedInputException; nested exception is: javax.ejb.EJBTransactionRolledbackException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: sun/io/MalformedInputException; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: sun/io/MalformedInputException

Based on my understanding of the error, as of JVM 8/ Java 1.8, the class sun/io/MalformedInputException is decommissioned. We are in a critical project and have come across this unanticipated road block and my question is is there a way we can make it backward compatible by adding some other Jar that provide the patches for this error ? Is the solution in this case to identify the exception calls and modify those and redeploy the application ?
I would really appreciate it if I can get prompt feedback and some suggestions on the topic.

Tx
Hi All,

I got an executable jar file out of eclipse and I want to distribute my application to my clients. But the glitch is I donot want them to have JDK/JRE installed on their machines.
Is there anyway I can do that ?

Thanks a lot,
V
7 years ago
Well..I am decalring a class inside a method. I dont remember the terminology for that but it goes something like...



There is nothing wrong with the syntax as far as I know.
8 years ago
Hi,
Thanks for the reply. I am using Java 6 Version. Also, this is how my class definition starts ...



I tried changing the method signature to Public ArrayList<String> call() throws Exception but that was of no use. Also , I am using Java 6 , so that shouldnt be the issue I guess. I have seen people implementing this sort of notation with callable class but I fail to understand why it doesnt compile.
8 years ago
Hi ,

I am using a small error when I am using override annotations. I fail to understand why. Can any body pl help me out ?

My code looks something like this :


//@Override
public ArrayList<String> call() {
/* to guard against multiple invocations, synchronize on uniqueId */
String uniqueId = institutionId.intern();
synchronized (uniqueId) {
ArrayList<String> l = opacBaseList.get(uniqueId);
if (l == null) {
l = findOpacBase(uniqueId);
if (l.size() > 0) {
opacBaseList.put(uniqueId, l);
if (Config.verbose) {
Utils.printLog("OCLC: %s baseopacurl(s): %s", uniqueId, l);
}
}
}
return l;
}




When I comment out the annotation I am able to compile. If I remove the comment for the line ----> @override , it gives me the following error:


The method call() of type new Callable<ArrayList><String>>(){}
must override a superclass method


Am not able to figure out what could be the problem.
8 years ago
Hi...I have an application that runs out of memory frequently. I have learnt that we can use this so that that error may not occur. Can anyone tell me how to set
that particular variable permanantly...unlike just doing it run time. The reason why I was asking is...I am having an application that uses Java compiler and I donot know the reason but, I see that the program runs out of memory. So, I want to set this value permanantly as I donot use the command line option for that. I am using a particular tool.
That will be great if someone could shed some light on this.

Thanks,
-V
8 years ago