Java.nio package Runtime error java.lang.UnsupportedClassVersionError.

Hi
I am using nio package and create a java program for file locking (FileLocking.java).
Here is the sample
try {
file = new File("C:/acc.txt");
channel = new RandomAccessFile(file, "rw").getChannel();
     lock = channel.lock(0, Long.MAX_VALUE, true);
try {
          lock = channel.tryLock(0, Long.MAX_VALUE, true);
catch (OverlappingFileLockException e) {
return true;
using wsad 5.1 and jdk1.4 i compiled this program.
While executing i got the following runtime error..
java.lang.UnsupportedClassVersionError: FileLocking (Unsupported major.minor version 48.0)
     at java.lang.ClassLoader.defineClass0(Native Method)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:703)
     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:133)
     at java.net.URLClassLoader.defineClass(URLClassLoader.java:319)
     at java.net.URLClassLoader.access$400(URLClassLoader.java:92)
     at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:677)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:238)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:516)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:441)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:448)
Exception in thread "main"
Even if i try to recompile it in command prompt and run, i got the same error.
please suggest me how can i overcome this problem.

UnsupportedClassVersionError means that you are trying to execute a class for a newer version of the JVM on an older version of the JVM.
Version 48.0 is for Java 1.4, so you have compiled your class with JDK 1.4.
The computer you are trying to run the class on, has an older version of Java than 1.4 - check it!
Try recompiling your source files with the "-target" switch, for example if you're running on Java 1.3, try compiling with:
javac -target 1.3 ... FileLocking.java

Similar Messages

  • Runtime Error: java.lang.StackOverflowError

    Hi all,
    I get the runtime error: java.lang.StackOverflowError.
    The API says:
    java.lang> Class StackOverflowError>
    Thrown when a stack overflow occurs because an application recurses too deeply.
    But I don't exactly know what does it mean? What am I doing wrong in my code? How can I avoid it?
    Any help is greatly appreciated. Thanks a lot.

    You are recusively calling a method without it ending. Something likepublic void recurse (String fred) {
        if ( fred.equals("flintstone") ) {
            recurse(fred);

  • How do i solve the Runtime Error: java.lang.UnsatisfiedLinkError

    Runtime Error: java.lang.UnsatisfiedLinkError
    // Dialog_age
    import javax.swing.JOptionPane;
    public class Dialog_age
    public static void main(String arguments[])
    String Input_Age;
    int age;
    Input_Age = JOptionPane.showInputDialog("Enter a number.");
    age = Integer.parseInt(Input_Age);
    JOptionPane.showMessageDialog(null , "Your age is " + age);
    System.exit(0);
    }Whenever i run this program or a program similar to that program. I get the Runtime Error (anytime i run the program on a command prompt, but if i run it on my jGRASP it runs ok!): java.lang.UnsatisfiedLinkError.
    Here is my Error Message:
    C:\java>java Dialog_age
    Exception in thread "main" java.lang.UnsatisfiedLinkError: sun.font.FontManager.initIDs(
    Z)V
    at sun.font.FontManager.initIDs(Native Method)
    at sun.font.FontManager.access$000(Unknown Source)
    at sun.font.FontManager$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.font.FontManager.<clinit>(Unknown Source)
    at sun.java2d.SunGraphicsEnvironment.addDirFonts(Unknown Source)
    at sun.java2d.SunGraphicsEnvironment.registerFontsInDir(Unknown Source)
    at sun.java2d.SunGraphicsEnvironment.access$200(Unknown Source)
    at sun.java2d.SunGraphicsEnvironment$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.java2d.SunGraphicsEnvironment.<init>(Unknown Source)
    at sun.awt.Win32GraphicsEnvironment.<init>(Unknown Source)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
    at javax.swing.RepaintManager.<clinit>(Unknown Source)
    at javax.swing.UIManager.initialize(Unknown Source)
    at javax.swing.UIManager.maybeInitialize(Unknown Source)
    at javax.swing.UIManager.getDefaults(Unknown Source)
    at javax.swing.UIManager.getString(Unknown Source)
    at javax.swing.UIManager.getString(Unknown Source)
    at javax.swing.JOptionPane.showInputDialog(Unknown Source)
    at javax.swing.JOptionPane.showInputDialog(Unknown Source)
    at Dialog_age.main(Dialog_age.java:14)
    But a few weeks ago i could run the program on a command prompt , perfectly!
    I recently came to the conclusion that it has something to do with me upgrading my IDE(jGRASP) and Java language.
    Now, since thats the case how do i resolve this error. That BUGGING the heck out of me!
    Thanks and Peace!

    Hi,
    Check which JRE/JDK is used by your jGRASP.Then set the path environment variables according to that.
    I'm afraid you have multiple jre/jdk in your system and one of that has problem with native libraries.
    Best of luck!!

  • Installing my updated CS4 on a new I Mac: "legacy Java SE 6 runtime" error when i try to open psd

    Bought the original Creative Suite package 1n 2004, installed on my new apple G5.  Upgraded in 2009 to CS4 and sometime installed on a 2nd computer.  I'm sure I registered each product.  I don't have the original disk's, but I have the serial number. I'm trying to install CS on my new I Mac.  It fails authorization in the download.  I went ahead and downloaded the 30 day trail like suggested.  I get the "legacy Java SE 6 runtime" error when i try to open psd.  After my first attempt failed and I read the help lessons on deactivation, I believe I have deactivated from the G5, but I'm still getting the same code when trying to open psd.

    Download and install: Java for OS X 2014-001 
    Reboot your Mac.
    Let me know how it goes.
    Gene

  • Package java.nio package does not exists

    I am trying to move some steps in java environment.
    I am using a Windows98 O.S.
    I downloaded jdk1.3 for Windows from sun site and installed it in c:\jdk1.3.1_02
    I have set path variable as .....;c:\jdk1.3.1_02\bin
    I am trying to compile a java source including java.nio package.
    What I do is:
    javac example.java
    What I get is:
    package java.nio does not exists
    I saw a lot of documentation about how to use java.nio but not how to link it.
    Any help I appreciate.

    Package java.nio is introduced with the version 1.4

  • Java i-view runtime error

    Hi All,
    we are using SAP BI 7.0, when running queries thorugh BI Portal we are getting one error saying that " java i-view runtime error, please contact your system administrator". once we got this error. i observed that this problem is occured due to user SAPJSF locked due to incorrect logons in BI ABAP system. if I unlock SAPJSF user we are able to run the queries from BI Portal. this is repetedly happing for us for every 15-20 days but not for fixed interval. we have ran the support desk tool and all the configurations we got is "green".
    could any one please let us know
    1. why this SAPJSF user is getting locked and how to block
    2. how to prevent this user from getting locked.
    please help me on this.
    Mohan

    Hi,
    You can watch the Security log at the following location for tracing down the activities of this user.
    /usr/sap/<SID>/JC<instance number>/j2ee/cluster/server0/log/system
    With Regards,
    Saurabh

  • Runtime error java.lang.NoClassDefFoundError- FacetDescriptor

    Hi everybody,
    I am trying to use a progressbar component in a page that worked fine just before I dropped this component. Now, I am getting the following exception:
    Exception Details: java.lang.NoClassDefFoundError
    com/sun/rave/designtime/faces/FacetDescriptor
    Possible Source of Error:
    Class Name: com.sun.j2ee.blueprints.ui.design.AbstractBeanInfo
    File Name: AbstractBeanInfo.java
    Method Name: initFacetDescriptors
    Line Number: 366
    I am using the same component in a page in different project and everything is working. This error is not specific to progressbar but to other components I have used. Last time, I had to re-create the project and import all my existing pages to get it resolved.
    Any ideas?? Your help will be highly appreciated.
    Thanks

    Hello there!
    I have tried to do as you said!
    My Libraries are just with DesignTime and Packages with Runtimes.
    What else should i do?
    Just to confirm above is all the stack trace.
    Thanks a lot!
    Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
    Exception Details: java.lang.NoClassDefFoundError
    com/sun/rave/designtime/faces/FacetDescriptor
    Possible Source of Error:
    Class Name: /com.sun.j2ee.blueprints.ui.design.AbstractBeanInfo/
    File Name: /AbstractBeanInfo.java/
    Method Name: /initFacetDescriptors/
    Line Number: /366/
    |Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    |
    Stack Trace:
    |com.sun.j2ee.blueprints.ui.design.AbstractBeanInfo.initFacetDescriptors(AbstractBeanInfo.java:366)
    com.sun.j2ee.blueprints.ui.design.AbstractBeanInfo.initBeanDescriptor(AbstractBeanInfo.java:341)
    com.sun.j2ee.blueprints.ui.autocomplete.AutoCompleteComponentBeanInfo.initBeanDescriptor(AutoCompleteComponentBeanInfo.java:54)
    com.sun.j2ee.blueprints.ui.design.AbstractBeanInfo.(AbstractBeanInfo.java:57)
    com.sun.j2ee.blueprints.ui.design.AbstractValueHolderBeanInfo.(AbstractValueHolderBeanInfo.java:36)
    com.sun.j2ee.blueprints.ui.design.AbstractEditableValueHolderBeanInfo.(AbstractEditableValueHolderBeanInfo.java:44)
    com.sun.j2ee.blueprints.ui.autocomplete.AutoCompleteComponentBeanInfo.(AutoCompleteComponentBeanInfo.java:42)
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeConstructorAccessorImpl.java:-2)
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    java.lang.Class.newInstance0(Class.java:350)
    java.lang.Class.newInstance(Class.java:303)
    java.beans.Introspector.instantiate(Introspector.java:1432)
    java.beans.Introspector.findExplicitBeanInfo(Introspector.java:410)
    java.beans.Introspector.(Introspector.java:359)
    java.beans.Introspector.getBeanInfo(Introspector.java:159)
    javax.faces.component.UIComponentBase.getPropertyDescriptors(UIComponentBase.java:130)
    javax.faces.component.UIComponentBase.(UIComponentBase.java:92)
    javax.faces.component.UIOutput.(UIOutput.java:83)
    javax.faces.component.UIInput.(UIInput.java:126)
    javax.faces.component.html.HtmlInputText.(HtmlInputText.java:28)
    com.sun.j2ee.blueprints.ui.autocomplete.AutoCompleteComponent.(AutoCompleteComponent.java:57)
    sco.Gestao.CadastroUsuario.(CadastroUsuario.java:350)
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeConstructorAccessorImpl.java:-2)
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    java.lang.Class.newInstance0(Class.java:350)
    java.lang.Class.newInstance(Class.java:303)
    java.beans.Beans.instantiate(Beans.java:204)
    java.beans.Beans.instantiate(Beans.java:48)
    com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:203)
    com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:298)
    com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:78)
    com.sun.rave.web.ui.appbase.faces.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:96)
    com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:125)
    com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
    com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.pageBean(ViewHandlerImpl.java:753)
    com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.pageBean(ViewHandlerImpl.java:728)
    com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:278)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
    com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
    com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
    com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
    com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)|

  • Portal Runtime Error - java.lang.NullPointerException in Role Permissions

    Hello All:
    I am getting a runtime error while trying to bring up permissions for copies of SAP delivered roles.
    Any help much appreciated.
    =================
    [EXCEPTION]
    #1#com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    Component : pcd:portal_content/com.sap.pct/admin.templates/iviews/editors/com.sap.portal.aclEditor
    Component class : com.sap.portal.admin.acleditor.ACLEditor
    User : TESTUSER
         at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:973)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:343)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
         at java.security.AccessController.doPrivileged(AccessController.java:242)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:215)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: java.lang.NullPointerException
         at com.sap.portal.admin.editor.pane.OutPane.calculatePEObjectId(OutPane.java:210)
         at com.sap.portal.admin.editor.pane.OutPane.createEditorLayout(OutPane.java:256)
         at com.sap.portal.admin.editor.pane.OutPane.setupComponent(OutPane.java:150)
         at com.sap.portal.admin.editor.pane.EditorPaneWrapper.mySetupComponent(EditorPaneWrapper.java:143)
         at com.sapportals.admin.wizardframework.components.FlowContainer.setupComponent(FlowContainer.java:129)
         at com.sapportals.admin.wizardframework.core.TrivialPaneFactory.getComponent(TrivialPaneFactory.java:35)
         at com.sapportals.admin.wizardframework.core.WizardInstance.doWizard(WizardInstance.java:229)
         at com.sap.portal.admin.editor.Editor.doWizard(Editor.java:605)
         at com.sap.portal.admin.editor.Editor.run(Editor.java:150)
         at com.sap.portal.admin.editor.AbstractEditorComponent.doContent(AbstractEditorComponent.java:59)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         ... 29 more
    #1.5 #001125C00D9B007C000005E00017E09600044CCF2EFD55C4#1210352637138#com.sap.portal.prt.runtime#sap.com/irj#com.sap.portal.prt.runtime#TESTUSER#121429##mdt2ds111_SC1_1097250#TESTUSER#30ca97d01de611ddac19001125c00d9b#SAPEngine_Application_Thread[impl:3]_10##0#0#Error##Java###05:03_09/05/08_0167_1097250
    [EXCEPTION]
    #1#java.lang.NullPointerException
         at com.sap.portal.admin.editor.pane.OutPane.calculatePEObjectId(OutPane.java:210)
         at com.sap.portal.admin.editor.pane.OutPane.createEditorLayout(OutPane.java:256)
         at com.sap.portal.admin.editor.pane.OutPane.setupComponent(OutPane.java:150)
         at com.sap.portal.admin.editor.pane.EditorPaneWrapper.mySetupComponent(EditorPaneWrapper.java:143)
         at com.sapportals.admin.wizardframework.components.FlowContainer.setupComponent(FlowContainer.java:129)
         at com.sapportals.admin.wizardframework.core.TrivialPaneFactory.getComponent(TrivialPaneFactory.java:35)
         at com.sapportals.admin.wizardframework.core.WizardInstance.doWizard(WizardInstance.java:229)
         at com.sap.portal.admin.editor.Editor.doWizard(Editor.java:605)
         at com.sap.portal.admin.editor.Editor.run(Editor.java:150)
         at com.sap.portal.admin.editor.AbstractEditorComponent.doContent(AbstractEditorComponent.java:59)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
         at java.security.AccessController.doPrivileged(AccessController.java:242)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:215)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    =====================

    Praveen:
    I have already tried this and it did not fix the problem.
    Here is something more bizarre, I get the error when the copied roles are in 3rd folder level after Portal Content.
    For instance:
    1) Portal Content > Test Folder 1 (ZContentAdmin)  ....... NO ERROR
    2) Portal Content > Test Folder 1 > Test Folder 2 (ZContentAdmin) .......... NO ERROR
    3) Portal Content > Test Folder 1 > Test Folder 2 > Test Folder 3 (ZContentAdmin) ..... ERROR
    Just to reiterate, custom roles work fine, it is just when I do a Copy/Delta copy of SAP delivered content roles.....
    Looking for a solution.
    Khurram
    Edited by: Khurram Mahmudi on May 9, 2008 9:32 PM

  • Runtime error - java.lang.NullPointerException

    Does anyone know what this runtime error is about?
    Exception in thread "main" java.lang.NullPointerException
    at tst.Test(tst.java:16)
    at tst.main(tst.java:44)
    cheers |:| > )

    yes, it means you are trying to access an index in the array which doesnt exist.
    For example if you have an array of ints:
    int[] someArray = {2, 5, 8, 3, 5};and you try to access the sixth element(it doesnt exist!) like follows:
    int someInt = someArray[5];This code will compile fine but will result in a run-time exception 'nullPointerException'. Note - Array indexes start at 0 is is normally the main cause for null pointer exceptions. Therefore index 5 is trying to access the sixth element in the array.
    Cath

  • File Locking using java.nio package

    I am trying to lock a file using FileChannel's lock method on a CIFS file system. My application is on windows and the CIFS is accessed using UNC format ( \\1.2.3.4\blah.. ). I get the following error
         java.io.IOException: The network request is not supported
         at sun.nio.ch.FileChannelImpl.lock0(Native Method)
         at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:750)
         at java.nio.channels.FileChannel.lock(FileChannel.java:865)
    From the same machine using the same UNC formatm, when I lock the file using windows C API, I can successfull lock.
    Anyone has any idea why JVM can not lock even using nio package. Shouldnt it use the same ( or similar ) API under the hood as its clear by the package name java.nio
    The C program I am using is
    #include <io.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <sys/locking.h>
    #include <share.h>
    #include <fcntl.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    void main( int argc, char **argv )
    int fh,numread;
    char buffer[40];
    char filename[500];
    /* Quit if can't open file or system doesn't
    * support sharing.
    if ( argc > 1 )
              strcpy(filename,argv[1]);
    else
              strcpy(filename,"locking.c");
    fh = sopen(filename , O_RDWR, SHDENYNO, //_SH_DENYRW,
    SIREAD | SIWRITE );
    if( fh == -1 )
    exit( 1 );
    /* Lock some bytes and read them. Then unlock. */
    if( locking( fh, LKNBLCK, 30L ) != -1 )
    printf( "No one can change these bytes while I'm reading them\n" );
    numread = _read( fh, buffer, 30 );
    printf( "%d bytes read: %.30s\n", numread, buffer );
    lseek( fh, 0L, SEEK_SET );
         printf( "Press a key to unlock the file.....\n" );
         getchar();
         locking( fh, LKUNLCK, 30L );
    printf( "Now I'm done. Do what you will with them\n" );
    else
    perror( "Locking failed\n" );
    _close( fh );
    }

    It uses LockFile and LockFileEx. Please check in the MSDN documentation the peculiarities of such APIs.
    JNIEXPORT jint JNICALL
    Java_sun_nio_ch_FileChannelImpl_lock0(JNIEnv *env, jobject this, jobject fdo,
                                          jboolean block, jlong pos, jlong size,
                                          jboolean shared)
        jint fd = fdval(env, fdo);
        HANDLE h = (HANDLE)_get_osfhandle(fd);
        DWORD lowPos = (DWORD)pos;
        long highPos = (long)(pos >> 32);
        DWORD lowNumBytes = (DWORD)size;
        DWORD highNumBytes = (DWORD)(size >> 32);
        jint result = 0;
        if (onNT) {
            DWORD flags = 0;
            OVERLAPPED o;
            o.hEvent = 0;
            o.Offset = lowPos;
            o.OffsetHigh = highPos;
            if (block == JNI_FALSE) {
                flags |= LOCKFILE_FAIL_IMMEDIATELY;
            if (shared == JNI_FALSE) {
                flags |= LOCKFILE_EXCLUSIVE_LOCK;
            result = LockFileEx(h, flags, 0, lowNumBytes, highNumBytes, &o);
            if (result == 0) {
                int error = GetLastError();
                if (error != ERROR_LOCK_VIOLATION) {
                    JNU_ThrowIOExceptionWithLastError(env, "Lock failed");
                    return sun_nio_ch_FileChannelImpl_NO_LOCK;
                if (flags & LOCKFILE_FAIL_IMMEDIATELY) {
                    return sun_nio_ch_FileChannelImpl_NO_LOCK;
                JNU_ThrowIOExceptionWithLastError(env, "Lock failed");
                return sun_nio_ch_FileChannelImpl_NO_LOCK;
            return sun_nio_ch_FileChannelImpl_LOCKED;
        } else {
            for(;;) {
                if (size > 0x7fffffff) {
                    size = 0x7fffffff;
                lowNumBytes = (DWORD)size;
                highNumBytes = 0;
                result = LockFile(h, lowPos, highPos, lowNumBytes, highNumBytes);
                if (result != 0) {
                    if (shared == JNI_TRUE) {
                        return sun_nio_ch_FileChannelImpl_RET_EX_LOCK;
                    } else {
                        return sun_nio_ch_FileChannelImpl_LOCKED;
                } else {
                    int error = GetLastError();
                    if (error != ERROR_LOCK_VIOLATION) {
                        JNU_ThrowIOExceptionWithLastError(env, "Lock failed");
                        return sun_nio_ch_FileChannelImpl_NO_LOCK;
                    if (block == JNI_FALSE) {
                        return sun_nio_ch_FileChannelImpl_NO_LOCK;
                Sleep(100);
        return sun_nio_ch_FileChannelImpl_NO_LOCK;
    }

  • Java SE 6 runtime error message

    My system keeps generating an error message:
    "To open “java,” you need a Java SE 6 runtime. Would you like to install one now?"
    How can I discover what is causing this?  I see (from another discussion) that a Facebook Video Chat file can be cause this message - I don't use Facebook on this system, so that's not the fix here.
    Should I install and be done with it?
    Thanks

    Triple-click anywhere in the line below on this page to select it:
    find /[AL]* -type d -name *.app -prune -exec sh -c 'ls -R "$1" | grep -q \.jar\$' {} {} \; -print0 2> /dev/null | xargs -0 basename -s .app | open -f -a TextEdit
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    A TextEdit window will open with the output of the command. If the command produced no output, the window will be empty. Post the contents of the TextEdit window (not the Terminal window), if any — the text, please, not a screenshot. The title of the window doesn't matter, and you don't need to post that.

  • Java.nio package

    Is there a good tutorial somewhere which explain in depth the new I/O package in JDK 1.4 java.nio?

    And there is the JavaWorld article at:
    http://www.javaworld.com/javaworld/jw-09-2001/jw-0907-merlin.html
    but the example code they give is a little broken, and
    the article is also a little confusing. But it can help a little.
    I have also started some threads on these forums about the bugs in that article.

  • Using ByteBuffer from java.nio package

    Hi,
    I have a java.nio.ByteBuffer object that is returned from the C++ code, created using NewDirectByteBuffer. I would like to use this ByteBuffer object in my java code to create a WritableRaster object. I would like to avoid an array copy here as the data may be huge.
    Could someone please let me know if there is a solution to this?
    Thanks in advance for any help.

    Warning: I know almost nothing about the java.awt.image package - so please take what Im going to suggest as the throw away, off the top of my head random rambling that it is......
    Could you implement a custom DataBuffer which sits on top of a NIO ByteBuffer? Already, custom DataBuffers provide access for certain data types (e.g. theres a DataBufferByte, DataBufferDouble which wrap arrays) - so I guess you could write a NIODataBufferByte - or what ever - which sits on top of a ByteBuffer.
    Im not sure how this would tie in with the SampleModel though (again, I dont know anything about this area).
    Hopefully someone who knows this stuff will come across this thread and actually give you some decent advice :o)
    ~D

  • To open "device manager" install Java SE 6 runtime error message on bouts

    Why does To open "device manager" install Java SE 6 runtime appear every time I boot up computer after installing upgrade to Yosemite 10.10 OS

    You must have some application called "device manager" which is set to run at startup. Do you know what it is?
    Go to System Preferences->Users and Groups, then select the "Login Items" tab and see what's there. Remove anything you don't recognize.
    If it's an application you know, and you want to run, then you're going to have to install Java on your machine. Honestly, I'd recommend against it; the application must be quite old.

  • Runtime error.Java.lang.nullPointerException: null at com.sap.guid.GUID.par

    Hi experts.
    My scenario is File --> PI --> File.
    During the message mapping there are a few RFC lockups.
    I have configured an communication component for the RFC destination, and a Receiver communication channel to the RFC system.
    When I am trying to check the message mapping and the operation mapping from the integration builder every thing works just fine.
    In the interface determination i have configured the rfc parameter for the mapping.
    When I am trying to run the hole process i receive an error saying:"Runtime exception from: java.lang.nullPointerException:
    null at com.sap.guid.GUID.parsHEXguid(guid.java:1015)
    reguars Max

    Did you test your operation mapping??
    Did you provide your RFC communication channel name and import parameters value in paramter tab of Operation mappi
    Yes I did.
    I have tested the operation mapping and it runs just fine.
    Also all the parameters are specified.
    And the communication channel is configured.
    Just to make sure the communication channel is configured well.
    Should it be configured as RFC adepter and connected to the system on which the RFCs are located?
    If this is all of the configuration needed i have already done them.
    Any suggestions?
    Regards Max.

Maybe you are looking for