URL stream throws exception when trying to read from input stream

Hi guys,
I tried reading from an input stream which returned a 401. Actually, the server side returns 401 whenever the application server cannot fulfill the client's request, however the 401 contains a message which I will like to read.
I have tried this with mozilla and the return message is properly displayed even at 401. How can I read this message?

Oracle home is pointing to wrong location.When we made the change to corrent location.Then we rebuilt the jar file started the managed server it is working fine.

Similar Messages

  • Java Does Not Throw Exception When Writing To Read-Only Files

    I have noticed that when I try to write to a read-only file in a window environment, Java does not throw an IOExcpetion, it just dosn't write to the file.
    I am writing an FTP server and here is the code:
         public static long copyStream(InputStream in, OutputStream out)throws IOException
              IOException exception = null;
              long copied = 0;
              try
                   byte buffer[] = new byte[1024];
                   int read;
                   while((read = in.read(buffer)) != -1)
                        out.write(buffer, 0, read);
                        copied += read;
              catch(IOException e)
                   //ensures that the streams are closed.
                   exception = e;
              try
                   in.close();//ensures output stream gets closed, even if there is an
                   //excption here.
              catch(IOException e){exception = e;}
              out.close();//try to close output.
              if(exception != null)
                   //exception is not null, an exception has occured.
                   //rethrow exception.
                   throw exception;
              return copied;//all ok, return bytes copied.
         }Is this a bug in JAVA VM? Is so, how should I report it?

    I have noticed that when I try to write to a read-only file in a window environment,
    Java does not throw an IOExcpetion, it just dosn't write to the file.C:\source\java\Markov>attrib readonly.out
    A R C:\source\java\Markov\readonly.out
    �C:\source\java\Markov>java b
    java.io.FileNotFoundException: readonly.out (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at b.main(b.java:5)
    import java.io.*;
    public class b {
        public static void main(String[] args) {
         try     {
              OutputStream os = new FileOutputStream ( "readonly.out");
         catch (Exception e) {
              e.printStackTrace();
    }

  • Getting an error 33162 when trying to read analog input on FP

    I am getting a error when trying to do a simple analog input read using Field Point. I have a FP-2000 network module and am trying to read channel 0 at FP-TB-10 @3 which has an AI-C420 analog input module in place. There is no definition for the error and I can read the signal from Field Point Explorer just fine.
    I have downloaded the example continuous read vi from the web site and it does not work either. It seems that this should not be complicated but this is not the 1st problem I have had. I will take any suggestions. Thank you.

    Mike,
    Error code 33162, "Can not connect to item on module," generally is the result of attempting to connect to an item that is not available at the first connection attempt. This is frequently the result of an ethernet network module being offline when you attempt to connect to it. Since you are able to connect from FieldPoint Explorer, I suspect something else is going on. The likeliest possibilities that I can think of are:
    1) You have more than one ethernet Comm Resource in your IAK file and you have provided the name for the wrong resource (e.g. you may have had a different IP address and created a new Comm Resourcefor the new IP address, but left the old one in place and are using the wrong one).
    2) Similar to #1 above, you changed the IP address in
    the Comm Resource but did not save the change so there is no module at the IP address it is attempting to communicate with.
    3) There is a misconfiguration in the IAK file and the FP-TB-10 shows a listing for a digital module at address 0 rather than an analog module.
    4) The module is misaddressed. I have occasionally seen instances where the protective end cover was not installed on the last terminal base and a piece of metal shorted some of the pins causing the addressing to be incorrect. Since this method of failure would also show up in FieldPoint Explorer, I do not think it is likely the root cause of your problem.
    5) You have booted the FP-20xx in Safe Mode (although FieldPoint Explorer will not work in this case so I do not think it is likely).
    Note: If you had successfully connected and then lost the connection, the error code is 33163, "The connection to the module has been broken."
    Regards,
    Aaron

  • Error when trying to read from a dictionary

    Hi there, I am trying to retrieve a piece of information using the 'get an item from a dictionary' action.  
    I've set up the action to read from a dictionary which stores information just retrieved using the call http web service action, but now I need an item in that dictionary.  I've parsed through the string returned from the http call and noticed that
    the information I want is under the route 'value/modified' which is what I entered, only without the single quotes...
    but my workflow gets suspended and following is the error message I get:
    RequestorId: 0de36620-da97-6e20-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.InvalidOperationException: Looking up a value using a key is not supported on an instance
    of 'Microsoft.Activities.Dynamic.DynamicArray'. at Microsoft.Activities.Dynamic.DynamicItem.TryGetValue(String key, DynamicItem& value) at Microsoft.Activities.Dynamic.DynamicValueBuilder.PathSegmentFactory.ObjectPathSegment.Get(DynamicItem obj) at Microsoft.Activities.Dynamic.DynamicValueBuilder.PathSegmentFactory.ObjectPathSegment.Get(DynamicItem
    obj) at Microsoft.Activities.GetDynamicValueProperty`1.Execute(CodeActivityContext context) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor
    executor, BookmarkManager bookmarkManager, Location resultLocation) Exception from activity GetDynamicValueProperty<String> Sequence Microsoft.SharePoint.WorkflowServices.Activities.AppOnlySequence Then If Project Number Generation Sequence Flowchart
    Sequence New Project.WorkflowXaml_6f5894a5_7f8f_480f_8b7b_6cc37164f328
    I got lost somewhere along the message....but I'm seeing that DynamicValue is not supported??I must be doing something wrong...please let me know what it is...
    the uri I used:
    https://vanguardengineering.sharepoint.com/Lists/getbytitle('Client List')/items?$format=jason&$filter=Title eq [%Current Item:Client%]
    snapshot of my workflow:
    P.S. I realize now that I've posted this question in the wrong discussion board....my apologies and please move me as you see appropriate...
    thank you!
    Fan

    Use a BitTorrent client instead of a ddl (direct download link). This way it's less prone to errors, because it's checked while it's being downloaded.
    Either that, or check its MD5 against the one from the Download page.
    There's also this: https://wiki.archlinux.org/index.php/Be … ion_medium
    Note: The quality of optical drives and the discs themselves varies greatly. Generally, using a slow burn speed is recommended for reliable burns. If you are experiencing unexpected behaviour from the disc, try burning at the lowest speed supported by your burner.
    Last edited by DSpider (2012-11-16 15:13:55)

  • J2ME: Can't read from input stream?

    I'm trying to create a simple message service between a server and J2ME client. But everytime I try to read from DataInputStream (dis) i get Exceptioons. How come? It works just fine to send messages to OutputStream.
    I've tried several different methods... This is my latest try (client). You'll find the server below.
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    public class clientMIDlet extends MIDlet implements CommandListener {
    private Command exitCommand;
    private Command sendCommand;
    private Command receiveCommand;
    private Command clearCommand;
    protected Display display; // The display for this MIDlet
    protected TextBox textBox;
    final int MAX_LENGTH = 2048;
    private ContentConnection connection = null;
    private OutputStream os = null;
    private DataInputStream dis = null;
    StringBuffer buffer = new StringBuffer("");
    public clientMIDlet() {
    // Max lenght of received messages
    display = Display.getDisplay(this);
    exitCommand = new Command("Exit", Command.EXIT, 1);
    sendCommand = new Command("Send", Command.SCREEN, 1);
    receiveCommand = new Command("Receive", Command.SCREEN, 1);
    clearCommand = new Command("Clear", Command.SCREEN, 1);
    private void sendMess (final String message) {
    String msg = message + "\n";
    try {
    os.write(msg.getBytes());
    os.flush();
    } catch (IOException e) {
    System.err.println("Error in sendMess while sending " + msg);
    private String getMess() throws IOException {
         int c;
         try {
         System.out.println("encoding: "+ connection.getEncoding());
         System.out.println("lenght: "+ connection.getLength());
         System.out.println("type: "+ connection.getType());
    System.out.println("Using buffer.. This row never prints..");
         try {
              for (int ccnt=0; ccnt < connection.getLength(); ccnt++) {
              c = dis.read();
              buffer.append((char)c);
    } finally {
              dis.close();
    } catch (IOException x) {
    System.out.println("Problems with data connection");
    return buffer.toString();
    * Start up the Hello MIDlet by creating the TextBox and associating
    * the exit command and listener.
    public void startApp() {
    // Start a socket to comminicate with the server.
    // Server variables.. Should be submited by the user
    String host = "192.168.1.20";
    String port = "7080";
         String serverName = "socket://" + host + ":" + port;
    // Connect to server in order to receive response string
    try {
         connection = (ContentConnection)
              Connector.open(serverName,Connector.READ);
    } catch (Exception e) {
    System.out.println("Failed to connect to server!!!");
    try {
         System.out.println("encoding: "+ connection.getEncoding());
         System.out.println("lenght: "+ connection.getLength());
         System.out.println("type: "+ connection.getType());
    dis = connection.openDataInputStream();
    } catch (Exception e) {
    System.out.println("Can not read from connection");
    textBox = new TextBox("Hello MIDlet", "Hello!", 50, TextField.ANY);
    textBox.addCommand(exitCommand);
    textBox.addCommand(receiveCommand);
    textBox.addCommand(sendCommand);
    textBox.addCommand(clearCommand);
    textBox.setCommandListener(this);
    display.setCurrent(textBox);
    * Pause is a no-op since there are no background activities or
    * record stores that need to be closed.
    public void pauseApp() {
    * Destroy must cleanup everything not handled by the garbage collector.
    * In this case there is nothing to cleanup.
    public void destroyApp(boolean unconditional) {
    * Respond to commands, including exit
    * On the exit command, cleanup and notify that the MIDlet has been destroyed.
    public void commandAction(Command c, Displayable s) {
    if (c == exitCommand) {
    destroyApp(false);
    notifyDestroyed();
    } else if (c == receiveCommand) {
    try {
    System.out.println(getMess());
    //textBox.setString(getMess().toString());
    } catch (Exception e) {
    System.err.println("Could not write message to display");
    } else if (c == sendCommand) {
    sendMess(textBox.getString());
    textBox.setString("Message sent");
    Server:
    import java.net.Socket;
    import java.net.ServerSocket;
    import java.io.IOException;
    import java.io.BufferedReader;
    import java.io.PrintWriter;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    class User {
         private Socket socket;
         private BufferedReader in = null;
         private PrintWriter out = null;
         public User(final Socket mySocket) {
              this.socket = mySocket;
              try {
                   in = new BufferedReader(
                   new InputStreamReader(
                        this.socket.getInputStream(), Server.CS));
                   out = new PrintWriter(
                   new OutputStreamWriter(
                        this.socket.getOutputStream(),Server.CS));
              } catch(IOException e) {
    System.out.println("Server could not create user sockets");
         public String get() {
              String response = null;
              try {
                   response = in.readLine();
              } catch(IOException e) {
    System.out.println("Server could not read response");}
              return response;
         public void put(final String response) {
              out.print(response);
    out.flush();
         public void finalize() {
              try {
                   in.close(); out.close(); socket.close();
              } catch (IOException e) {;}
    class ConnectionHandler implements Runnable {
         private final User[] users;
    private String chatString;
         public ConnectionHandler(final Socket socket_user1, final Socket socket_user2) {
              users = new User[] {new User(socket_user1), new User(socket_user2)};
              //:Send users their initial state:
         public void run() {
    boolean master = true;
    users[0].put("OK");
              users[1].put("wait");
    System.out.println("ConnectionHandler started.");
              while(true) {
    chatString = users[(master ? 0 : 1)].get();
    System.out.println("User" + (master ? 1 : 2) + ":" + chatString);
                   users[(master ? 1 : 0)].put(chatString);
                   master = !master;
    public class Server {
         public final static String CS = "ISO-8859-1";
    public static void main(String[] args) throws IOException {
              int port = 7070;
    if (args.length == 1) {
    port = Integer.parseInt(args[0]);
         System.out.println("Server started on port " + port + "...");
    final ServerSocket serverSocket = new ServerSocket(port);
              while(true) {
    final Runnable task = new ConnectionHandler(serverSocket.accept(),
    serverSocket.accept());
              final Thread thread = new Thread(task);
              thread.start();
    }

    You've got to be kidding me...
    I'm trying to create a simple message service between
    a server and J2ME client. But everytime I try to read
    from DataInputStream (dis) i get Exceptioons. How
    come? It works just fine to send messages to
    OutputStream.What exceptions get thrown? What line numbers do they get thrown from? Do they always get thrown, or only in certain situations? Put your code in [code ] blocks (http://forum.java.sun.com/faq.jsp#messageformat, for Christ's sake, how many times do people need told to do that... it should just be written write on top of the page that you type your posts in... oh wait... IT IS!)

  • AQ and JMS - Oracle XA exception when trying to read message

    I'm trying to setup Oracle AQ as a foreign JMS provider. I've setup the DipsAQXAQueueConnectionFactory and DipsAQDestination in the JNDI of my weblogic server according to the sample posted by Eric Ma. This works ok and prints out the following on server startup....
              The arguments are :
              {JNDIServerPort=7001, QueueJndiName=AQJMSQueue, JNDIServer=localhost, AQueueName=DIPS_AQJMS_QUEUE, S
              erver=147.209.179.194, Port=15005, AQueueTableName=DIPS_AQJMS_TEXT, Instance=dev39, DriverType=oci8,
               MessageType=SYS.AQ$_JMS_TEXT_MESSAGE, FactoryJndiName=AQJMSConnectionFactory}
              The XA queue connection factory and queue is bound to the WLS JNDI Tree !
              My MDB ejb is configured as follows...
              * @ejbgen:message-driven default-transaction="Required"
              * ejb-name = FmcDispatch
              * destination-jndi-name = AQJMSQueue
              * destination-type = javax.jms.Queue
              * @ejbgen:foreign-jms-provider initial-context-factory="weblogic.jndi.WLInitialContextFactory" provider-url="t3://localhost:7001"
              * connection-factory-jndi-name="AQXAJMSConnectionFactory"
              public class FmcDispatch
              extends GenericMessageDrivenBean
              implements MessageDrivenBean, MessageListener
              The problem is, when the above EJB is deployed, I'm always getting the following exceptions...
              >
              <14/02/2006 11:21:03 AM EST> <Error> <EJB> <BEA-010079> <An error occurred while attempting to recei
              ve a message from JMS for processing by a message-driven bean: [EJB:010196]'javax.jms.JMSException:
              [J2EE:160049]An error occurred while registering the JMS connection with JTA: javax.transaction.Syst
              emException: start() failed on resource 'weblogic.ejb20.JMSConnectionPoller.FmcDispatch': XAER_RMERR
              : A resource manager error has occured in the transaction branch
              oracle.jdbc.xa.OracleXAException
              at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1184)
              at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:311)
              The exception is : javax.jms.JMSException: [J2EE:160049]An error occurred while registering the JMS
              connection with JTA: javax.transaction.SystemException: start() failed on resource 'weblogic.ejb20.J
              MSConnectionPoller.FmcDispatch': XAER_RMERR : A resource manager error has occured in the transactio
              n branch
              oracle.jdbc.xa.OracleXAException
              at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1184)
              at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:311)
              at weblogic.deployment.jms.WrappedXAResource_oracle_jdbc_xa_client_OracleXAResource.start(Un
              known Source)
              at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1145)
              at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1077
              at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:240)
              at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.
              java:449)
              Any ideas?

    Oracle home is pointing to wrong location.When we made the change to corrent location.Then we rebuilt the jar file started the managed server it is working fine.

  • IOException when trying to read HttpConnection input (MIDP 2.0-CLDC 1.0)

    Hello!
    I'm using the Java ME Platform SDK 3.0, on a Windows XP machine.
    The midlet's code runs successfully with the emulator, but when i execute it on my motorola c650 (MIDP 2.0-CLDC 1.0), whenever i call the getInputStream method, it hangs for a while (say, 1 second), and then i get an IOException at that point.
    I already tried:
    - call getResponseCode before; i get an IOException at that point
    - use POST method instead of GET
    - call openOutputStream before openInputStream
    - use getDataInputStream instead of getInputStream
    HttpConnection c = (HttpConnection)Connector.open(url);
    c.setRequestMethod(HttpConnection.GET);
    InputStream is = c.openDataInputStream();
    ...Nothing helps... but the same code works on a motorola v3 black (MIDP 2.0-CLDC 1.1)
    Thanks in advance!

    Oh,
    these are a little bit old handsets, aren't they?
    Anyway I can remember that especially on C650 we've experienced some firmware issues. However if this happens also on V3 I can only recomend to check the access point configuration. These old motorolas must be set up correctly and differently for using internal browser (using a WAP access point) and differently for using from within Java applications (using an internet access point).
    Rada

  • I receive an error message on HP Pavilion Dv6 when trying to read from an sdhc memory card.

    HP Pavilion Dv6 A6y00UA#ABA
    Windows 7 64-bit
    When I insert the memory card, I am presented with the scan disk message asking to scan and fix the "<memory card name> (D"  If I click on "Scan and Fix", select either one check box or both check boxes (doesn't matter) it will scan the card and close out.  When I then try to WRITE a folder to the memory card, doesn't matter which card I try, it sits there for a while thinking and then gives an error:
    "File Too Large: The file '<%1 NULL:NameDest>' is too large for the destination file system."
    If I try to read a photo from a card put there by my camera I get the message:
    You need to format the disk in drive D: before using it.
    or
    Please insert a disk into SDHC (D.
    or
    any number of random errors.
    I've updated the Intel chipset drivers, right clicked and updated the Realtek Card reader drivers using Windows Update.
    HELP!!!

    This forum is about making podcasts. The best place to ask would be in either the iTunes for Windows or iTunes for Mac forum as appropriate.

  • Access Violation when trying to read from Open Hub in BW

    Hi,
    Can someone help me out. I use BODS version 14.1.1.210. I have setup the connection to BW source and imported metadata for my OpenHub - no problem.
    Then created DTP and processchain to load Open hub data in BW.
    Made dataflow in BODS with Open Hub Tables as source and maintained processchain to be executed. When executing BODS job I get the following error:
    6800 10580 JOB 17-03-2014 13:10:34 Job <Test_OpenHub> is terminated due to error <170101>.
    6800 10580 SYS-170101 17-03-2014 13:10:34 |Session Test_OpenHub|Data flow Test Openhub
    6800 10580 SYS-170101 17-03-2014 13:10:34 System Exception <ACCESS_VIOLATION> occurred. Process dump option is off. Process is not dumped.
    6800 10580 SYS-170101 17-03-2014 13:10:34 Call stack:
    6800 10580 SYS-170101 17-03-2014 13:10:34 (null)
    6800 10580 SYS-170101 17-03-2014 13:10:34 Registers:
    6800 10580 SYS-170101 17-03-2014 13:10:34 RAX=00000000747E1648  RBX=0000000000209AB8  RCX=0000000000209AB8  RDX=0000000000000160  RSI=000000000231DAC0
    6800 10580 SYS-170101 17-03-2014 13:10:34 RDI=0000000008BEBAC0  RBP=0000000000000000  RSP=00000000002099C0  RIP=000000007477730A  FLG=0000000000010206
    6800 10580 SYS-170101 17-03-2014 13:10:34 R8=0000000000000000   R9=00000000FFFFFFFF  R10=0000000000620064  R11=0000000008C93600  R12=000000000033D390
    6800 10580 SYS-170101 17-03-2014 13:10:34 R13=0000000081D6FEC0  R14=000000000020A008  R15=000000000020A030
    6800 10580 SYS-170101 17-03-2014 13:10:34 Exception code: C0000005 ACCESS_VIOLATION
    6800 10580 SYS-170101 17-03-2014 13:10:34 Fault address:  000000007477730A 01:000000000002630A
    6800 10580 SYS-170101 17-03-2014 13:10:34 C:\Windows\WinSxS\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4940_none_88df89932faf0bf6\MSVCP80.dll
    6800 10580 SYS-170101 17-03-2014 13:10:34 ==========================================================
    6800 10580 SYS-170101 17-03-2014 13:10:34 Collect the following and send to Customer Support:
    6800 10580 SYS-170101 17-03-2014 13:10:34 1. Log files(error_*, monitor_*, trace_*) associated with this failed job.
    6800 10580 SYS-170101 17-03-2014 13:10:34 2. Exported ATL file of this failed job.
    6800 10580 SYS-170101 17-03-2014 13:10:34 3. DDL statements of tables referenced in this failed job.
    6800 10580 SYS-170101 17-03-2014 13:10:34 4. Data to populate the tables referenced in the failed job. If not possible, get the last few rows (or sample of them) when
    6800 10580 SYS-170101 17-03-2014 13:10:34 the job failed.
    6800 10580 SYS-170101 17-03-2014 13:10:34 5. Core dump, if any, generated from this failed job.
    6800 10580 SYS-170101 17-03-2014 13:10:34 ==========================================================
    Any good ideas?

    Hello Erik,
    not sure about it, but did you see this post some hours after yours?
    DS 4.1 job aborts with Access Violation
    Also, did you check ST22 to see if it generates any dump?
    And if you're able to check the BODS log files, it might me helpful. They're located at %LINK_DIR%\log directory. Check the names with the execution of the job.
    Hope it helps!
    Regards.
    Bruna Dupim

  • Reading data from input stream on unix

    I have a program that reads data from input stream from the socket. If the data is over 1500 bytes it is sent in multiple TCP packets. Whats weird is, if I run the program in windows environment it waits till it receives all the packets but when I run the same program in unix environment it only reads the first packet and go further without waiting for all the TCP packets!!
    The line that reads from input stream is
    datalen = inStr.read(byteBuffer);is there anyway I can make it wait till it receives all the packets on unix system? I do not understand why it works fine for windows in this case but not for unix.
    I'll appreciate any help..
    Thanks

    Try using a DataInputStream with the readfully() method.

  • Getting exception when trying to get taskdetails url using BPM worklist api

    Getting exception when trying to get taskdetails url using BPM worklist api method :
    String url = WorklistUtil.getTaskDisplayURL(
    wfSvcClient,
    ctx,
    task,
    null,
    "worklist",
    parameters);
    Jul 21, 2011 11:24:40 AM oracle.bpel.services.common.ServicesLogger __log
    WARNING: <oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.getServerPropertiesFromMbean()> Exception while loading install config file in standalone Error : javax.management.InstanceNotFoundException: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean
    oracle.fabric.common.FabricException: javax.management.InstanceNotFoundException: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean
    at oracle.soa.common.util.PlatformUtils.getServerInfo(PlatformUtils.java:184)
    at oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.getServerPropertiesFromMbean(TaskFlowPropsUtil.java:319)
    at oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.getServerInfoForWeblogicServer(TaskFlowPropsUtil.java:491)
    at oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.getServerInfo(TaskFlowPropsUtil.java:363)
    at oracle.bpel.services.workflow.worklist.api.util.WorklistUtil.getDefaultURLPrefix(WorklistUtil.java:264)
    at oracle.bpel.services.workflow.worklist.api.util.WorklistUtil.getTaskDisplayURL(WorklistUtil.java:353)
    at oracle.bpel.services.workflow.worklist.api.util.WorklistUtil.getTaskDisplayURL(WorklistUtil.java:293)
    at com.test.WorflowServiceClient.main(WorflowServiceClient.java:198)
    Caused by: javax.management.InstanceNotFoundException: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1094)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:662)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:638)
    at oracle.as.jmx.framework.config.session.ConfigurationMBeanServerImpl.getAttribute(ConfigurationMBeanServerImpl.java:210)
    at oracle.soa.common.util.PlatformUtils.getServerInfo(PlatformUtils.java:78)
    ... 7 more
    Caught workflow exception: null
    Process exited with exit code 0.
    Can anyone please help me

    Actually i'm using Jdeveloper 11.1.1.4 and our requirement is to show list of BPM worklist tasks for the logged in user on the first page and onclick of each task task details page should be opened. I can use Webcenter PS3 worklist taskflow. But i'm not able to customize that taskflow. So, i'm going for Worklist client api.
    I'm able to retrive the taskId,task title and few other details like task payload. But i don't know why the below method is giving exception.
    String url =
    WorklistUtil.getTaskDisplayURL(wfSvcClient,
    ctx, task, null,
    "worklist", parameters);
    And i observed that you have also used the same code for getting Taskdetails url. And one more thing is i'm trying to access BPM worklist which is installed on remote machine.
    Can you tell me what could be the reason for the exception?

  • Exception when trying to run an Web Application that uses a Web service

    Hello All,
    I get an exception when trying to run an Web Application that uses a Web service. The web application is a WebDynpro Application.(an application similar to the one "Using an Email Web Service in Web Dynpro" in the tutorial section of Web Dynpro but using a different web service)
    The exception is
    <b>Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found.</b>
    Could anyone give me an idea on what might be the problem ?
    Regards,
    Loveline.

    Hello,
    Like you said it was the problem with url.
    The webservice I used is actually running on the local machine (where the NetWeaver developer studio is installed); so in the url I had specified localhost. But I deployed the application on another server(SAP J2EE Engine). That is why it didn't work. On changing the url as required, the application is working fine.
    Thanks !
    Regards,
    Loveline.

  • Exception when trying to run OneEJBHotelSample

    I get the following exception when trying to run the one ejb hotel sample,
    any clues as to what is wrong??
    java.lang.IncompatibleClassChangeError: Unimplemented interface method
    at javax.naming.spi.NamingManager.getURLObject(Compiled Code)
    at javax.naming.spi.NamingManager.getURLContext(Compiled Code)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(Compiled Code)
    at javax.naming.InitialContext.lookup(Compiled Code)
    at client.JavaGUIClient.EJBHotelSample.getHotelSystemBean(Compiled Code)
    at client.JavaGUIClient.EJBHotelSample.main(Compiled Code)
    null

    Hello,
    Like you said it was the problem with url.
    The webservice I used is actually running on the local machine (where the NetWeaver developer studio is installed); so in the url I had specified localhost. But I deployed the application on another server(SAP J2EE Engine). That is why it didn't work. On changing the url as required, the application is working fine.
    Thanks !
    Regards,
    Loveline.

  • Caught Exception when trying to create pool Object

    Hi All,
    When a stateless session bean is looking up the entity bean following 'could not create pool object' exception is throwing.
    [14/Jan/2003:09:12:50] SEVERE ( 1048): EJB5070: Exception creating stateless session bean : [java.lang.reflect.InvocationTargetException]
    [14/Jan/2003:09:12:50] SEVERE ( 1048): EJB5017: Exception while running preinvoke : ejbName = [ConfigSessionBean]
    [14/Jan/2003:09:12:50] SEVERE ( 1048):
    javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: c
    java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(Unknown Source)
    at com.sun.ejb.containers.StatelessSessionContainer.getContext(Unknown Source)
    at com.sun.ejb.containers.BaseContainer.preInvoke(Unknown Source)
    at com.siptech.pdf.ejb.config.session.ConfigSessionBean_EJBObjectImpl.getAllModules(ConfigSessionBean_EJBObjectImpl.java:255)
    at com.siptech.pdf.ejb.config.session._ConfigSessionBean_EJBObjectImpl_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Source)
    at com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Source)
    at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unknown Source)
    at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB:
    java.lang.reflect.InvocationTargetException
    at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(Unknown Source)
    ... 13 more
    javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.ejb.containers.StatelessSessionContainer.getContext(Unknown Source)
    at com.sun.ejb.containers.BaseContainer.preInvoke(Unknown Source)
    at com.siptech.pdf.ejb.config.session.ConfigSessionBean_EJBObjectImpl.getAllModules(ConfigSessionBean_EJBObjectImpl.java:255)
    at com.siptech.pdf.ejb.config.session._ConfigSessionBean_EJBObjectImpl_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Source)
    at com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Source)
    at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unknown Source)
    at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:536)
    I have also specified the following properties in the sunejbjar.xml for the session bean.
    <ejb>
    <bean-pool>
    <steady-pool-size>2</steady-pool-size>
    <resize-quantity>5</resize-quantity>
    <max-pool-size>200</max-pool-size>
    <pool-idle-timeout-in-seconds>3600</pool-idle-timeout-in-seconds>
    </bean-pool>
    </ejb>
    --Muthu.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Muthu,
    To find out whether the problem is with container setting or with your application, can you create a simple stateless session bean and check if it works fine. If it works fine send me ejb-jar.xml and sun-ejb-jar.xml for your application.
    Deepak

  • Exception when trying to create pool Object

    I've been trying to get the forte 4.0ee ProductRichClient example for container managed beans to work.
    After the deployment to Sun One I got following exception when I'm using the client:
    18.10.2002 10:56:20 com.iplanet.ias.appclient.Main <init>
    INFO:
    ---------AppClient Container--------
    18.10.2002 10:56:20 com.iplanet.ias.appclient.Main setTagetServerProperties
    INFO: ACC001:Using ClientContainer file: [C:\Sun\AppServer7\appserv\domains\domain1\server1\config\sun-acc.xml].
    18.10.2002 10:56:20 com.iplanet.ias.appclient.Main <init>
    INFO: ACC014: ORB host name: [NOD]
    18.10.2002 10:56:20 com.iplanet.ias.appclient.Main <init>
    INFO: ACC013: ORB port number: [3700]
    18.10.2002 10:56:21 com.sun.enterprise.appclient.AppContainer preInvoke
    INFO: ACC007: Initiating Login ...
    18.10.2002 10:56:21 com.iplanet.ias.appclient.Main <init>
    INFO: ACC009: Load Application Class: [CMPClient.SwingClient]
    18.10.2002 10:56:23 com.iplanet.ias.appclient.Main <init>
    INFO: Application main() finished normally
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: nested exception is: java.lang.RuntimeException: Caught Exception when trying to create pool Object ; nested exception is:
    java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(Unknown Source)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    at CMPServer._ProductHome_Stub.create(Unknown Source)
    at CMPClient.SwingClient.AddRow_ButtonActionPerformed(SwingClient.java:127)
    at CMPClient.SwingClient.access$100(SwingClient.java:24)
    at CMPClient.SwingClient$2.actionPerformed(SwingClient.java:89)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
    at java.awt.Component.processMouseEvent(Component.java:5021)
    at java.awt.Component.processEvent(Component.java:4818)
    at java.awt.Container.processEvent(Container.java:1525)
    at java.awt.Component.dispatchEventImpl(Component.java:3526)
    at java.awt.Container.dispatchEventImpl(Container.java:1582)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3359)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3074)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3004)
    at java.awt.Container.dispatchEventImpl(Container.java:1568)
    at java.awt.Window.dispatchEventImpl(Window.java:1581)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    Caused by: java.rmi.RemoteException: nested exception is: java.lang.RuntimeException: Caught Exception when trying to create pool Object ; nested exception is:
    java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.enterprise.iiop.POAProtocolMgr.mapException(Unknown Source)
    at com.sun.ejb.containers.BaseContainer.postInvoke(Unknown Source)
    at CMPServer.ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.create(ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.java:33)
    at CMPServer._ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Source)
    at com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Source)
    at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unknown Source)
    at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(Unknown Source)
    at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(Unknown Source)
    at com.sun.ejb.containers.EntityContainer.getPooledEJB(Unknown Source)
    at com.sun.ejb.containers.EntityContainer.getContext(Unknown Source)
    at com.sun.ejb.containers.BaseContainer.preInvoke(Unknown Source)
    at CMPServer.ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.create(ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.java:25)
    ... 9 more
    Caused by: javax.ejb.EJBException: nested exception is: java.lang.NullPointerException
    at com.sun.ejb.containers.EntityContainer$EntityContextFactory.create(Unknown Source)
    ... 15 more
    Any thoughts on why this exception is being thrown?
    Thanks for any help!
    Richard

    this sample has been tested by the SunONE TOOLs QA
    and is working. Please check your deployment descriptors
    and use the cmp samples which come with S1AS to see if your
    descriptors are correct.

Maybe you are looking for

  • Changing the period in Reversed payment document

    Dear All, I badly need your help. I have reversed one Payment document in wrong period. Now Payment document is in period 09 while reversal document is in period 10. Is there any way to undo this reversal or else change the period in the reversed doc

  • Blank lines showing in the report

    Hi, When i run MEIS report i get a blank line for the colomn - Special unit of measure (qty filed) where as for some PO's it shows the qty and for some Po's it does not show. Please tell what would be the problem with this colonm why is it not showin

  • Can't put firefox into applications

    in downloading firefox - the dmg image that shows the icon and an arrow pointing to the applications has a circle with a line through it. firefox cannot be dragged into applications - it only adds a shortcut to it in the applications folder and stays

  • Sql query required

    Hi All, I've two tables Institute and Employee . Institute intId name 1 XYZ 2 ABC Employee empId emplyName intId deptId          desc 1     X          1 1          xx 2     Y          1 1          xx 3     A          2 2          YY 4     B          

  • CASE WHEN not working

    Hello all, I need to reclassify some data based on the values in two columns, the logic to do this is: WHEN CC=X AND DC IS NULL OR DC IS NOT NULL THEN B WHEN CC IS NULL AND DC IS NOT NULL THEN B WHEN CC IS NULL AND DC IS NULL THEN NB This should be a