Using Java to display a log file in a browser

Can anyone advise & provide sample code in order to forfill the above aim?
The log files would be on a Solaris server, so I guess the strategy would be to run an "rsh 10.1.1.10 -l username cat /errors/log1.log" and put the output to a browser? or not?
Any suggestions / alternatives will be most helpful. 3 Dukes up for it!
Thanks.

Try placing the following in a controler servlet:
try {
PrintWriter out = response.getWriter();
File file = new File("fileName");
BufferedReader reader = new BufferedReader(new FileReader(file));
String line = reader.readLine();
while(line != null) {
out.println(line);
line = reader.readLine();
} catch (FileNotFoundException fnfe) {
} catch (IOException ioe) {
}

Similar Messages

  • Using java to call a text file

    I am new to java and was wondering if there is a way of using java to call a text file on my server and use it to create a webpage using a template. Namely to click a link to a poem, and have the java automatically create a page from a text file of the poetry. I need to know if this is even possible, what I would need to look into, (IE: which software or applet to look for), and if there are any sites that anyone knows about that I could learn how to do this. currently I am having to create a page for every poem posted on my site, which takes a great deal of time, and I would like to speed the process up a bit if it is possible. Any suggestions would be greatly appreciated.

    Why a text file? I don't think it is a best practice of doing that. Just use a database, keep your poem collections there, and set up a jsp page that seek the database, and then display it on another jsp page. I guess you can find similar application in the sample projects provided by JSC.

  • Oc4j log file: many java.lan.NullPointerException in log file

    I use oc4j 10.1.3 Developer Preview 4
    I found many java.lan.NullPointerException in log file.
    I don't know if this is normal or not, but it makes me a little suspicious
    PEC Barnes

    As an example :
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2005-12-14T11:26:19.330+01:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>oracle</COMPONENT_ID>
    <MSG_TYPE TYPE="WARNING"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>yale.domain.com</HOST_ID>
    <HOST_NWADDR>129.233.33.12</HOST_NWADDR>
    <THREAD_ID>11</THREAD_ID>
    <USER_ID>barnes</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>129.233.33.12:6613:1134555978780:1</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>Caught exception: java.lang.NullPointerException.</MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[java.lang.NullPointerException
         at oracle.oc4j.admin.management.mbeans.J2EELogging.setLoggerLevel(J2EELogging.java:282)
         at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1079)
         at oracle.oc4j.admin.jmx.server.mbeans.model.DefaultModelMBeanImpl.invoke(DefaultModelMBeanImpl.java:604)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:221)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:228)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:822)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792)
         at oracle.oc4j.admin.jmx.ejb.MBeanServerEjbBean.invoke(MBeanServerEjbBean.java:343)
         at oracle.oc4j.admin.jmx.ejb.MBeanServerEjbBean.invoke(MBeanServerEjbBean.java:310)
         at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.evermind.server.ejb.interceptor.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:39)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:45)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:62)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:43)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:32)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:379)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:637)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:36)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:43)
         at com.evermind.server.ejb.interceptor.system.TxSupportsInterceptor.invoke(TxSupportsInterceptor.java:37)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:43)
         at com.evermind.server.ejb.interceptor.system.SecurityRoleInterceptor.invoke(SecurityRoleInterceptor.java:46)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:43)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:62)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:43)
         at com.evermind.server.ejb.interceptor.system.RunningStateInterceptor.invoke(RunningStateInterceptor.java:28)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:43)
         at com.evermind.server.ejb.StatefulSessionEJBObject.OC4J_invokeMethod(StatefulSessionEJBObject.java:840)
         at MBeanServerEjbRemote_StatefulSessionBeanWrapper0.invoke(MBeanServerEjbRemote_StatefulSessionBeanWrapper0.java:50)
         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.evermind.server.rmi.ServerRmiMessageHandler.doMethodCall(ServerRmiMessageHandler.java:560)
         at com.evermind.server.rmi.ServerRmiMessageHandler.handleMethodInvocation(ServerRmiMessageHandler.java:471)
         at com.evermind.server.rmi.ServerRmiMessageHandler.handleOrmiRequest(ServerRmiMessageHandler.java:262)
         at com.evermind.server.rmi.ServerRmiMessageHandler.dispatchRequest(ServerRmiMessageHandler.java:231)
         at com.evermind.server.rmi.RMIServerConnection.processReceivedCommand(RMIServerConnection.java:155)
         at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:151)
         at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:126)
         at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:105)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:534)
    ]]></SUPPL_DETAIL>
    </PAYLOAD>
    </MESSAGE>

  • How to view weblogic log files from a browser

    Hi,
    I am running WebLogic Server 7.03 on Solaris 8.
    I have one Admin and multiple Managed servers running.
    Each creates its own log file.
    Is there anyway I can access this log files from the browser ?
    In Apache, you can create a link from htdocs dir to the logs dir
    and then view the log files from the browser. Is there a similar
    mechanism in Weblogic server.
    A quick response is well appreciated.
    Thanks in advance.
    -Anil Varma

    If you are on a unix system you can do something similar by making an open
    directory webapp with symbolic links to the weblogic log directories. I suggest
    that you protect that webapp with administration access only.
    Sam
    Anil Varma wrote:
    Hi,
    I am running WebLogic Server 7.03 on Solaris 8.
    I have one Admin and multiple Managed servers running.
    Each creates its own log file.
    Is there anyway I can access this log files from the browser ?
    In Apache, you can create a link from htdocs dir to the logs dir
    and then view the log files from the browser. Is there a similar
    mechanism in Weblogic server.
    A quick response is well appreciated.
    Thanks in advance.
    -Anil Varma

  • How to perform dir listing of Weblogic log files from a browser

    Hi,
    I am running WebLogic Server 7.03 on Solaris 8.
    I have one Admin and multiple Managed servers running.
    Each creates its own log file.
    Is there anyway I can access this log files from the browser ?
    In Apache, you can create a link from htdocs dir to the logs dir
    and then view the log files from the browser. Is there a similar
    mechanism in Weblogic server.
    A quick response is well appreciated.
    Thanks in advance.
    -Anil Varma

    Hi,
    Open up admin console. Expand "Servers" node to view servers in domain.
    Right click on a server (or select Logging/ General tab) and select "view
    server log".
    Regards,
    Jon

  • Read/display updated LOG file

    I want to read from a LOG file, which is being appended periodically. I have written a java program which can process on the addition made to the LOG file and display the result (as soon as something is added to the LOG file)
    My prgram works fine if I use:
    tail -500 input.LOG | java myprog
    but when I use:
    tail -f input.LOG | java myprog
    nothing is displayed on the screen.
    Wat could be the solution? So that myprogram keeps on processing the updated file and displays the result on the screen as soon as LOG file is appended with new data?

    Here is my JAVA code: It reads a line and store it into an ArrayList.
    ArrayList alBuffer = new ArrayList();
    try{
    InputStreamReader reader = new InputStreamReader(System.in);
    BufferedReader br = new BufferedReader(reader);
    String strLine;
    int count = 0;
    while((strLine=br.readLine())!=null){
    System.out.println("<NEWLINE("+count+")>:"+strLine);
    alBuffer.add(count,strLine);
    ++count;
    }catch(Exception exc){
    System.out.println("EXCEPTION WHILE READING");
    exc.printStackTrace();
    Thanks,
    Sumit

  • How to fetch and display arbitrary log files from a managed host?

    We are creating a small management portal for a custom application and need a way to display, in a browser, the contents of an arbitrary log file located on an EM managed host. The effect we are looking for is similar to what you get when you show the contents of a database alert log using EM.
    I want to extend the EM agent to get the log and display the contents, but see two problems: (1) it seems like we would have to schedule the fetch of the log contents to happen on a regular basis and would not be able to do it on demand and (2) storing the results in the EM repository seems like it could consume a pile of storage, even if it only stores the logs for 24 hours.
    I am pretty sure we can bypass the repository somehow because I think the "show database alert log" EM process does so. Of course, I can't really be sure how this code is getting the alert log, but it seems reasonable to assume it is using the management agent.
    Is there some API for the EM Agent that I am missing?
    Any ideas would be appreciated.

    From within OEM it doesnt look possible. User defined metrics (UDM) can only return number or a string. The alertlog fetch is done via alertlogViewer.pl while being passed a couple of parameters.
    OEM does have a preliminary/rough api available at http://www.oracle.com/technology/products/oem/emx/index.html but I havent seen anyone make use of it yet.
    If you use just a web connection then you will probably run into security issues as a web server can usually only view/access stuff under their htmldoc dir.
    Seems like some non-OEM very custom code is what you seek..

  • Why is FCP_LOGIN displaying in log file

    We have a shell script that is registered and runs successfully in a dev environment. When we push this to a new environment we get the following values that display on the log file.
    FCP_REQID
    FCP_LOGIN
    FCP_USERID
    FCP_USERNAME
    FCP_PRINTER
    FCP_SAVE_OUT
    FCP_NUM_COPIES
    My main concern here is that the apps username/password is displayed in plain text. Why is this displaying in one instance but not the other? Any ideas how to turn this off? Could this be a setting in the concurent request?

    900441 wrote:
    We have a shell script that is registered and runs successfully in a dev environment. When we push this to a new environment we get the following values that display on the log file.
    FCP_REQID
    FCP_LOGIN
    FCP_USERID
    FCP_USERNAME
    FCP_PRINTER
    FCP_SAVE_OUT
    FCP_NUM_COPIES
    My main concern here is that the apps username/password is displayed in plain text. Why is this displaying in one instance but not the other? Any ideas how to turn this off? Could this be a setting in the concurent request?Please see these docs.
    Use Encrypt To Prevent Apps Pwd Being Displayed In Log/Sql Script [ID 377858.1]
    Encrypt Option: Apps Password not Passed to the fcp_login [ID 144850.1]
    How To Create A Custom Concurrent Program With Host Method and Pass Parameters To The Shell Script [ID 266268.1]
    Secure Configuration Guide for Oracle E-Business Suite 11i [ID 189367.1]
    Secure Configuration Guide for Oracle E-Business Suite Release 12 [ID 403537.1]
    Thanks,
    Hussein

  • Render Tree Table, got java.beans.IntrospectionException in Log file.

    Hi,
    I have a tree table defined in a jspx page. I got the following exception in the Log file when the UI try to render the tree table in the first time. This won't affect anything in the UI itself. It will render the tree table in the UI without problem. And this exception is only shown up in the Log for one time. However, I'd like to know why is that? How can I prevent such exception in the Log?
    I tried to add the try catch in the constructor of the backing bean for this page. But the exception is not from there.
    Please help!
    07/06/27 11:49:39 java.beans.IntrospectionException: Method not found: isAutoSyncEnabled
    07/06/27 11:49:39      at java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:89)
    07/06/27 11:49:39      at oracle.jbo.uicli.binding.JUCtrlHierNodeBindingBeanInfo.getPropertyDescriptors(JUCtrlHierNodeBindingBeanInfo.java:170)
    07/06/27 11:49:39      at oracle.jbo.uicli.binding.JUCtrlHierNodeBindingBeanInfo.<init>(JUCtrlHierNodeBindingBeanInfo.java:42)
    07/06/27 11:49:39      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    07/06/27 11:49:39      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    07/06/27 11:49:39      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    07/06/27 11:49:39      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    07/06/27 11:49:39      at java.lang.Class.newInstance0(Class.java:350)
    07/06/27 11:49:39      at java.lang.Class.newInstance(Class.java:303)
    07/06/27 11:49:39      at java.beans.Introspector.instantiate(Introspector.java:1454)
    07/06/27 11:49:39      at java.beans.Introspector.findExplicitBeanInfo(Introspector.java:410)
    07/06/27 11:49:39      at java.beans.Introspector.<init>(Introspector.java:359)
    07/06/27 11:49:39      at java.beans.Introspector.getBeanInfo(Introspector.java:159)
    07/06/27 11:49:39      at oracle.jbo.common.JboBeanUtils.getPropertyDescriptor(JboBeanUtils.java:20)
    07/06/27 11:49:39      at oracle.jbo.common.JboBeanUtils.getProperty(JboBeanUtils.java:61)
    07/06/27 11:49:39      at oracle.jbo.common.JboAbstractMap.internalGet(JboAbstractMap.java:65)
    07/06/27 11:49:39      at oracle.adf.model.binding.DCControlBinding.internalGet(DCControlBinding.java:733)
    07/06/27 11:49:39      at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGet(JUCtrlValueBinding.java:1789)
    07/06/27 11:49:39      at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.internalGet(JUCtrlHierNodeBinding.java:896)
    07/06/27 11:49:39      at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:649)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.model.HierNodeBindingPropertyResolver.getValue(HierNodeBindingPropertyResolver.java:49)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.model.FacesPropertyResolver.getValue(FacesPropertyResolver.java:90)
    07/06/27 11:49:39      at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
    07/06/27 11:49:39      at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:171)
    07/06/27 11:49:39      at com.sun.faces.el.impl.BinaryOperatorExpression.evaluate(BinaryOperatorExpression.java:185)
    07/06/27 11:49:39      at com.sun.faces.el.impl.ConditionalExpression.evaluate(ConditionalExpression.java:176)
    07/06/27 11:49:39      at com.sun.faces.el.impl.ExpressionString.evaluate(ExpressionString.java:134)
    07/06/27 11:49:39      at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:268)
    07/06/27 11:49:39      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
    07/06/27 11:49:39      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
    07/06/27 11:49:39      at oracle.adf.view.faces.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:55)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.ValueRenderer.getValue(ValueRenderer.java:63)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.ValueRenderer.getConvertedString(ValueRenderer.java:32)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.OutputTextRenderer.encodeEnd(OutputTextRenderer.java:56)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:173)
    07/06/27 11:49:39      at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:54)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:242)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.ColumnRenderer.renderKids(ColumnRenderer.java:143)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.table.TreeNodeColumnRenderer._renderNodeStampBasedOnAccessibilty(TreeNodeColumnRenderer.java:186)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.table.TreeNodeColumnRenderer.renderKids(TreeNodeColumnRenderer.java:110)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.ColumnRenderer._renderKids(ColumnRenderer.java:160)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.ColumnRenderer._renderTD(ColumnRenderer.java:319)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.ColumnRenderer._renderDataMode(ColumnRenderer.java:233)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.ColumnRenderer.encodeAll(ColumnRenderer.java:87)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.delegateRenderer(CoreRenderer.java:281)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.TreeTableRenderer.renderSpecialColumns(TreeTableRenderer.java:295)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer.renderSingleRow(DesktopTableRenderer.java:107)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.TreeTableRenderer$1.processRowImpl(TreeTableRenderer.java:431)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.table.TableUtils$RowLoop.processRow(TableUtils.java:100)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.TreeTableRenderer$1.loop(TreeTableRenderer.java:424)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.table.TableUtils$RowLoop.run(TableUtils.java:58)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.TreeTableRenderer._renderTableRows(TreeTableRenderer.java:463)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.TreeTableRenderer.renderTableRows(TreeTableRenderer.java:319)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer.renderTableContent(DesktopTableRenderer.java:366)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.TableRenderer.encodeAll(TableRenderer.java:237)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer.encodeAll(DesktopTableRenderer.java:80)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.TreeTableRenderer.encodeAll(TreeTableRenderer.java:139)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)
    07/06/27 11:49:39      at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
    07/06/27 11:49:39      at oracle.adf.view.faces.component.UIXCollection.encodeEnd(UIXCollection.java:456)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:317)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(ContextPoppingUINode.java:224)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.laf.oracle.desktop.HeaderRenderer.renderContent(HeaderRenderer.java:489)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(BorderLayoutRenderer.java:42)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(BorderLayoutRenderer.java:71)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.renderWithNode(UINodeRenderer.java:90)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.render(UINodeRenderer.java:36)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.ui.laf.oracle.desktop.PageLayoutRenderer.render(PageLayoutRenderer.java:76)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53)
    07/06/27 11:49:39      at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:54)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:242)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:265)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:65)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:147)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)
    07/06/27 11:49:39      at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
    07/06/27 11:49:39      at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:645)
    07/06/27 11:49:39      at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:568)
    07/06/27 11:49:39      at oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:100)
    07/06/27 11:49:39      at FlowStepsByActivityjspx._jspService(_FlowStepsByActivity_jspx.java:2154)
    07/06/27 11:49:39      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    07/06/27 11:49:39      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    07/06/27 11:49:39      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:598)
    07/06/27 11:49:39      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:522)
    07/06/27 11:49:39      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    07/06/27 11:49:39      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
    07/06/27 11:49:39      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
    07/06/27 11:49:39      at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:286)
    07/06/27 11:49:39      at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
    07/06/27 11:49:39      at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:192)
    07/06/27 11:49:39      at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
    07/06/27 11:49:39      at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:197)
    07/06/27 11:49:39      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
    07/06/27 11:49:39      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
    07/06/27 11:49:39      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
    07/06/27 11:49:39      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
    07/06/27 11:49:39      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
    07/06/27 11:49:39      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
    07/06/27 11:49:39      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
    07/06/27 11:49:39      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
    07/06/27 11:49:39      at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
    07/06/27 11:49:39      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    07/06/27 11:49:39      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
    07/06/27 11:49:39      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
    07/06/27 11:49:39      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
    07/06/27 11:49:39      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
    07/06/27 11:49:39      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
    07/06/27 11:49:39      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
    07/06/27 11:49:39      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    07/06/27 11:49:39      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    07/06/27 11:49:39      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    07/06/27 11:49:39      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    07/06/27 11:49:39      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    07/06/27 11:49:39      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    07/06/27 11:49:39      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)

    Hi, Frank:
    Thanks for your reply. This problem is what happened in JDeveloper 10.1.3.2.
    I am using the JDeveloper Studio Edition Version 10.1.3.2.0.4066.
    Build JDEVADF_10.1.3.2.0_NT_070118.1250.4066
    ADF Business Components: 10.1.3.40.66
    Oracle ADF Faces: 10.1.3.40.66
    Java Platform: 1.5.0_06

  • Validation and displaying as log file

    hi i need to do some validation! actually in my program the delivering country and the import code works as the key. so i need to check that the delivering country and the import code is present in a table t604.(i am updating data from presentation server to an internal table)
    and also i need to check that whether the country of origin is in the table t005 or not.
    if the validations are success then put those into a log file and dsiplay otherwise put the error record in a log file and display and also the total; no of error records and the no of records!!
    can u people plss help me!!

    Dear Sonia,
    u can try this.
    1. Make the dropdown fields mandatory( by changing 'State' property.)
    2. Use the "Check_mandatory_attr_on_view " method...
    Just follow the code........
    data:
    lo_view_controller        TYPE REF TO if_wd_view_controller,
    msg_tab                     TYPE cl_wd_dynamic_tool=>t_check_result_message_tab.
      lo_view_controller = wd_this->wd_get_api( ).
        cl_wd_dynamic_tool=>check_mandatory_attr_on_view(
        EXPORTING
        view_controller = lo_view_controller
        IMPORTING
        messages = msg_tab ).
    Hope this will solve ur purpose. Let me know...
    Regards,
    Aditya.

  • Using java to add, delete AS400 file members

    Caling all Jav/AS400 gurus!! I have developed a J2ee application that goes against the AS400 database. I am able to create and delete physical and logical file members using the following code:
    //create new file member
    public String addPhysicalMember(
         String fName,
         String member,
         String libName,
         String errMsg,
         String callCommand,
         String vendParm) {
              callCommand = "ORDPMBRJVA";
              fName = "ORDER ";
         CommandCall callComm = new CommandCall();
         AS400 sys = new AS400("AS400", "guest", "guest");
         if (vendParm.equals("9999")) {
              try {
              callComm =
                        new CommandCall(
                             sys,
                             "CALL BIGY/"
                                  + callCommand
                                  + " PARM('"
                                  + fName
                                  + "' '"
                                  + member
                                  + "' '"
                                  + libName
                                  + "' '"
                                  + errMsg
                                  + "')");
                                                 callComm.run();
                   // Show the messages (returned whether or not there was an error)
                   AS400Message[] messagelist = callComm.getMessageList();
                   for (int i = 0; i < messagelist.length; ++i) {
                        // Show each message
                        System.out.println(messagelist.getText());
              } catch (Exception e) {
                   System.out.println("Command " + callComm.getCommand() + " did not run!");
         // done with the system
         sys.disconnectService(AS400.COMMAND);
         return errMsg;
    //create new logical member
    public String addLogicalMember(
         String fName,
         String member,
         String libName,
         String errMsg,
         String callCommand,
         String vendParm) {
         CommandCall callComm = new CommandCall();
         AS400 sys = new AS400("AS400", "guest", "guest");
         if (vendParm.equals("9999")) {
              try {
                   callComm =
                        new CommandCall(
                             sys,
                             "CALL BIGY/"
                                  + callCommand
                                  + " PARM('"
                                  + fName
                                  + "' '"
                                  + member
                                  + "' '"
                                  + libName
                                  + "' '"
                                  + errMsg
                                  + "')");
                                                 callComm.run();
                   // Show the messages (returned whether or not there was an error)
                   AS400Message[] messagelist = callComm.getMessageList();
                   for (int i = 0; i < messagelist.length; ++i) {
                        // Show each message
                        System.out.println(messagelist[i].getText());
              } catch (Exception e) {
                   System.out.println("Command " + callComm.getCommand() + " did not run!");
         // done with the system
         sys.disconnectService(AS400.COMMAND);
         return errMsg;
    I delete the file members the same way, basically, I have a similar method that calls a different AS400 command.
    I check to AS400 to make sure the members (both physical and logical)have been deleted. The are deleted. However, when I go to use that member name again, my program blows up with the error message "member name already exists." For the user's sake, they need to reuse the member file names over.
    When I run the commands on the AS400, they work each time without fail, creating and deleting the same member as often as desired. Is there something missing from my code? Any help you can give me is greatly appreciated.
    Thanks, jlav143

    I check to AS400 to make sure the members (both physical and logical)have been deleted. The are deleted. However, when I go to use that member name again, my program blows up with the error message "member name already exists." For the user's sake, they need to reuse the member file names over.It looks like your "checking" isn't very accurate, then. But I can't comment on your code for removing members because I can't see the commands you are using -- and it looks sort of like you're calling your own CL program to do that anyway. Why don't you just clear the members instead of deleting them and then adding them back?

  • Creating Bar Charts using Java and Display in jsp

    Hi..Is it possible to create a servlet that processes data from database and display the values as Bar Charts in jsp pages. If its possible, is there any examples on how to achieve that?

    I don't get it. You already know what needs to be done to solve your problem, the only thing you are missing is the HOW. That's the easy part, if only you break down what you have to know:
    1) how do I show an image on a website (this is a basic HTML question actually, not actually related to servlets/JSPs directly)
    2) how do I fetch the path from a database (JDBC question) so that I can use this path to link to my image on disc
    So what is preventing you from figuring out how to do these two simple tasks? Some clever google searches should give you all the information you need in no time.
    by the way: are you sure that you need to store these paths in the database? Is this part of some file upload component?

  • How does one regenerate a Book using a previously generated *.bk log file?

    I could swear that I've done this before, but I can't remember the correct steps to take.  I'm using FrameMaker v10.  Thanks.

    You don't/can't. Just use the Edit > Update Book (or Alt-F6) to regenerate.
    If by "regenerate" you mean to create a new version of a book, then just add the required files to a new book file and set your options as required.

  • Process with RenderPDFForm using Java API not generating output file

    I have a short-lived process that renders a PDF/HTML form based on input parameters. It also takes a .xdp file as input. This works just fine from with
    in Workbench (9.0). I have created a Java client to invoke this process. When I invoke the process from the Java Client,
    it is not creating the output file. When I look at the invocation response, I see the output parameter (output file) name, but it is null.
    Here is my code.
    Properties connectionProps =
    new Properties(); 
    connectionProps.setProperty(
    "DSC_DEFAULT_SOAP_ENDPOINT", "http://hostname:8080");connectionProps.setProperty(
    "DSC_TRANSPORT_PROTOCOL","SOAP"); 
    connectionProps.setProperty(
    "DSC_SERVER_TYPE", "JBoss"); 
    connectionProps.setProperty(
    "DSC_CREDENTIAL_USERNAME", "username"); 
    connectionProps.setProperty(
    "DSC_CREDENTIAL_PASSWORD", "password"); 
    //Create a ServiceClientFactory object
    ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
    //Create a ServiceClient object
    ServiceClient myServiceClient = myFactory.getServiceClient();
    //Create a Map object to store the parameter value
    Map params =
    new HashMap();
    File file =new File("C:/test1/test.xdp");File ofile =
    new File("C:/TestProcess.pdf"); 
    //String formName = "RD410-4.xdp";
    InputStream inFile =new FileInputStream(file);OutputStream oFileStream =
    new FileOutputStream(ofile); 
    byte[] cData = "".getBytes(); 
    Document inputData =
    new Document(inFile); 
    // Document outputData = new Document(oFileStream);
    inputData.passivate();
    params.put("Form", inputData);params.put(
    "FormId", "12");params.put(
    "RevId", "12");params.put(
    "OutputType", "PDF");params.put(
    "targetSubmission", "http://localhost:8090/LCWebProject/HandleData");params.put(
    "param1",1);
    InvocationRequest invokeRequest = myFactory.createInvocationRequest(
    "MyApplication10/Processes/RenderForm", //Specify the short-lived process name
    "invoke", //Specify the operation name
    params,
    //Specify input values
    true); //Create a synchronous request
    InvocationResponse invokeresponse = myServiceClient.invoke(invokeRequest);
    Document encryptDoc = (Document) invokeresponse.getOutputParameter("outputFile"); 
    //Save the encrypted PDF document returned by the process
     //Save the password-encrypted PDF document
    File outFile =new File("C:\\test1.pdf");encryptDoc.copyToFile (outFile);
    I see the output parameter "outputFile" in the invokeresponse object. But it is null.
    Can anyone guide me in the right direction ?
    Thanks,
    Jyothi

    I am not giving the solution, providing you a hint..
    This is the query you need to satisfy,
    SELECT NVL(R.DESCRIPTION ,CP.USER_CONCURRENT_PROGRAM_NAME)
    FROM FND_CONCURRENT_REQUESTS R, FND_CONCURRENT_PROGRAMS_VL CP,XDO_DS_DEFINITIONS_B XDS
    WHERE ( ( FND_PROFILE.VALUE('CONC_REPORT_ACCESS_LEVEL') = 'U'
    AND R.REQUESTED_BY = :$PROFILES$.USER_ID ) or
    ( FND_PROFILE.VALUE('CONC_REPORT_ACCESS_LEVEL') = 'R'
    AND R.RESPONSIBILITY_ID = :$PROFILES$.RESP_ID ) )
    AND R.PROGRAM_APPLICATION_ID = CP.APPLICATION_ID
    AND R.CONCURRENT_PROGRAM_ID = CP.CONCURRENT_PROGRAM_ID
    AND XDS.APPLICATION_SHORT_NAME=
    ( SELECT APPLICATION_SHORT_NAME
    FROM FND_APPLICATION
    WHERE APPLICATION_ID=CP.APPLICATION_ID)
    AND XDS.DATA_SOURCE_CODE = CP.CONCURRENT_PROGRAM_NAME
    AND R.OUTPUT_FILE_TYPE='XML'
    AND R.STATUS_CODE not in ('E', 'D', 'T', 'X')
    ORDER BY R.REQUEST_ID DESC
    Go to system profiles and query for 'Concurrent:Report Access Level', responsibility you need and modify the profile name accordingly....

  • Use JSP to display MS Word file

    Hi All,
    I have a JSP web application running on Mac OS X server and have some MS Word files on the server. I want to render the MS Word files to HTML, embed it as part of the web page. Is it possible at all? If so, where to start?
    Any adviced will be highly appreciated. Thanks.

    hi,
    try this in browser..
    tools->internet options->security->custom level
    here you will find Active x controls and plugis..
    enable all of them and try your applications..
    if it is helpful pl give some points buddy:-)
    regards,
    Kranthi.

Maybe you are looking for

  • Problem in creating a process

    Hi, I am trying to go through the excercize provided by teched for guided solution. When I am trying to create Process after creating a folder it gives the following exception: Caused by: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad

  • Killer network settings on Z87-G45

    Anyone is having problems imputing the Internet Provider Speed in the Killer Network Manager using decimals? For the life of me, every time I put either 2.5 or 2,5 and hit apply, it turns into 25 Mbps. Only option is to use whole numbers like 2 or 3

  • File to file scenario but transport protocol is NFS

    send me step by step screenshot for file to file in sap pi 7.1 scenario but transport protocol is NFS

  • SQL Profiler's equivalent in Oracle.

    Hi All, We are using Oracle 10g as backend for our application. We would like to see which database objects (stored procedures, functions, triggers etc) are getting called at the Oracle database server when various users connect to the application an

  • Apple Bluetooth keyboard not pairing under Bootcamp/Windows7

    My Apple keyboard that came with MacPro1.1 does not pair when using it with BootCamp and Windows 7. I installed bootcamp and Windows7 today. My machine is running OSX 10.6.8 and Bluetooth software version 2.4.5f3. The Apple mouse pairs under Windows