Jdk6  RMI Tunneling  - ServletHandler - GET Operation no supported

Hi there
I have downloaded the jdk6 docummentacion and I want to use the RMI tunneling sample. I have already set up the Apache/Tomcat in order to to a rewrite of the rmi-cgi call to the servlet
RewriteEngine on
RewriteLog /var/log/httpd/rewrite.log
RewriteLogLevel 0
RewriteRule cgi-bin/java-rmi\.cgi$ http://myhost/maindb_dev/rmi/tunnel
And testing the call to the cgi program it changes the url to the servlet one. So the configuration of the Servlet is OK
Then running the RMIClient provided by the jdk
it catches a remote exception
Error: Error unmarshaling return header; nested exception is:
     java.io.IOException: HTTP request failed
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
     java.io.IOException: HTTP request failed
     at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:209)
     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
     at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
     at java.rmi.Naming.lookup(Naming.java:84)
     at SampleRMIClient.main(SampleRMIClient.java:89)
Caused by: java.io.IOException: HTTP request failed
     at sun.rmi.transport.proxy.HttpSendSocket.readNotify(HttpSendSocket.java:159)
     at sun.rmi.transport.proxy.HttpSendInputStream.read(HttpSendInputStream.java:66)
     at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
     at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
     at java.io.DataInputStream.readByte(DataInputStream.java:248)
     at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:195)
     ... 4 more
At the tomcat side the servletHandler outputs the following
400Java RMI Client ErrorGET Operation not supported: Can only forward POST requests.
So what it seems is that the RMI implementation uses a GET request instead of a POST. That is the one handle by the Servlet.
Any body solved this?
Thanks in advance
Alfonso.

Hello,
JSR 262 (Web Services Connector for JMX Agents) offers an HTTP based Connector that is compliant with JConsole.
The standard is not yet final but is already in public review and we don't expect major changes.
The latest Reference Implementation (early access 3) can be downloaded from http://ws-jmx-connector.dev.java.net
Reusing your Connector presentation I would say :
Use of JMX WS Connector
Advantages
* Standard
* Firewall friendly
Disadvantages
* Standalone. You need to add jars (quite a bunch actually) to JConsole classpath.
* Less efficient than RMI or JMXMP.
References
Project web site : http://ws-jmx-connector.dev.java.net
Article that cover the EA3 announcement : http://blogs.sun.com/jmxnetbeans/entry/web_services_connector_for_jmx#comments
Article that details the Connector architecture :
http://blogs.sun.com/jmxnetbeans/entry/up_the_metro_stack_to
Thanks.
Jean-Francois

Similar Messages

  • Getting "ORA-12534: TNS:operation not supported" connecting as sysdba

    Hi,
    We are getting "ORA-12534: TNS:operation not supported" error, while connecting as sysdba.
    bash-2.03$ sqlplus '/as sysdba'
    SQL*Plus: Release 10.2.0.4.0 - Production on Thu Feb 23 10:16:16 2012
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    ERROR:
    ORA-12534: TNS:operation not supported
    Enter user-name:
    I can able to connect to database using tns entry without any issue.
    SQLNET.ORA Contents:
    ====================
    bash-2.03$ cat /var/opt/oracle/sqlnet.ora
    ENCRYPTION_WALLET_LOCATION=(SOURCE=(METHOD=FILE)(METHOD_DATA=(DIRECTORY=/dboracle/orabase/product/10.2.0/dbs/wallet/)))
    SQLNET.WALLET_OVERRIDE = TRUE
    SSL_CLIENT_AUTHENTICATION = FALSE
    SSL_VERSION = 0
    I am not aware of wallet. Please help me out to resolve this issue.
    Thank you.
    Regards,
    Dasarath

    >
    SQLNET.ORA Contents:
    ====================
    bash-2.03$ cat /var/opt/oracle/sqlnet.ora
    ENCRYPTION_WALLET_LOCATION=(SOURCE=(METHOD=FILE)(METHOD_DATA=(DIRECTORY=/dboracle/orabase/product/10.2.0/dbs/wallet/)))
    SQLNET.WALLET_OVERRIDE = TRUE
    SSL_CLIENT_AUTHENTICATION = FALSE
    SSL_VERSION = 0
    >
    You may want to replace ENCRYPTION_WALLET_LOCATION keyword with just WALLET_LOCATION in your sqlnet.ora file.
    EWL is used only for TDE but if you want to use external password store, you will have to use WALLET_LOCATION rather than ENCRYPTION_WALLET_LOCATION. However if you are going to use both TDE and external password respository, then make sure your sqlnet.ora file has both entries ENCRYPTION_WALLET_LOCATION as well as WALLET_LOCATION
    Regards
    Venkat

  • Cannot get brand new hard drive to work. Disk utility states operation not supported when I try to erase or partition?

    Without any success, I cannot get my hard drive to work in disk utilities. I am able to see the disk in the upper left hand column, but when trying to initiliaze the software always reads operation not supported. Any ideas?

    You probably have too new a hard disk.  Contact the hard disk manufacturer and ask what jumper setting is needed to drop to 1.5 Gbps SATA speed.
    Either that, or return the disk, and go to http://www.macsales.com/
    They can be sure to equip you with a proper hard disk.
    Note formatting is key as well:
    http://discussions.apple.com/docs/DOC-3003

  • "Operation not supported by backend" while getting photos from camera

    The situation is as follows:
    I'm trying to copy photos from camera using a file manager (thunar in this case). The attempt fails with a message "Operation not supported by backend".
    Configuration:
    uname: Linux xxx 3.9.6-1-ARCH #1 SMP PREEMPT Fri Jun 14 08:12:55 CEST 2013 x86_64 GNU/Linux
    libgphoto2 2.5.2-1
    gphoto2 2.5.2-1
    gvfs 1.16.3-1
    gvfs-gphoto2 1.16.3-1
    thunar 1.6.3-1
    mount info for this case:
    gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
    What is known:
    Everything was fine on 2013/06/13 - I was performing successfull copying operation on the day.
    The exactly same message started to appear on a different machine running Arch, with both unupdated Nautilus from 2.x line and latest pcmanfm. No other machines were tested.
    Only copying and moving files/directories via file manager doesn't work. I can browse the camera and delete files and directories with no problems.
    I can copy the files using cp (via gvfs mount).
    I can grab the files using gphoto2 from command line.
    Applications are able to open the files with no problems (via gvfs mount).
    Downgrading gvfs, gvfs-gphoto2, gphoto2 and libgphoto2 to versions from before 2013/06/13 doesn't fix the issue.
    Logs are clear.
    First I suspected that something is wrong with gvfs or libgphoto2, but I'm able to use them with no problems, as long as I don't try to copy a file via file manager. This could mean something is wrong with the file manager, but the issue suddenly affected three different file managers on two independent machines. And the logs remain silent. I have no idea how to deal with the issue.

    mpan wrote:Usable workaround, not requiring additional tools, was posted in the first post: use cp on mounted partition or gphoto2. The problem is not how to retrieve the files, as this is obvious, but how to copy them using file manager or how to trace source of the problem.
    Stupid me. Yes, you mentioned that. Sorry.

  • I am trying to install windows 7 on my macbook pro 13", when i run bootcamp it tells me that there is not a windows support software available for my computer. Where can i get the windows support software for my macbook?

    I am trying to install windows 7 on my macbook pro 13", when i run bootcamp it tells me that there is not a windows support software available for my computer. Where can i get the windows support software for my macbook?

    Apple only supports Windows on certain hardware.
    http://www.apple.com/support/bootcamp/
    Apple provides their framework for Windows to run on a Mac, a piece of software called a Hybrid MBR that bridges the gap between how Windows reads the drive partition table (MBR) and EFI/GUID partition table that Mac's use.
    It doesn't mean Windows can't run on your Mac, a third party solution called rEFIt will also bridge the gap and allow booting of more that just Windows, Linux as well for a triple booting computer.
    Your hardware has to meet the other requirements the second and third operating system needs as as being able to install drivers that will work for your hardware, especially the fans or they will run loud and fast by default.
    http://refit.sourceforge.net/
    This above is a advanced procedure which requires knowledge how computers and various operating systems, drive formats and so forth work.
    I even admit I don't know everything myself, but I experiment on a separate piece of Mac hardware (out of warranty/AppleCare) designed for this purpose so in case something screws up I'm not taking down my only machine and can use the other to get online and find solutions.
    There is a very high potential for losing your data if your using advanced/non-Apple methods to install Windows on your only Mac where Apple doesn't support it. Also one shouldn't be doing this on Mac hardware that is under AppleCare or warranty as it might be voided. Proceed at your own risk and education.

  • When trying to get new messages, keep getting asked for password and then get "operation couldn't be completed. (MFMessager error domain error 1032)-Why?

    When trying to get new messages, keep getting asked for password and then get "operation couldn't be completed. (MFMessager error domain error 1032)-Why?

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • DBMS_SCHEDULER - ORA-02064: distributed operation not supported

    I am getting this error:
    ORA-02064: distributed operation not supported
    using the DBMS_SCHEDULER package in Database 10g. The code works successfully in PL/SQL DEVELOPER inside the database but when I try to run the code through PSP pages on the web, I get this error. The erro happens when this method is executed in DBMS_SCHEDULER:
    DBMS_SCHEDULER.CREATE_PROGRAM(
    PROGRAM_NAME => 'ROADS_FTP',
    PROGRAM_TYPE => 'STORED_PROCEDURE',
    PROGRAM_ACTION => 'pkg_report_t3.transfer_report',
    NUMBER_OF_ARGUMENTS => 0,
    ENABLED => FALSE,
    COMMENTS => 'Highway Driving Conditions FTP Program');
    Do anybody know how I can get this to work in a browser? Or why I am getting this error?
    Thanks!

    Agowda wrote:
    hi
    I'm just passing the values to the procedure .
    Procedure is stored on a remote machine
    procedure has a ddlAnd the DDL will implicitly issue a commit before and after that DDL statement (as all DDL statements do). So you ARE doing a commit in a romote procedure call, hence why you're getting the error.
    If you want to remotely create a user you need to issue the DDL in the manner I described.

  • ORA-02064: distributed operation not supported

    Im getting this WARNING when im executing my mapping.
    My mapping involves selecting a data from a splitter and updating and inserting two tables respectively. ONe set of data from the splitter will be inserted into 1 table and the other set of output from the splitter is updated into the 2nd table.
    This is working fine. But i dont know why im getting this warning.
    Is it a very serious thing or can i ignore this?

    Hi Vibhuti,
    Looking up the desciption for this warning gives me this:
    ORA-02064: distributed operation not supported
    Cause: One of the following unsupported operations was attempted:
    1. array execute of a remote update with a subquery that references a dblink, or
    2. an update of a long column with bind variable and an update of a second column with a subquery that both references a dblink and a bind variable, or
    3. a commit is issued in a coordinated session from an RPC procedure call with OUT parameters or function call.
    Action: simplify remote update statement
    I have not encountered this error myself, but my guess would be you are running into scenario 1 with your target tables or source tables in a remote database.
    See if running the mapping in row-based mode gets rid of the warning.
    Btw, are you sure it's merely a warning and not an error ? I.e. are you targets really updated the way you expect ?
    Ragnar

  • HTTP Adaptor - Calling GET operations with parameters

    Hi Guys,
    I have to call a REST HTTP service on an external system. This is a GET operation (that the HTTP Adaptor has an option for so no initial prob there).
    However, a REST GET seems to not accept an xml message as input and in fact needs to be called as a URL string. Further more, the parameter format has to be 'just right'....
    The URL that needs calling is as follows, note the parameter format of <id type>.<value>
    http://somewebsite/api/rest/acs/customer/uuid.1234
    Now, what I don't know is how I can successfully ping this GET service using the HTTP adaptor -- I have been able to define the operation, mark it as a GET etc, but it seems to want a DTD for an input schema and this is not relevant here.... Also, if I didn't have a DTD for input schema, how could I set up the call in a Query transform in any case...?
    I'm looking for advice on the HTTP adaptor generally for REST GET and POST calls, and also for the specific problem as above.
    Any help would be fantastic!
    Thanks,
    Flip.

    Hi,
    Thanks for the response.
    Can you elaborate a bit about the GET/SET and the non-support of REST? One of the settings when defining an HTTP Adapter operation is to specify if the operation is a GET or a POST -- doesn't this suggest that it does know how to call a REST GET in some way? Otherwise, what kind of things CAN be called via HTTP Adapter?
    Thanks!
    Flip.

  • Getting operational ldap attributes using amSDK

    Is there any way to get operational ldap attributes of a user? I am trying to get "passwordexpirationtime" attribute.
    amUser.getStringAttribute("passwordexpirationtime");
    does not return anything.. no exceptions.
    tried getAttributesFromDataStore, that too does not return anything..
    Set attr = new HashSet();
    attr.add("passwordexpirationtime");
    Map exptime = amUser.getAttributesFromDataStore(attr);
    is this supported?
    Using JES2005Q4 with AM patch - 120954-04
    Regards,
    Pradeep.

    Hi Bill,
    First I like to state that I'm not an expert on CUEAC. Have you looked at this post,
    https://supportforums.cisco.com/message/4071453#4071453
    I don't knoiw if it's realted or not, but the guy answering seems to be well versed in CUEAC.
    Please remember to rate helpful responses and identify helpful or correct answers.

  • Can't listen for connections - Operation not supported

    Hi,
    We have install OSB Client on HP-UX 11i V2 HP rx5670 Server as per Oracle Secure backup Installation Guide.
    But we are getting following error message. Please help us to solve the issue:
    2010/12/29.10:23:02 can't listen for connections - Operation not supported
    # /sbin/init.d/OracleBackup start
    Starting Oracle Secure Backup services daemon.
    2010/12/29.10:23:27 can't listen for connections - Operation not supported
    Thanks
    Khairul/Bangladesh

    Have a look at the observiced.log file to see if that has any more detail, this is in /usr/tmp.
    I would check to see if there is something else on the system that is using TCP port 400 or 10000. On Solaris I've seen the webmin installation using port 10000. Both those ports need to be free for OSB to be able to start.
    With OSB stopped, you can "telnet <hostname> 400" and "telnet <hostname> 10000" to see if it connects. If it does then something is listening on that port.
    You should be able to do "netstat -na" as well, to show you listening ports.
    Rich

  • Delete tunnel "sit0" failed: Operation not permitted

    I tried to connect to Ipv6 through a 6to4 tunnel, but I couldn't and now I cannot delete the tunnel and I cannot connect to internet at all because all traffic is being redirected to the unusable tunnel.
    When I created the tunnel I ran the following code:
    # ip tunnel add 6to4 mode sit remote any local 192.168.43.68 (which was my address)
    I tried to flush and delete the tunnel and it deleted "6to4", but " sit0" remains. When I try to delete it, it says
    # ip tunnel del sit0
    delete tunnel "sit0" failed: Operation not permitted
    I did this as root, of course, and I need to delete it to get my Internet working again. Help please!
    Oh, and rebooting or modprobe -r sit has not resolved the problem because the interface remains and it doesn't show any webpage, although I can see that it shows connected.
    Is there any config file where tunnel configuration is saved so I could modify the file manually and reboot without it being active again?
    Last edited by kristian.tenorio (2015-01-17 14:02:15)

    I'm sorry. I actually had a DNS problem that I hadn't figured out. I still have not deleted the sit0 interface, but it's not giving me problems (it wasn't exactly the cause).

  • Flashback_Transaction_Query - how to get OPERATION if UNKNOWN?

    Hi,
    In Fl a s h b a c k T r a n s a c t i o n Q u e r y sometimes I am getting a value of UNKNOWN under the OPERATION column, if the transaction didn’t have enough undo information to correctly identify its operation type. For example it happens often when I am updating a CLOB column or always when I am deleting rows that contain at least one CLOB column type, or when I am deleting another row without CLOB column type.
    Do you know how I can get operation information in this case? Is there any way to get it?
    I am trying to retreive the information using flashback versions query that join some information with Flashback_Transaction_Query table.
    Cheers,
    Benny

    hi,
    The value of the UNDO_RETENTION parameter determines the length of time your users can flashback their queries. try increasing it , so u dont face the same issue
    in future.you’ll notice a value of UNKNOWN under the OPERATION column, if the transaction didn’t have enough undo information to correctly identify its operation
    type.
    You may want to turn on minimal supplemental logging in order to support operations involving chained rows and special storage structures such as clustered tables.
    ALTER DATABASE ADD SUPPLEMENT LOG DATA;

  • Servlet acts as an RMI client to get the current time of day

    my application is servlet acts as an RMI client to get the current time of day from the DaytimeServlet RMI server so iam not getting the correctime....
    import java.io.*;
    import java.rmi.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class DaytimeClientServlet extends
    HttpServlet
    DaytimeServer daytime;
    protected DaytimeServer getDaytimeServer() {
    DaytimeServer stub.
    if (System.getSecurityManager() == null) {
    System.setSecurityManager(new
    RMISecurityManager());
    try {
    Registry registry =
    LocateRegistry.getRegistry(getRegistryHost(),
    getRegistryPort());
    return
    (DaytimeServer)registry.lookup(getRegistryName());
    catch (Exception e) {
    getServletContext().log(e, "Problem getting
    DaytimeServer reference");
    return null;
    private String getRegistryName() {
    String name = getInitParameter("registryName");
    return (name == null ? "DaytimeServlet" : name);
    private String getRegistryHost() {
    return getInitParameter("registryHost");
    private int getRegistryPort() {
    try { return
    Integer.parseInt(getInitParameter("registryPort");
    catch (NumberFormatException e) { return
    Registry.REGISTRY_PORT; }
    public void doGet(HttpServletRequest req,
    HttpServletResponse res)
    throws
    ServletException, IOException {
    res.setContentType("text/plain");
    PrintWriter out = res.getWriter();
    if (daytime == null) {
    daytime = getDaytimeserver();
    if (daytime == null) {
    throw new UnavailableException(this, "Could
    not locate daytime");
    out.println(daytime.getDate().toString());
    please help me out

    Hi lucentb,
    what i observed from your code is some simple coding faults are there.. so i am giving you some test code..
    i hope this will help you out.
    import java.io.*;
    import java.rmi.*;
    import java.rmi.registry.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class DaytimeClientServlet extends HttpServlet
    DaytimeServer daytime;
    protected DaytimeServer getDaytimeServer()
    if (System.getSecurityManager() == null)
    System.setSecurityManager(new RMISecurityManager());
    try {
    Registry registry = LocateRegistry.getRegistry(getRegistryHost(),
    getRegistryPort());
    return
    (DaytimeServer)registry.lookup(getRegistryName());
    catch (Exception e) {
    getServletContext().log(e, "Problem getting DaytimeServer reference");
    return null;
    private String getRegistryName()
    String name = getInitParameter("registryName");
    return (name == null ? "DaytimeServlet" : name);
    private String getRegistryHost() {
    return getInitParameter("registryHost");
    private int getRegistryPort()
    try
    return
    Integer.parseInt(getInitParameter("registryPort")); }
    catch (NumberFormatException e)
    return
    Registry.REGISTRY_PORT;
    public void doGet(HttpServletRequest req,
    HttpServletResponse res)
    throws
    ServletException, IOException {
    res.setContentType("text/plain");
    PrintWriter out = res.getWriter();
    if (daytime == null) {
    daytime = getDaytimeServer();
    if (daytime == null) {
    // Couldn't get it, so report we're
    unavailable.
    throw new UnavailableException(this, "Could
    not locate daytime");
    out.println(daytime.getDate().toString());
    If you have any problem after this please send me the exceptions and problem situations with deatils codes..
    Regards,
    TirumalaRao
    Developer Technical Support,
    Sun Microsystems, India.

  • RMI Tunneling - Please Help

    Hello
    I am trying to get RMI tunneling to work and am having problems. I have read the documentation and have setup my environment as recommended. Specifically -- my rmi.xml file looks like this:
    <?xml version = '1.0' standalone = 'yes'?>
    <!DOCTYPE rmi-server PUBLIC "Orion RMI-server" "http://xmlns.oracle.com/ias/dtds/rmi-server.dtd">
    <rmi-server port="23791">     
    <log>
    <file path="../log/rmi.log"/>
    </log>
    </rmi-server>
    My global-web-application.xml file contains these entries:
    <servlet>
    <servlet-name>rmi</servlet-name>
    <servlet-class>com.evermind.server.rmi.RMIHttpTunnelServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>rmi</servlet-name>
    <url-pattern>/*.tunnelrmi</url-pattern>
    </servlet-mapping>
    The URL I am using to get the initial context is this:
    http:ormi://myserver:7777/NEATS
    When I attempt a lookup for one of my EJBs I get the following exception:
    javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: No such domain/application: NEATS; nested exception is:
         javax.naming.AuthenticationException: No such domain/application: NEATS
    7777 is the port that my Oracle HTTP server listens on.
    This application is deployed in one of several OC4J components that I have configured in a single 9iAS instance. Is there some additional configuration I need to do for Apache to get the request forwarded to the right application? Maybe the multiple OC4J components are causing me trouble?
    Any help anyone can offer would be much appreciated!
    Thanks
    Chris Sargent

    Hi Chris!
    Did you ever get this to work? If so what was the solution!
    Thanks!

Maybe you are looking for