Invoking a browser via java application

I just downloaded code (to launch a browser) at:
http://www.javaworld.com/javatips/jw-javatip66_p.html
It brings up IE ONLY if it's not running already. But when it does launch IE, it does not resolve the website URL. It only produces a blank page...no errors, just blank...
Any ideas on that one?
BTW, make sure you add :
import java.io.*;
otherwise, the "catch" statement will not compile.
Thanks,
Bob

It is absolutely normal that it only launches IE, because it actually launches Windows Explorer with a URL as parameter, and the Explorer hands it over to IE.
Otherwise the program should have to guess what is your default browser and its path, which probably can't be done without reading the registry, something java can't do.
All the program does is to launch a command :
rundll32 url.dll, FileProtocolHandler <url here>
type this command through Start menu -> Run dialog box and see if it opens the url. If it doesn't, then the problem is in your system. It opens the url on my comp.

Similar Messages

  • How do i  open browser in java application

    hi....
    please help me!!!!!!!!!!!!!!!!!!!!!!!!!!
    how do i open browser in java application ? ( for show javascript in java application)
    thank you.......

    You can run any program from java by doing
    Runtime.getRuntime().exec("mybrowser myjavascriptfile.js");
    The real question is why would you want to.
    I would suggest you rethink whether running Javascript from Java is a good idea.

  • How to invoke a browser from an Application button  with a specified URL

    Hi
    I am trying to invoke a browser by clicking a button on my Application .I want the browser to come up with the URL I decide before i click on the button.
    To invoke the browser i am using the Runtime class. and then using the Runtime.exec() method .
    But thats only half the solution.(Loading a specific URL decided at runtime is a problem)
    Is there a way out ??
    Thanks
    Pranav

    Hi there,
    You have already reach to solution, just specify parameter as your URL to iexplore.exe in Runtime.exec() command.
    Like if you running from command prompt , it will look like something below
    C:>directory where iexplore is>iexplore java.sun.com
    for java Runtime.exec("iexplore.exe","java.sun.com");
    hope it will help you out,
    Dhwanit Shah

  • How to connect other mobile web browser to java application.

    I'm trying to write an application in j2me and wondering how can i take the requested url from the default web browser of mobile phone to my java application and download page using java application and send the downloaded data to that browser.
    I don't know any API that do this.
    Please help...

    take a look at [Java ME Content Handler API (CHAPI), JSR 211|http://java.sun.com/products/chapi/]
    - CHAPI +"...manages the action to handle [Uniform Resource Identifiers|http://en.wikipedia.org/wiki/Uniform_Resource_Identifier|Wikipedia article] (URI) based on a MIME-type or scheme. CHAPI provides the capabilities for browsers and native applications as well as Java ME applications to invoke other Java ME applications which dynamically extend the media types and capabilities supported by the device's application environment...."+

  • Closing the IE browser thro' Java application

    Hi,
    I have a requirement wherein I have to close the applications launched like (Internet exploer window) thro my java application.
    Can anyone help me on this?
    I tried using Runtime class Process.destroy( ) method. But still not able to find the exact one.
    Thanks.

    maybe this is because the code did not create the process directly, ao destory() method doesn't work as expected.
    Process ps = Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + "my website open here")
    maybe ps not reference to the process create by rundll32
    then there is no way to close a browser directly from java application?

  • Invoking jvm from a java application

    hello people,
    i would like to run a java application 'B' from within another java application 'A'. i have a thread sub class that does this. it is given
    below: (please pay attention to the run method)
    import java.io.*;
    import javax.swing.*;
    public class InvokingThread extends Thread
    private File n=null;
    private JTextArea outputArea;
    private String message="",action="";
    private String pathToBin,errors,input,classpath;
    private EvaluatorClient clientRef;
    //initialize InvokingThread object
    public InvokingThread(File name,String act,String path,String cp)
    outputArea=new JTextArea(10,25);
    outputArea.setEditable(false);
    outputArea.setLineWrap(true);
    n=name;
    pathToBin=path;
    classpath=cp;
    action=act;
    System.out.println((action.equals("compile"))?"compiling":"executing");
    public void setClientRef(EvaluatorClient r)
    clientRef=r;
    //process action
    public void run()
    Process proce=null;
    try
    if(action.equals("compile"))
    proce = Runtime.getRuntime().exec(pathToBin+"/javac "+n);
    else if(action.equals("execute"))
    proce = Runtime.getRuntime().exec(pathToBin+"/java "+classpath+" "+n); //run application
    Thread.sleep(5000);
    byte[] errorData = new byte[proce.getErrorStream().available()];
    proce.getErrorStream().read(errorData);
    byte[] inputData = new byte[proce.getInputStream().available()];
    proce.getInputStream().read(inputData);
    errors = new String(errorData);
    input = new String(inputData);
    System.out.println((errors.length()>0)?"error string"+errors:"no errors");
    System.out.println((input.length()>0)?"input string"+input:"");
    if (errors.length() == 0 & action.equals("compile"))
    outputArea.setText("Compiled successfully");
    if(clientRef!=null)
    if(!clientRef.isTimeUp())
    clientRef.toggleMenuItemState(4,true);
    clientRef.toggleMenuItemState(5,true);
    clientRef.compilationOutcome("success");
    JOptionPane.showMessageDialog(null,new JScrollPane(outputArea));
    else if (errors.length() != 0 & action.equals("compile"))
    outputArea.setText("Compile Errors:\n" + errors+""+input);
    if(clientRef!=null)
    clientRef.compilationOutcome("failure");
    JOptionPane.showMessageDialog(null,new JScrollPane(outputArea));
    else if(action.equals("execute"))
    if(errors.length() != 0)
    outputArea.setText("Runtime errors:\n" + errors);
    JOptionPane.showMessageDialog(null,new JScrollPane(outputArea));
    else if(input.length()!=0 )
    outputArea.setText(input);
    JOptionPane.showMessageDialog(null,new JScrollPane(outputArea));
    catch(Exception e)
    e.printStackTrace();
    System.out.println("thread awake,invoking thread terminating");
    }//end run
    The above code worked when i used it with the rest of my program.
    as we can see the thread waits for 5 seconds before it reads the inputstream and error stream of the sub process returned by Runtime.getRuntime().exec(). But what happens after the thread terminates; i am unable to process subsequent runtime messages/exceptions from the application 'B'.
    so my question goes thus: is there a way that my thread can continually listen to the error stream and input stream of the sub process while application 'B' is still running so as to process any messages returned by java form the application 'B' ? or is there a better way of doing what i set out to achieve i.e running a java application from within another java application
    timi

    Runtime.getRuntime().exec("rundll32
    url.dll,FileProtocolHandler
    mailto:[email protected]&subject=Foo&body=Bar");yawmark, where do you get such information from? (in all seriousness :-) )
    How (the hell) can you find out what args to pass to a program?
    and is "FileProtocolHandler" a place-holder? if so what for?
    thanks, :)
    lutha

  • Lauch IE browser from Java Application

    Hi, I am interested in launching an IE window from a Java application. Is there a way
    to accomplish this? Thanks.

    Again, any other way that allows me to start a java application and IE browser on WINDOWS2000 would be helpful too.

  • SENDING RINGTONES VIA JAVA APPLICATIONS

    Greetings,
    I am developing a Java application which would send ringtones to any mobile phone anywhere in the world. I composed the ringtones using an application called NokRing and have them stored in my hard disk in .wav format.
    How do I go about the whole process? What all would I be needing for the whole sending process to work? Where can I get more info about this?
    I am currently based in New Delhi- India and hold an Essar card (Essar is one of the mobile service providers in New Delhi).
    By the way this second question might seem out of place here but I dont know of any other forum where this question would be appropriate. WHAT IS AN SMS SERVER? Would I be required to buy an SMS server for my aforementioned Java application?
    If it helps I have a Windows 2000 professional edition and Apache and Cocoon (latest) installed and configured.
    Eagerly waiting for an early response.
    SNODX
    [email protected]
    NOTE: I first tried to locate a website that would send ringtones free of cost, to atleast get an experience on sending ringtones. But I couldnt find any site that offers free ringtones for New Delhi- India

    OK then atleast tell me how do I send a ringtone to my own mobile (the ones which I have stored in my local hard disk in .wav format)?As far I knowt here is three ways to transfer ring tones to ur cell phone
    *directly from a Cell phones related web sites,which is approved by your Service provider.
    * from your friends cell phone to yours via SMS
    *or you must be having a SIM card reader thru which you may be able to store ring tones in ur SIM card.
    There is a SIM card reader available for $199.
    For more details ,visit this link:
    http://store.gemplus.com/dr/v2/ec_MAIN.Entry10?xid=33380&SP=10023&PN=1&V1=294129&DSP=&CUR=840&PGRP=0&CACHE_ID=0
    Also I would like to know what exactly is an SMS server *Sorry I dont have any idea about SMS Server.
    :)

  • Possible to Invoke MS Word with Java Application?

    Is it possible to invoke Microsoft Word to open a word doc with a Java application?
    If yes, what API or knowledge should I know to do this?
    Please give some advice.

    Using the various forms of the exec() method in the Runtime class, you can execute arbitrary programs, such as MS Word. exec() returns a Process instance, which you can do various things with such as get input/output streams, kill, etc. Note the parameters to the exec() method are platform specific, because of differing command shell names, path separators, etc. So you will definitely have to experiment and see what works on your platform:
    Process msWord = Runtime.getRuntime().exec( "cmd.exe /C winword.exe" );That is one of the general idioms for using exec(), like I say you will have to experiment to see what variant of exec() works for you. Try searching these forums, this question has been answered numerous times before.

  • Invoking BPEL process into Java application

    Hi,
    I have created a student admission form using Java in eclipse editor.I want send the total payload to bpel process.For that i need to call bpel from java application.
    So If any one have any idea regarding this,please share with me.
    With Regards
    Jyoti
    Edited by: Jyoti on Mar 16, 2011 5:23 AM

    Hi,
    a BPEL process is exposed by a WSDL reference. Create a JAX-WS proxy client and call the WS port therein from Java. The port then grants you access to the exposed methods in BPEL. Before you ask how to create a JAX-WS proxy client in Eclispse - I don't know as this is JDeveloper forum. So you may want to post the question to an Eclipse forum. I can tell how you do it in JDeveloper though
    Frank

  • Invoke JCAPS webservice from Java Application

    I am getting
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
    faultSubcode:
    faultString: JAXRPC.TIE.01: caught exception while handling request: unrecognized operation: Test
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace: AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
    faultSubcode:
    faultString: JAXRPC.TIE.01: caught exception while handling request: unrecognized operation: Test
    faultActor:
    faultNode:
    faultDetail:
    JAXRPC.TIE.01: caught exception while handling request: unrecognized operation: Test
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
    at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl. java:1015)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser. java:633)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocum entScannerImpl.java:719)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDisp atcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDoc umentFragmentScannerImpl.java:368)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.jav a:834)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.jav a:764)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java: 1242)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
    ==========================================================
    JAVA CODE :
    public static void main(String[] args) {
    // TODO code application logic here
    try {
    WebServiceClient wsClient = new WebServiceClient();
    String strTargetNameSpaceIn ="urn:stc:egate:jce roject3_Collaboration_1" ;
    String strPortNameIn = "ExecutePortType";
    String strServiceNameIn ="Project3_Collaboration_1Service" ;
    String strOperationNameIn ="Test" ;
    //String strWebserviceURLIn = "http://165.68.202.246:8080/uddidocs/Nonesecurewebservice/testweb3/jc/wsdl_jce_jc-2145777518.wsdl";
    String strWebserviceURLIn = "http://localhost:8080/uddidocs/EnvUCHDevLocal/Project3/Collaboration_1/wsdl_jce_Collaboration_1771627736.wsdl ";
    String strInputIn = " Test JCAPS WebService ";
    String output = wsClient.callWebService(strTargetNameSpaceIn,strPortNameIn,strServiceNameIn,strOperationNa meIn,strWebserviceURLIn,strInputIn);
    System.out.println("WebService Output " + output);
    } catch (Exception err) {
    System.out.println( " EXCEPTION OCCURED");
    err.printStackTrace();
    public String callWebService(String strTargetNameSpace,String strPortName,String strServiceName,String strOperationName,String strWebserviceURL,String strInput) throws ServiceException, MalformedURLException, RemoteException
    if(strTargetNameSpace==null || strPortName == null || strServiceName == null || strOperationName == null || strWebserviceURL ==null || strInput == null )
    throw new IllegalArgumentException();
    ServiceFactory factory = ServiceFactory.newInstance();
    // for webservice target namespace
    String targetNamespace =strTargetNameSpace;
    // for webservice name
    QName serviceName = new QName(strTargetNameSpace,strServiceName);
    // for webservice port name
    QName portName = new QName(strTargetNameSpace,strPortName);
    // for operation name
    QName operationName = new QName("urn:stc:egate:jce roject3:Collaboration_1WSDL:Test",strOperationName);
    // for url of webservice ".wsdl" file
    URL wsdlLocation = new URL(strWebserviceURL);
    if(wsdlLocation==null)
    throw new ServiceException();
    // for bind to service name with wsdl file
    Service service = factory.createService(wsdlLocation, serviceName);
    // for call to webservice using operation name
    Call call = service.createCall(portName, operationName);
    String result = null;
    try{
    System.out.println(" STR INPUT" + strInput);
    result = (String) call.invoke(new Object[] {strInput});
    }catch(Exception e){
    e.printStackTrace();
    result="Occur webservice processing error";
    if(result==null)
    result="Occur webservice processing error";
    String str = "Webservice Responce from :"+strWebserviceURL;
    return result;
    }//close function
    =========================================================
    WSDL FILE :
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="Project3_Collaboration_1" targetNamespace="urn:stc:egate:jce roject3_Collaboration_1" xmlns:tns="urn:stc:egate:jce roject3_Collaboration_1" xmlns:inMsg="http://dn1318d-uwsxp:13000/repository/UCHDevLocal/Project3/UCHDevLocal23b1e1:1192e3ad66a:-8000/XSDDefinition1" xmlns:errMsg="urn:stc:egate:jce:JavaException" xmlnsutMsg="http://dn1318d-uwsxp:13000/repository/UCHDevLocal/Project3/UCHDevLocal23b1e1:1192e3ad66a:-7fff/XSDDefinition2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">
    <import namespace="http://dn1318d-uwsxp:13000/repository/UCHDevLocal/Project3/UCHDevLocal23b1e1:1192e3ad66a:-7fff/XSDDefinition2" location="XSDDefinition2.xsd"/>
    <import namespace="http://dn1318d-uwsxp:13000/repository/UCHDevLocal/Project3/UCHDevLocal23b1e1:1192e3ad66a:-8000/XSDDefinition1" location="XSDDefinition1.xsd"/>
    <types>
    <xs:schema elementFormDefault="qualified" id="UID-20000000-DC88392E190100-A544977D-01" targetNamespace="urn:stc:egate:jce:JavaException" xmlns="urn:stc:egate:jce:JavaException" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="JavaException" type="JavaExceptionType"/>
    <xs:complexType name="JavaExceptionType">
    <xs:sequence>
    <xs:element name="Type" type="xs:string"/>
    <xs:element name="Message" type="xs:string"/>
    <xs:element name="Trace" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    </types>
    <message name="Output">
    <part name="Body" element="outMsg utput"/>
    </message>
    <message name="Input">
    <part name="Body" element="inMsg:Input"/>
    </message>
    <message name="JavaExceptionMessage">
    <part name="FaultDetails" element="errMsg:JavaException"/>
    </message>
    <portType name="ExecutePortType">
    <operation name="Test">
    <input name="Input" message="tns:Input"/>
    <output name="Output" message="tns utput"/>
    <fault name="JavaException" message="tns:JavaExceptionMessage"/>
    </operation>
    </portType>
    <binding name="ExecutePortTypeBinding" type="tns:ExecutePortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="Test">
    <soapperation soapAction="urn:stc:egate:jce roject3:Collaboration_1WSDL:Test" style="document"/>
    <input name="Input">
    <soap:body parts="Body" use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>
    <output name="Output">
    <soap:body parts="Body" use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </output>
    <fault name="JavaException">
    <soap:fault name="JavaException" use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </fault>
    </operation>
    </binding>
    <service name="Project3_Collaboration_1Service">
    <port name="ExecutePortType" binding="tns:ExecutePortTypeBinding">
    <soap:address location="http://localhost:18501/WsServer/ExecutePortType"/>
    </port>
    </service>
    </definitions>

    Hi Abinap.
    If you are woking with JEE 1.3 or JAX-RPC.
    You need to add some libraries to java project.
    Go to the tab "Add Libraries" on context menu of the project: Properties --> Java build Path
    Select "Add variable" button, after select the SAP_WEBSERVICES_EXT_LIBS_HOME variable and click on "Extend" Button, finally select all the libraries under lib folder, do the same to the SAP_XML_TOOLKIT_LIBS_HOME variable.
    Greetings.
    Manuel Loayza Gahona

  • Error invoking LC API via Java

    Hi *,
    I'm using the Java-API to call LC services.
    My web app is deployed on a Tomcat (6.0_20) and I have two LC instances (turnkey).
    I'm trying to migrate some PDFs secured and reader enabled with the first LC instance to the second. The first instance is installed on a remote server and the calls are working fine. So I'v no problem to remove the PDF security policy applayed by the first LC instance, but if I'm trying to call the second instace (wich is runung local) im getting the following exception:
    java.lang.RuntimeException: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
         at de.actano.rcw.module.change_host.ChangeHostActionExecutor.applyReaderCredentials(ChangeHostActionExecutor.java:221)
         at de.actano.rcw.module.change_host.ChangeHostActionExecutor.transformAttachments(ChangeHostActionExecutor.java:205)
         at de.actano.rcw.module.change_host.ChangeHostActionExecutor.executeImpl(ChangeHostActionExecutor.java:133)
         at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:127)
         at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:688)
         at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:625)
         at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:487)
         at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:475)
         at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:696)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
         at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
         at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
         at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:301)
         at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:229)
         at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
         at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy29.executeAction(Unknown Source)
         at org.alfresco.web.bean.actions.RunActionWizard.finishImpl(RunActionWizard.java:101)
         at org.alfresco.web.bean.dialog.BaseDialogBean$1.execute(BaseDialogBean.java:122)
         at org.alfresco.web.bean.dialog.BaseDialogBean$1.execute(BaseDialogBean.java:119)
         at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:322)
         at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:229)
         at org.alfresco.web.bean.dialog.BaseDialogBean.finish(BaseDialogBean.java:128)
         at org.alfresco.web.bean.wizard.WizardManager.finish(WizardManager.java:599)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
         at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
         at javax.faces.component.UICommand.broadcast(UICommand.java:109)
         at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
         at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
         at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
         at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
         at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.doSend(EjbMessageDispatcher.java:160)
         at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:57)
         at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
         at com.adobe.livecycle.readerextensions.client.ReaderExtensionsServiceClient.invoke(ReaderExtensionsServiceClient.java:58)
         at com.adobe.livecycle.readerextensions.client.ReaderExtensionsServiceClient.applyUsageRights(ReaderExtensionsServiceClient.java:102)
         at de.ipeq.iqweb.business.lc.service.LifeCycleServiceImpl.readerExtend(LifeCycleServiceImpl.java:532)
         at de.actano.rcw.module.change_host.ChangeHostActionExecutor.applyReaderCredentials(ChangeHostActionExecutor.java:219)
         ... 62 more
    Caused by: java.rmi.ServerException: RuntimeException; nested exception is:
         com.adobe.idp.DocumentError: The document pointing to the file "C:\Programme\Apache\Tomcat_6.0_20\docm1283160444844\7eddb78cf3d5f4c8212f326588130174" has expired. Consider increasing the document disposal timeout.
         at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:386)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:196)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
         at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
         at org.jboss.ejb.Container.invoke(Container.java:873)
         at sun.reflect.GeneratedMethodAccessor385.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:592)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
         at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
         at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:592)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
         at sun.rmi.transport.Transport$1.run(Transport.java:153)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: com.adobe.idp.DocumentError: The document pointing to the file "C:\Programme\Apache\Tomcat_6.0_20\docm1283160444844\7eddb78cf3d5f4c8212f326588130174" has expired. Consider increasing the document disposal timeout.
         at com.adobe.idp.DocumentFileBackend.checkFileExistance(DocumentFileBackend.java:412)
         at com.adobe.idp.DocumentFileBackend.copy(DocumentFileBackend.java:419)
         at com.adobe.idp.Document.addInvocationMarker(Document.java:2558)
         at com.adobe.idp.Document.readObject(Document.java:934)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:592)
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1812)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
         at java.util.HashMap.readObject(HashMap.java:1067)
         at sun.reflect.GeneratedMethodAccessor234.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:592)
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1812)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
         at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke(AbstractMessageReceiver.java:291)
         at com.adobe.idp.dsc.provider.impl.ejb.receiver.EjbReceiverBean.invoke(EjbReceiverBean.java:156)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:592)
         at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:154)
         at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:54)
         at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:363)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
         ... 24 more
    Increasing the document disposal timeout is without any effect. I'm running exactly the same code, but with a diferent LC locations. Has someone an idea what is the problem...
    Thanks and Regards,
    bate_g

    The problem is in the fact, I'm calling two different LC instances. If I'm calling only one LC client, everything is working fine. If I call the one instance and then the second for another operation (applying new policy) I'm getting the exception.
    How can I work with two diferent LC instances? Any ideas?
    Kind Regards,
    bate_G

  • Open web browser from java application to specific page

    Hi,
    I used the code from http://www.javaworld.com/javaworld/javatips/jw-javatip66.html to open a web browser to a specific URL. That worked great! However, I run into a problem if the URL targets a specific page, for example, "http://www.yahoo.com/news.html" would give me an problem with the shortcut problem. Any ideas how to get around that?
    The command rundll32 url.dll,FileProtocolHandler http://www.yahoo.com/news/ would work fine, except anything ends with .htm or .html.
    Thanks,
    David

    It looks like url.dll doesnt like .htm or .html files. For more info look here: http://www.jsiinc.com/SUBI/tip4100/rh4162.htm
    For some reason it is confused by the 'm' character in .html which is odd considering it has no problems with .com
    So if you want to keep using url.dll, do something like this:
    replace ".htm" with ".ht%6D"

  • Invoking web browser within an application

    Hi, folks. i just wrote a testing program for this purpose. Here is the error message i got when running the program.java.io.IOException: CreateProcess: start iexplore http://www.yahoo.com error=2. someone plz help me work it out. thanx in advance.
    import java.io.*;
    public class test
         public static void main(String[] args)
              try
                Runtime.getRuntime().exec("start iexplore http://www.yahoo.com");
             catch(IOException e)
                   System.out.println(e.toString());
                   System.exit(1);
    }

    public static void main(String[] args) {
        try {
            // leave out the 'start' and make sure it's in your
            // path or specify the path explicitly. This code
            // works on my XP box.
            Runtime.getRuntime().exec("c:/progra~1/intern~1/iexplore http://www.yahoo.com");
        } catch (IOException e) {
            System.out.println(e.toString());
            System.exit(1);
    }

  • Browser running inside Java Application

    Hi,
    I have a fat client application that needs a web page display browser. Please recommend a good browser that I can run through Java code. I do not want to invoke a browser outside my application window.
    Thanks!
    Ashish Tengshe

    The best java browser I know of is ICEbrowser:
    http://www.icesoft.com
    Unfortunately it costs a lot of money. Below are links to a couple others:
    http://www.netcluesoft.com
    http://home.earthlink.net/~hheister/

Maybe you are looking for