Submit your java article

Freinds
Help the java community please submit your own java questions and article
www.scjpquestions.com
contains scjp articles and sample questions

The blind leading the blind?

Similar Messages

  • Trying to submit a wiki article but getting an error

    I have tried two times today to submit a wiki article but each time I see the following message:
    Sorry, there was a problem with your last request!
    Is the site currently down for maintenance? As well, how will I know if my article is being saved or not?
    Any help you can provide is appreciated.
    Ken

    With that error message I don't think your article got saved. Today's activity seems normal for a Sunday, so there doesn't seem to be an outage. But sometimes our work is not saved and we need to save again. You should try again.
    I cannot find any articles by you today. Usually when you save you can see the activity in two places. First, it should show on the main Wiki page that lists recent activity. Second, it should show in your profile on the activity tab. It is possible for
    the article to get saved and not show up in these two places, but your error message indicates it did not get saved.
    When I publish new articles I include my own personal tag, so I can quickly find my articles. You can do a tag search for all articles with any given tag. That is the most reliable way to be tell if the article exists. The tag I use is "rlmueller".
    On the main Wiki page I add to the url to do a tag search, so the url becomes as follows:
    http://social.technet.microsoft.com/wiki/contents/articles/tags/rlmueller/default.aspx
    This finds all articles with my tag. You can do similar, just substitute your own unique tag.
    Richard Mueller - MVP Directory Services

  • How to let users run your Java application

    Hello,
    I'm writing an application using JBuilder7 and it's wonderful designer: so far it is composed by only 2 class and imports java.awt.* and javax.swing.* (SDK 1.4)
    Now, I've yet to finish it but I was wondering: "how will users be able to use it?"
    I don't want them to install 30+ Mb of SDK so I've looked into the forums and elsewhere and come up with several answers:
    1) Let them install JRE: but it's 10+ Mb and they would need to download it separately from my program.
    2) Let them use somehow their browser's JVM..(should I turn my application into applet for this? I guess so)
    3) Make an .exe: I know there are many programs to make .exe from java but they would make a one-platform-based file.
    Also there were many hints about using .jar files to get things easier.
    Is there a 4th option in which users have to download only a few mbs to use the application?
    And about .jar, how should I use it?
    Thank you very much for all your help :)

    Simply put - the users must download or be supplied the JRE. This must be installed before they can execute your java application.
    As to distributing the application itself - You can jar (Java Archive) your classes into a single file.
    You could as has been suggested create an EXE, but these generally are very large and tend to severely restrict the range of java technologies able to be used (EG Serialization, RMI, Reflection, class loading, ...)
    Java is not intended for little tools that get installed separately - It is intended for larger applications or small applets in which case the download of the JRE is a minor concern.
    Note that applets targeting Java 1.1.7 functionality work fine with most old browsers inbuilt JVMs - Your customers browser may not however have an inbuilt JVM and the user will still need to download the JRE to execute a SWING based applets.
    Talden

  • How do you test your Java Pricing UserExits in eclipse?

    How do you test your Java Pricing UserExits in eclipse?

    do you have to deploy the java class on vmc server to debug it
    Yes
    - So, the classes have to be compiled error free and uploaded to VMC.
    - VMC has to be restarted to test your classes.
    - You have to set the log levels appropriately for your classes using SM53 / SM52.
    -  You can also perform VMC debug through Eclipse.
    all of the details are available in the pricing exit manual*

  • What are the simple to use COM library in your java code

    Hi,
    what are the simple to use COM library in your java code

    PhHein wrote:
    [javax/comm|http://java.sun.com/products/javacomm/reference/api/javax/comm/package-summary.html]
    No, he wants to use Windows COM objects!
    @OP
    It's not easy. You can try j-integra or ezjcom, which I tried years ago and was not too happy, but maybe
    they improved or they are just fine for your needs. $$$ involved!
    If you want to do it by yourself, it won't be easy at all, I promise, but it can be done with JNI or JNA.
    If your interactions are very few and simple, maybe some workarounds could be found.

  • Acrobat could not submit your data - trying to collect form data?

    Hi,
    I created a form in acrobat, i go through the process of distributing it, that is all successful but then i get this error:
    "Acrobat coudl not submit your data.  Please see Tracker for more information".
    But there is no information in the tracker?
    What can I do?
    Thanks

    Same here... not impressed by this product, frankly.
    It's nice to be trying do fancy things like automatically sending mails and supplying a collection web site, but that's no good when they fail providing simpler, basic functionality.

  • Java.lang.OutOfMemoryError:class Your Java heap size might be set too high.

    I am getting the below error while deploying some soa applications in WLS 10.3 on solaris platform.As a workaround,
    the server instance has to be restarted everytime i make the deployments when i face this OOM situations.
    usually i face this issue after first deployment onwards.
    So, everytime i make the next deployment the server instance has to be restarted before that.
    The server is configured with 1Gb JVM and runs on JRockit jrrt-4.0.0-1.6.0.
    MEM_ARGS="-Xms1g -Xmx1g -Xgcprio:throughput -Xverbose:gc -XX:+HeapDumpOnOutO
    fMemoryError -XXcompressedRefs:enable=true"
    Can anybody please provide any pointers to track/solve this issue?
    Log extract:
    ####<Oct 10, 2010 4:27:31 PM PST> <Error> <Deployer> <BOX1> <SERVER2> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <1256893524756> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1256893524756' for task '3'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1373)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:118)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:205)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:820)
    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1223)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:436)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:164)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    java.lang.OutOfMemoryError: class allocation, 21977184 loaded, 20M footprint in check_alloc (classalloc.c:213) 1412 bytes requested.
    Java heap 1G reserved, 1G committed
    Paged memory=18014398507524232K/16781304K.
    Your Java heap size might be set too high.
    Try to reduce the Java heap
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:335)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:288)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    at java.lang.Class.getConstructor0(Class.java:2699)
    at java.lang.Class.newInstance0(Class.java:326)
    at java.lang.Class.newInstance(Class.java:308)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1058)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1129)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:542)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:435)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:465)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:175)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1784)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2999)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1371)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:820)
    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1227)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:436)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Its running on Solaris 10 platform.The server is configured with 1Gb JVM and JRockit jrrt-4.0.0-1.6.0.
    MEM_ARGS="-Xms1g -Xmx1g -Xgcprio:throughput -Xverbose:gc -XX:+HeapDumpOnOutO
    fMemoryError -XXcompressedRefs:enable=true"
    Let me know if you need any more information to track this issue.

  • P6 EPPM 8.4 - Your Java version is out of date

    Hi
    I have installed P6 EPPM 8.4. I have followed the proper tested configuration guide (Java JDK and JRE versions).
    But each time when i login to P6 EPPM, a pop up is appearing "Java update needed. Your Java version is out of date"
    Every single time i navigate to another page, this message continuously appearing. How can i avoid this or overcome this?
    Any solution for this ????
    Regards

    Please implement the solution noted in the following KM note:
    "Your Java Version is Out of Date" Message When Accessing P6 (Doc ID 1571032.1)
    Regards,
    Pablo
    ========
    Was our answer helpful?
    If so, highlight the information for other Community members by rating it or marking the answer as correct.
    Just hit the “Correct Answer” link on the answer, or rate it by clicking "Helpful Answer" or "Like".

  • Why do I get: "An error occurred while trying to submit your post. Please try again."

    Hi, I get this error: "An error occurred while trying to submit your post. Please try again." when trying to reply to a post. Just started today. How can I resolve this?

    There are certain words and phrases which are banned because of spammers: if you inadvertently include one of these you usually get the message that you have included content which is not allowed.
    I've had the 'an error occurred' message several times; in each case I've copied the post, clicked the 'Cancel' button, waited a few seconds than then replied again, pasting in the text, and it's worked. It appears to be juste a server glitch.

  • Is it compulsory to Submit your builds using Xcode 5.1.1 or later, or Application Loader 3.0 or later?

    Is it compulsory to Submit your builds using Xcode 5.1.1 or later, or Application Loader 3.0 or later?
    What about application built on Xcode5.0?
    Is there any work around to upload the build of Xcode5.0?

    I'm getting the same error as well, using Xcode 6.1 (6A1042b) on OSX 10.9.5.  My project settings in Xcode have “Deployment Target” as “7.0” and “Base SDK” as “Latest iOS (iOS 8.1)”.  I uploaded the app via Xcode, not with the application loader and I've tried re-generating my distribution provisioning profile.
    This is an update to an existing app which was previously built against iOS 6.0 sdk but all attempts to submit the update now produce the error message "Apps and app updates submitted to the App Store must be built with Xcode 5.1.1 or later, and iOS 7 or later SDK."

  • Character format 'utf-8' not supported by your Java VM

    Hi All,
    I am Getting "Character format 'utf-8' not supported by your Java VM"  warning in Java Message monitoring also when I click view source on MainDocument (to view payload)it display as Chinese like character.
    Regards,
    Mani

    Hi Mani
    Are you using any custom module to generate the encoding in PI?
    UTF-8 should supported be by JVM.
    Is this the first time you are using this system?
    Is it happening with all the interfaces or for only this one?

  • Exception on submit changes java client writeback sample 10.1.2 db 10.2

    bi beans 10.1.2
    samples 10.1.2
    jdev 10.1.2
    db 10.2.0.2.0
    I tried to run java client sample (data writeback) and it became works properly and i saw data and graph but when i chose submit changes option then following execption occur and changes was not saved:
    java.sql.SQLException: ORA-33336: Analityczny obszar roboczy CS_OLAP.UTILS nie jest dołączony.
    (Analitical workspace CS_OLAP.UTILS is not bound)
    ORA-06512: przy "SYS.DBMS_AW", linia 93
    ORA-06512: przy "SYS.DBMS_AW", linia 180
    ORA-06512: przy linia 1
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:625)
         at racle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:180)
         at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:790)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1032)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2884)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2975)
         at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4111)
         at oracle.dss.datautil.SqlUtil.executeSQLinterp(SqlUtil.java:339)
         at oracle.dss.datautil.SqlUtil.executeCommand(SqlUtil.java:280)
         at samples.javaclient.BIWriteback.runModel(BIWriteback.java:670)
         at samples.javaclient.BIWriteback.access$6000771(BIWriteback.java:98)
         at samples.javaclient.BIWriteback$4.actionPerformed(BIWriteback.java:533)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
         at java.awt.Component.processMouseEvent(Component.java:5100)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
         at java.awt.Container.dispatchEventImpl(Container.java:1613)
         at java.awt.Window.dispatchEventImpl(Window.java:1606)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    Hi,
    What kind of token your .Net based web service is expected ? HTTP basic or WS-Basic UserToken ?
    In the 1st case you can specify during the client stub generation that your service required HTTP Basic Authentication and then the the wizard will generate the necessary Java code, with 2 additional attributes (username/password)
    In the 2nd case you can add some custom java code in order to add a soap header into the generated SOAP request, for instance the WS-Basic UserToken. More info available here :
    http://download-uk.oracle.com/docs/cd/B14099_12/web.1012/b14027/custom.htm#sthref1092
    Alternatively, you may consider the usage of JDeveloper 10.1.3 developer preview which supports JAX-RPC implementation and allows you to add such SOAP header via JAX-RPC handler, in a more standard way.
    You can also try out Oracle Web Services Manager which give you an out-of-the-box WS-Security infrastructure for heterogeneous environment (J2EE and .Net). For instance it gives you the possibility to translate automatically HTTP Basic protocol-level token into WS-Basic message-level token, as well as adding XML Encryption and XML Signature for your soap requests and responses. For more info please check here :
    http://www.oracle.com/technology/products/webservices_manager/index.html
    Hope this helps,
    Kiet
    Oracle Fusion Middleware Product Manager

  • How to determine what OS your java prog is running on?

    Is there a Java command to determine what OS your program is running on?
    Yes it IS important -- because there are things that are OS-specific, such as valid characters for filenames.
    I could just disallow ALL "shady characters", but then my program would be skipping a lot of GOOD files in Linux, which only disallows the '/' character.
    http://www.linuxboxadmin.com/articles/tools-and-utilities/linux/mac/windows-file-name-friction.html
    Any ideas how I should proceed?
    Matthew

    I assume, if it's looking at "ALL" files in a directory, that it is running in a loop, right? Well, put the try/catch in the loop, rather than around it, and let it throw an exception. Catch it and keep a list of files that didn't work. But then again, if you're talking about "reading" a file, this shouldn't be a problem, because if it is an invalid character, how did the file get there? and should it really be your worry?
    As far as writing one with a character like that, let the user enter tha name he wants, attempt to create it, and if it fails ask for another, and for those filenames that you generate within the program, stick to the "safe" characters.

  • Is there a way to find out if your java application is already running?

    Hi,
    Im trying to find a way to find out if my java app is already running in windows. Basically i've registered a file extension with my application and when i person opens that file it launches my app. Now the question is how do i know whether the client already has an instance of my app running (in which case i would then pass the filename to that instance) or if i need to launch a new instance?
    Also if it is the case that an instance is already running then how would i be able to pass that instance the filename that the user clicked on?
    thx

    Hi Rcp, staitc var wont probably work since the original poster is looking for uniqueness under all the JVMs runningin the box.
    to s_newave: for pre jdk1.4, your best bet is to go for socket (or RMI).
    when starting the application try to open a server socket on a predefined port. if you can not bind to that port, you can assume another instance of the application is already running. then pass the file name to the server. the server then should handle the request, and the instance you just started should quit.

  • Partial submit causing java.lang.ArrayIndexOutOfBoundsException?

    I am using Jdeveloper 11G (11.1.1.2.0).
    I am making a web application with JSF fragments, viewing a select one choice list and a table.
    I have two view objects and a view link linking them together.
    (Using HR database for example)
    ViewObject1: Select * from departments
    ViewObject2: Select * from employees
    ViewLink: :Bind_DepartmentId = DEPARTMENT_ID (for both source and destination)
    I have created one jspx page, a jsf page fragment and a bounded taskflow with the page fragment. Bounded taskflow is dropped on the jspx page as a region. In the fragment I take departments generated from the view link and drop it as a select one choice together with a previous and a next button. Then I drag the employee that is a sub-element of the department and drop it as a table. I set the select one choice to autosubmit = true. For the next and prev button i have tried both partial submit = true and partial submit= false. For the table I set the select one choice as partial trigger.
    If I use the select one choice drop down list I can select department and view the employees, but if I use the navigation buttons I get the following error:
    <Utils><buildFacesMessage> ADF: Adding the following JSF error message: Det oppstod et uventet unntak: java.lang.ArrayIndexOutOfBoundsException, mld=0
    oracle.jbo.JboException: JBO-29000: Det oppstod et uventet unntak: java.lang.ArrayIndexOutOfBoundsException, mld=0
         at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1574)
         at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3384)
         at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:8836)
         at oracle.adf.model.binding.DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:767)
         at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:667)
         at oracle.jbo.uicli.binding.JUIteratorBinding.refreshControl(JUIteratorBinding.java:475)
         at oracle.adf.model.binding.DCIteratorBinding.rangeRefreshed(DCIteratorBinding.java:873)
         at oracle.jbo.common.RowSetHelper.fireRangeRefreshed(RowSetHelper.java:175)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyRangeRefreshed(ViewRowSetIteratorImpl.java:3574)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2791)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:3011)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2635)
         at oracle.jbo.server.ViewRowSetImpl.refreshRowSet(ViewRowSetImpl.java:6733)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyDetailRowSets(ViewRowSetIteratorImpl.java:3508)
    --- And more -----
    If I do the same, but only with a jspx page and set parial submit for the buttons false its works.
    Anyone knows what's wrong?
    -Thomas
    Project example of my problem: http://heim.ifi.uio.no/tahannes/HRexample.zip (Run start in adfc-config)
    Edited by: Thomas H on Feb 18, 2010 10:58 AM
    Edited by: Thomas H on Feb 18, 2010 12:33 PM

    I found a solution to my problem. Since I have different view objects to update when I choose a value from the navigation list I removed the view link and created a valueChangeListener. This listener execute the query with parameters based on the value from the navigation list for each view object.
    public void UpdateAarUkeIterators(ValueChangeEvent valueChangeEvent) {
    BindingContainer bindings = getBindings();
    int newIndex = Integer.parseInt(valueChangeEvent.getNewValue().toString());
    DCIteratorBinding iter = (DCIteratorBinding) bindings.get("VoAarUke1Iterator");
    String periodenr = iter.getRowAtRangeIndex(newIndex).getAttribute("Periodenr").toString();
    /* ExecuteWithParams read this parameter, not sure if this is the best way to do it */
    FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("periodenr", ""+periodenr);
    OperationBinding operationBinding;
    bindings.getOperationBinding("ExecuteWithParams");
    operationBinding.execute();
    operationBinding = bindings.getOperationBinding("ExecuteWithParams1");
    operationBinding.execute();
    operationBinding = bindings.getOperationBinding("ExecuteWithParams2");
    operationBinding.execute();
    Not sure if this is the best way to do it, but it works.

Maybe you are looking for