Client-side RA stub didn't find environment on thread

Hi,
When I running my application which invokes an EJB then I am geeting message
[ReplicaAwareRemoteRef] : WARNING: client-side RA stub didn't find environment
on thread
there is no cluster in my weblogic server.
Thanks
Rakesh

Rob Thanks for replying. Details are Below..
Console Release Build 7.0.2.0
Server Release Build 7.0.2.0
Server BuildWebLogic Server 7.0 SP2 Sun Jan 26 23:09:32 PST 2003 234192
All Server Product VersionsWebLogic Server 7.0 SP2 Sun Jan 26 23:09:32 PST 2003
34192
Rob Woollen <[email protected]> wrote:
What version of WLS are you using? I believe I've seen this before,
and
I thought one of the service packs fixed it.
-- Rob
Rakesh wrote:
Hi,
When I running my application which invokes an EJB then I am geetingmessage
[ReplicaAwareRemoteRef] : WARNING: client-side RA stub didn't findenvironment
on thread
there is no cluster in my weblogic server.
Thanks
Rakesh

Similar Messages

  • Use of category filters in client side GWI

    Hi
    With help from the forums, I am now experimenting with client side GWI but I cannot find any documentation that describes the use of the category filter field in the Sync properties tab of the options.
    I have already reviewed the documentation at : [http://help.sap.com/saphelp_crm50/helpdata/en/74/49af3ab73dc363e10000000a114084/frameset.htm]
    I am using MSA 5.0 SP11 and MS Outlook 2007
    Can anyone help?
    Alternatively, can anyone point me in the direction of any more advanced config guides?
    Thanks
    James
    Edited by: James Preston on Feb 8, 2009 6:48 PM

    Thanks Rashmi
    My investigation leads me to believe that there is a bit more too it than that if I want to use this filter effectively.
    If I do not put a filter that is in both my Outlook Master Categroy list AND maintained in SPRO, it deletes the activity in the MSA Calendar. If I do not use the filter field at all it works just fine, but we need to restrict the activities flowing in the direction Mail >> Mobile
    I will keep experimenting and update this post with my findings.
    FYI - I have also found an issue with the conflict resolution which I will be raising an OSS for.
    Scenario: On the conflict resolution tab, in the Ask for confirmation when area, ALL of the boxes are UNCHECKED.
    In the Conflict handling section, SAP CRM has priority is selected.
    I would expect, therefore, if I were to delete an appointment in Outlook, it should NOT delete it automatically from MSA...but it does!
    This is just for info, but if you know anything about this, let me know and I can raise another forum thread so that the correct points can be awarded
    Regards
    James

  • Client side stub in oc4j

    Hi all,
    How to get the client stub in oc4j from wsdl. I am using linux environment where i installed oc4j. I have WSDL from which i need to get the client side code. Any infomation on this will be helpful.
    Thanks in advance.

    Found a solution see:
    SAOP Error running PL/SQL tutorial
    Flemming

  • Didn't find content for activating environment

    hi gurus,
    i am activating the environment using the standard program UJS_ACTIVATE_CONTENT,  i am inputing the required fields and executing the screen,
    but the output screen showing the message in message text tab i.e Didn't find content for activating environment in  with error message.
    Please suggest me to resolve the issue

    Hi jose,
    Sorry for late replay,
    i done the process as following steps.
    1step: go the t-code : UJS_ACTIVATE_CONTENT .
    check out the error message , if activation error message there...
    do the following steps>
    Go to t-code RSA1.
    Click on bi content ----->  click on Object  Types >  click on More types
    ---->Select  BPC deletion----> select objects
    I done above steps to resolve the issue .
    Regards.
    surya

  • Why does IE8 running on XP and Win7 Virtual Machine deletes the history while I'm still browsing the same site with client-side hashbang routing?

    Hello, 
    I have a asp.net mvc 5 web application running on .net 4.5 hosted on my local windows 8 machine on macbook pro using parallels. I'm running Internet Explorer 8 Version: 8.0.6001.18702 running on XP and Version: 8.0.7601.17514 running on Windows 7 Enterprise.
     I've got both of the virtual machine source from www.modern.ie 
    My web application is attempting to provide single page user experience by having some client-side routing by using '#!/xxx' hashbangs in the url so that I can get and post via ajax and change the hash in  the url without causing the page to reload. My
    code works fine in IE9+ and other modern browsers.
    However, I'm facing this strange issue in both of the IE8 versions. When running my demo app in IE8, I can login, view home page and can navigate from this home page to many details page. From the very first login page, all the pages are the result
    of form's post action via ajax which then expects html from server and loads in the DOM. The page structure of my app is like summary form => Details page (can also contain summary forms) => Details...so on.
    The above process works fine for few of the navigation steps. If I keep navigating from one page to another & go back, I have observed that the browser back button is removing the history items slowly. And a time comes when it totally forgets about
    all the history pages that I visited to reach this current page I'm viewing!! It treats like I have just started my browsing session and this current page is the first page I've landed on with no back option. Now if I again try to navigate, I have encountered
    problems like both the back and forward buttons gets disabled.
    Hope, my words above is clear enough to explain this problem. The same application works fine in IE9+ and other browsers. 
    Till now, I have tried following steps on both VMs: 
    Resetting IE8.
    Increasing disk space to 1024mb for temporary internet files storage.
    Setting 'Never' for Check for newer versions of stored pages.
    Disabling the automatic crash recovery feature didn't helped in this case. Found this on support website.
    Deleted temporary files, history, cache, etc many a times.
    Search many forums, posted question on StackOverflow, ASP.NET
    Forums - but didn't helped.
    Tried 'beforeunload' event of browser to see if any of the page is reloading because of submit or any other reason. But the page doesn't reload at all.
    The issue is browser forgets about the browsing history while I'm still browsing the same site. 
    Is there any possible fix for the issue above? Does IE8 have any issues as many ajax form post is happening on every page? 

    I have really tried many things to identify any possible reason of the issue above. Even rewrote all my javascript navigation code and checked server-side code.
    But the only place where I got the solution is at site: http://www.enhanceie.com/ie/bugs.asp which states that there is a bug in IE8 which reads like:
     IE0012: IE Travellog broken when navigating back/away from a page with
     a large POST form If there is a form input field with a value longer
     than 523,659 characters, when you navigate away from the page, IE may
     clear the current session's travellog (similar to history), disabling
     the back and forward buttons. Repros in IE6 & IE7.
    There are following solutions that you can go for:
    - Check for the input field that has lots of characters as mentioned above and solve your problem.
    - If you have control over the system where IE8 will be used, you can add the following registry key on that machine. There is no existing key, so, you need to add a new one:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\TravelLog] "MaxSize"=dword:ffffffff
    I am really relaxed to find this information as I spent really long time to solve this issue. Hope this will help someone.

  • How can i look up a EJB residing in different machine from client side?

    hai ,
    How can i look up a EJB residing in different machine from client side?
    this is my code...........i don't know what should i use as Initial Context Factory...................i am using a sun appserver 8............
    package com.parx.lms.lmsdelegate;
    import com.parx.lms.exception.LMSException;
    import javax.naming.Context;
    import javax .ejb.CreateException;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.rmi.PortableRemoteObject;
    import java.rmi.RemoteException;
    import com.parx.lms.controller.*;
    import com.parx.lms.vo.UserVo;
    import com.parx.lms.exception.BusinessException;
    import java.util.Hashtable;
    import java.lang.*;
    public class LmsDelegate{
    private final static String JNDI_NAME="LmsBean";
    private static String url="http://localhost:4848";
    public static Lms lms = null;
    public void getController() throws CreateException,
    NamingException,RemoteException{
    if(lms == null){
    Hashtable h=new Hashtable();
    h.put(Context.INITIAL_CONTEXT_FACTORY," ********what should i use here???????*************************");
    h.put(Context.PROVIDER_URL,url);
    System.out.println("Before Loading Context in Delegate");
    Context ctx=new InitialContext(h);
    System.out.println("Loaded Context in Delegate");
    Object obj=ctx.lookup(JNDI_NAME);
    System.out.println("Loaded Object in Delegate");
    System.out.println("Before Loading Home in Delegate");
    LmsHome home = (LmsHome )PortableRemoteObject.narrow(obj,com.parx.lms.controller.LmsHome.class);
    System.out.println("Loaded Home in Delegate");
    lms = home.create();
    System.out.println("Loaded remote in Delegate");
    public void addUserDelegate(UserVo vo) throws BusinessException{
    try{
    getController();
    System.out.println("Before calling the addUser of Session");
    lms.addUser(vo);
    }catch(CreateException e){
    System.out.println("Create Exception in Delegate due to--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    }catch(NamingException e){
    System.out.println("Naming Exception in Delegate due to--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    catch(RemoteException e){
    System.out.println("Remote Exception in Delegate due to--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    }catch(LMSException e){
    System.out.println("duplicate user name--->"+e);
    e.printStackTrace();
    throw new BusinessException(e);
    pls help me..........

    h.put(Context.INITIAL_CONTEXT_FACTORY," ********what should i use here???????*************************")
    Each app server provides their own jndi factory class. For ex for weblogic it is weblogic.jndi.WLInitialContextFactory. SInce you are using sun app server, check if there are any examples to find out or the docs.
    private static String url="http://localhost:4848
    Since the client is in a different machine the localhost is not going to work here. provide the url or the machine name of the system in which ur sunapp server is running. In addition u will need to have the stubs of the remote interfaces in ur client machine.

  • Client-side caching of Javascript (for Google Web Toolkit *.cache.* files

    Hi all,
    I'm trying out the use of Google Web Toolkit (GWT) for AJAX code development, leveraging RPC calling back-end Web Services for a document browser prototype.  When the JavaScript code is generated by GWT, it has the ability to automatically distinguish between cacheable and non-cacheable content via file extensions (.cache. and .nocache.).
    Now when running in a Tomcat environment with appropriate caching settings; the application runs extremely fast even on really poor latency sites (>500ms round trip); however on a NetWeaver stack, I can't find any information on how to set an attribute on .cache. files to set an expiry of 1 year.
    Anyone know how to do this on a NetWeaver J2EE stack?
    Thanks,
    Matt
    PS. For reference, GWT is a very cool open source project worth watching in the Enterprise space for targeted high-usability, high performance apps.  Just the image bundles concept themselves are an awesome approach to minimizing impact of small images on performance.

    Hi again,
    I thought I should post the solution I came up with in case people search on GWT in the future.  In terms of caching, the Portal does a good job of making nearly everything that GWT produces to be cached at the client; and for the life of me, I couldn't get nocache files not cached at the client side. 
    So thanks to my friendly local SAP experts in the portal space; I discovered there's not much you can do to get this working except try use standard browser tags like the following to prevent caching on the browser:
    Note - Can't seem to save this post in SDN with Meta tags that I'm trying to display so check out http://www.willmaster.com/library/tutorials/preventing_content_cache.php for more info...
    Unfortunately, the way that GWT creates the nocache files, it is not possible to modify the .js files to do this so I needed an alternative approach.
    Then I thought, well, the html file that includes the JS file is cached, but it's not very big, so how about I just write a script to modify the html file when I deploy to production to point to the nocache file with a date suffix.
    Let me explain in more detail:
    1. The original html file that includes the nocache.js file gets modified to point to nocache.<date>.js.
    2. The original nocache.js file gets changed to nocache.<date>.js
    3. Now produce an external bat file to do this automatically for you before deployment which DevStudio can call as part of an Ant script or similar.
    That's it.  So when you are developing, you can manually delete your cache, but just before you go to production, you do this conversion, and you will never have an issue with clients having the wrong version of javascript files. 
    Note - GWT takes care of caching of most of the files by using a GUID equivalenet each time you compile, so it's just a couple of files that really need to not be cached.
    Anyway, I'm not explaining this solution very well, but drop us a line if you need to understand this approach further.
    And lastly, my feedback about GWT - It Rocks!  Everyone loves the result, it's easy to build and maintain, it offers a great user experience, and it's fast.  Not a replacement for transactional apps; but for the occasional user - go for it.
    Matt
    Edited by: Matt Harding on May 22, 2008 7:48 AM

  • Client side weblogic.management jar

    Hi,
    Could you help me with the following issue?
    I am writing a simple mgmt application that uses Weblogic's JMX APIs remotely
    via JNDI/RMI either from another VM on the same or another box (no firewall issues).
    All is fine except that the weblogic.management interfaces, stubs, and skeletons
    are all part of the huge weblogic.jar.
    Do you know where I can find a client side classes for weblogic.management? I
    noticed that the Weblogic 8.1 distribution comes with client side jars for other
    APIS (e.g. JMS, Web services, EJB etc.) but cannot find one for JMX.
    Thanks a lot for any insight on this,
    Piotr

    Hi Piotr,
    I do not believe there is a client side jar for wl management. This is
    being considered for our next release.
    Thanks,
    -satya
    Piotr Krychniak wrote:
    Hi,
    Could you help me with the following issue?
    I am writing a simple mgmt application that uses Weblogic's JMX APIs remotely
    via JNDI/RMI either from another VM on the same or another box (no firewall issues).
    All is fine except that the weblogic.management interfaces, stubs, and skeletons
    are all part of the huge weblogic.jar.
    Do you know where I can find a client side classes for weblogic.management? I
    noticed that the Weblogic 8.1 distribution comes with client side jars for other
    APIS (e.g. JMS, Web services, EJB etc.) but cannot find one for JMX.
    Thanks a lot for any insight on this,
    Piotr

  • Good name (or maybe a pattern) for a client-side data accessor

    Hello,
    I am building a client/server app, the client is a Swing application.
    The client needs to read/write information to the server. I have a set of "DAO" classes that encapsulate remote acces:
    package myapp.client;
    public class OrderDAO {
        public OrderDTO getDaylyOrders();
        public void saveOrder(OrderDTO order);
    }The implementing class connects to an RMI server which exposes an OrderService interface with more technical methods (getOrdersForDate(Date), getPendingOrders(),...).
    I just feel the name DAO is misleading on the client side, because traditionnally it is a server-side pattern, and indeed in the myapp.server package, I have a set of classes named OrderDAO as well, which do what I think is the usual work of DAOs (mask the usage of the DB to the server logic).
    I'm wondering whether my client-side "DAO" actually follows the intent of the DAO pattern. Otherwise what is it, or how should it be named?
    Isn't it a BusinessDelegate instead, as it encapsulates the usage of the OrderService?
    Note that it is not just a Proxy to the server-side DAO class, because there is a bit of sever-side business logic (filtering and aggregation by the OrderService) between what the server side DAO returns (essentially Lists of entities mapped from the database tables) and what the client-side "DAO" returns.

    It has been a while for me, but when I designed
    applications I favored using some part of a design
    patttern name for the main class of the pattern. For
    Business Delegate objects, using the "Delegate" part
    is helpful if there will ever be other software
    develoeprs working with the code. Even if not, it
    will help you remember the design when/if you return
    to it in a few years or so.I see where you are coming from here but I think that this doesn't really hold up under scrutiny and from my paast experience. First of all, it's not feasible to rely the design with class names. You'll end up with something similar to Hungarian notation if you try. This means that you must have external design documents. It's tempting to think that classnames and JavaDocs will be enough but they aren't. They are necessary but not sufficient.
    When I talk about the 'users of the class' I'm talking about other developers. The 'users of the application' don't see the classes. My experience is that naming classes or anything else with notes about it's internal implementation seems like it would be helpful but is of limited usefulness to maintenance developers. For most work the developer is only going to care what the class does (e.g. retreieve business objects) not how it does it. If the developer need to know that, they can easily open the class documentation and even the source (assuming that's available.
    If you do end up doing this, you also need to think about what will happen if you change the design under the hood of the class. Do you change the name of the class? You really should, if it's name is based on the design. What I've seen happen too often is that it does not happen and the class is named as it if does one thing but acutally does something else entirely.
    OrderServiceDelegate would be an informative
    name because it would imply that the actual code for
    implementing the "order service" is in another class
    and that this class is for "delegating" only.That's easily determined by looking at the class documentation and like I said above, doesn't usually matter to other classes using it. That's one of the main tenets of OO design. Separation of concerns. The classes that use this shouldn't need to know how it does it's job (althought, this is not always feasible IMO.) If the classes depend on a BusinessDelegate, then what do you do if you move the class to an environment where they use the Facade directly, for example. You are in effect coupling related classes to a pattern. If I have a FooRetriever, I might want one that's a business delegate, one that's a DAO and one that is a stub. The idea of coupling an interface to a pattern is strange to me.
    For implementations of the Abstract Factory pattern,
    I typically would include the term "Factory" in the
    class name. Same goes for Facade and Proxy. Factory classes are the most likely misnamed. Often implementations of factories (I know that's not a GoF pattern) or abstract factories are named FooBarSingleton. So, if anything, don't name Singleton classes with the word Singleton.

  • Net Use in Script Client Side Extension

    Hi,
    I just rebuild my home Network. In my old home Network I had my loginscripts added to each user in AD. However - now I want to move my Loginscripts to GPO. So I added a batch to User Configuration\Policies\Windows Settings\Logon
    The script is just a simple net use Batch.
    But after logon and multiple GPUpdates - drives were not mapped. So I started to troubleshoot.
    First I thought the script wasn't started. And yes there were some Problems:
    - Sync Processing,
    - Local Intranet for \\domain.name\sysvol
    But it still didn't work. Executing the script from
    \\domain.name\sysvol... mapped the drives.
    So I changed the script to vbs and added a msgbox now() - and I got a messagebox during logon. But still no drives mapped.
    If I map the drive by Configuration\Preferences\Windows Settings\Drive Maps - the drives will be mapped.
    If I add the script to the user object in AD - I also works.
    So maybe I am wrong - but is there a Problem to map drives in Script Client Side Extensions?
    I searched the web - but didn't find a clear Statement.
    thx in advance

    Hi,
    Since the issue persists when you turned off UAC, I suggest you could try to enable the following policy setting “Always wait for the network at computer startup and logon”
    to see if it works at this time. You could configure it from the following path in GPMC:
    Computer Configuration\Administrative Templates\System\Logon\. For details, please refer to the following article.
    Description of the Windows Fast Logon Optimization feature
    http://support.microsoft.com/kb/305293
    In addition, I suggest you’d better map these drives via GPP. It will reduce your logon scripts. Here is an article as reference, hope it helps.
    GP Preferences Will Reduce Logon Scripts : Mapping Drives
    http://blogs.technet.com/b/grouppolicy/archive/2009/02/11/gp-preferences-will-reduce-logon-scripts-mapping-drives.aspx
    Best Regards,
    Andy Qi
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Andy Qi
    TechNet Community Support

  • Client-Side Monitoring Agent

    I have deployed scom 2012 r2, discovery my windows servers, and installed agent on servers. When I go to Monitoring and then Healthy state, I saw that Client-Side Monitoring Agent and some others show Not monitored. After some google, I know that maybe they
    are not enabled by default. My question is that how I can find what monitors they are belong to?
    EX: Where I can find "Client-Side Monitoring Agent" under Authoring --> Monitors? And then enable it from there.  Thanks.

    It sounds like you are referring to Client-Side Monitoring for .net application performance monitoring. This is not enabled by default and you wouldn't want to enable it without reading up on the subject and trying it out on a test environment first. There
    are many factors to consider, a few being; monitoring compatibility for a website, the potential for sensitive data getting into your SCOM databases, and monitored application stability.
    You can find .net application performance monitoring by going to "authoring" in the managment console, and then "managment pack templates".

  • Maximum listeners to be created on client side

    hi any please enlighten me about this question. 'How many maximum listeners can be configured at the client side?' This was asked to me at an interview and it made me skeptical

    Justin Cave wrote:
    At the risk of putting words in Ed's mouth, I'm pretty sure he didn't call you a poser.
    Correct.
    Someone that was trying to pretend that they knew a lot more about Oracle than they did would be liable to bluff an answer to a question like this that has no correct answer rather than admitting that they don't know. Someone that understands how Oracle works would point out that the question is flawed and unanswerable.
    Exactly the point I was trying to make.
    In general, if someone asks a question like this, an answer of "I don't know" is much, much preferrable to the bluff. If I'm looking for an entry-level person, I'm perfectly happy to hire someone that readily admits to what they don't know. I'm loathe to hire someone that is going to pretend like they know something only to find out weeks later that they didn't know how to do what they were supposed to do (or that they misunderstood the original request and weren't willing to admit to being confused). It's great if they know the right answer, of course, but being able to admit to where they have gaps is the real test.
    Exactly.
    To the OP: the key to such a question is that the question deliberately assumes a fallacy. And the more deeply embedded that assumed fallacy is, the better the question.
    Poor question: "does the listener run on the client or the server?"
    Better question: "how do you install the listener on the client?"
    Better still: "what is the maximum number of listeners that can run simultaneously on the client?"
    to the best question:
    Worst answer: "<pick a number, any number>>"
    Better answer: "I'm not sure, but I'm pretty fresh so I'd have to check the Net Admin Guide" (note not only the honesty, but also showing that you at least know where to find answers - that you are familiar with the official documentation, not just your favorite blogs.)
    Best answer: "The question is fallacious because the listener is a server side process. I guess you could configure a listener process on the client, but it would be as useful as a screen door on a submarine."
    Just as interview questions can work on several levels, there are several lessons in this thread ....
    JustinEdited by: EdStevens on Nov 27, 2012 1:44 PM

  • How to generate rule log on client side

    I am looking for a solution where I could generate a rule log and make it available on client side. I know generating a log during consolidation and save it on server. However, I want to make it available on client side.
    I have created four scenarios in HFM application, namely -
    1. ACTUAL_REPORTING - To capture TB data and use it for reporting
    2. ACTUAL_ICP - To capture ICP data and run custom business rule as per requirement
    3. ACTUAL_ADDINPUT - To capture additional memorandum inputs
    During consolidation,data is copied from ACTUAL_ICP and ACTUAL_ADDINPUT to ACTUAL_REPORTING. However, problem is that user should consolidate ACTUAL_ICP AND ACTUAL_ADDINPUT scenarios first. If they miss executing the consolidation in these scenarios, then the data copied would be wrong. Just as to ensure this, there's a provision is HFM to check calculation status in rule file and looking at that, calcuation could be stopped and a message could be sent to the user. But delimma is, how to report the same on the user side.
    Possible solution that I could have thought are -
    1. To generate a rule log and post the same to the client, but how to do this? As path of the rule log could be of the server only (that is C:\Hyperion\Logs\Rule)
    2. To generate a rule log and pop a web page terminating consolidation, but how to do this?
    3. To raise an error from the rule file and direct it to the system messages, but how to to this?
    Please advice and any further clarification is required please contact me.
    Thanks & Regards,
    Mustafa

    You can define the output folder as a share, which has already been mentioned. I strongly advise against implementing any solution that in production will regularly generate an external file.
    1) The output file is generated by the DCOM user. If you want this user to generate a file in a specific location, it must be writeable by the DCOM user, and readable by the intended human user. Make sure both NTFS and share level permissions on the target file and its containing folder consider this. Latency for the file write can degrade performance.
    2) Most HFM implementations have two or more HFM application servers. You have no control over which server will execute the file, and also no control over what happens if two or more servers try to write to the same file. You can create a process which causes HFM to become single threaded if every time Sub Calculate for any entity on any server needs to open a single file. This is because the file object is single threaded. It could be multi-threaded if you write out to a database, but certainly far more complex.
    3) Wait state: while as in #2, this can single thread the process, and you have to consider whether your process will error out during moments when another process has access to the file, or if you will ignore that and simply proceed. This can have a significant impact on performance time if you decide to wait until the file becomes available.
    While I have done implementations where the overall solution required combining data across multiple scenarios, I consistently find this a cumbersome, error-prone, and poorly performing approach. For this reason, I always try to keep all of the data required in a single scenario. This is one key reason why the "DataSource" or "DataType" (or whatever you call it) approach is so popular and successful.
    Finally, you cannot write to the HFM system messages. You can, on the other hand, use Calc Manager to write out to a system log.
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How can i load file into database from client-side to server-side

    i want to upload file from client-side to server-side, i use the following code to load blob into database.
    if the file is in the server-side, it can work, but if it in the client-side, it said that the system cannot find the file. i think it only will search the file is in the server-side or not, it will not search the client-side.
    how can i solve it without upload the file to the server first, then load it into database??
    try
    ResultSet rset = null;
    PreparedStatement pstmt =
    conn.prepareStatement ("insert into docs values (? , EMPTY_BLOB())");
    pstmt.setInt (1, docId);
    pstmt.execute ();
    // Open the destination blob:
    pstmt.setInt (1, docId);
    rset = pstmt.executeQuery (
    "SELECT content FROM docs WHERE id = ? FOR UPDATE");
    BLOB dest_lob = null;
    if (rset.next()) {
    dest_lob = ((OracleResultSet)rset).getBLOB (1);
    // Declare a file handler for the input file
    File binaryFile = new File (fileName);
    FileInputStream istream = new FileInputStream (binaryFile);
    // Create an OutputStram object to write the BLOB as a stream
    OutputStream ostream = dest_lob.getBinaryOutputStream();
    // Create a tempory buffer
    byte[] buffer = new byte[1024];
    int length = 0;
    // Use the read() method to read the file to the byte
    // array buffer, then use the write() method to write it to
    // the BLOB.
    while ((length = istream.read(buffer)) != -1)
    ostream.write(buffer, 0, length);
    pstmt.close();
    // Close all streams and file handles:
    istream.close();
    ostream.flush();
    ostream.close();
    //dest_lob.close();
    // Commit the transaction:
    conn.commit();
    conn.close();
    } catch (SQLException e) {

    Hi,
    Without some more details of the configuration, its difficult to know
    what's happening here. For example, what do you mean by client side
    and server side, and where are you running the upload Java application?
    If you always run the application on the database server system, but can't
    open the file on a different machine, then it sounds like a file protection
    problem that isn't really connected with the database at all. That is to
    say, if the new FileInputStream (binaryFile) statement fails, then its not
    really a database problem, but a file protection issue. On the other hand,
    I can't explain what's happening if you run the program on the same machine
    as the document file (client machine), but you can't write the data to the
    server, assuming the JDBC connection string is set correctly to connect to
    the appropriate database server.
    If you can provide some more information, we'll try to help.
    Simon
    null

  • How to Print Crystal Report without any dialog message on the client side

    Hi!
    I've read too much questions like this, but i can't find any answer.
    How can i print a report on the client side directly?
    I have three buttons, "Generate Report", "Generate PDF", "Print".
    I want when the "Print" button was clicked, automaticaly the report is printed using default printer, like PrintToPrinter function, but in the client side.
    Thanks!

    If you search for previous posts about this, you will see many posts saying not possible.  If this functionality was possible, you could essentially have a page that would send something to a clients printer just by visiting the page, how bad of security hole would that be?

Maybe you are looking for

  • 8 Series Samsung video connection issues

    I have recently purchased a Samsung 8 series TV and finding difficulties with video connection on my Skype account. There is no video at all during a call, but the people I am in contact with use video connection successfully on their accounts with o

  • Queue error :  Need Help

    Hi Guys, I am declaring a queue that holds Node objects like this but i get errors. All these two declarations give me errors. Queue queue = new Queue(); Queue<Node> queue = new Queue<Node>();I have tried both but says can't instantiate the type Queu

  • Export graphics to Adobe Illustrator file format

    Does anyone have or know where to get a "hello world" type script to save Java2D objects to a Adobe Illustrator file format. I have looked at the file format specification and it is quite detailed. Just hoping for something to get me started, as the

  • How to center JPanel vertically

    I`d like to align a JPanel to center. I`ve tried BorderLayout but I don`t want this JPanel to be forcefully extended - I want it to stay the way it is. In this JPanel I have a few buttons that create a kind of menu and I want this menu to be in the c

  • Sharing or Emailing Photos with Mac Elements 9 & Mac Outlook 2011

    I use Mac Outlook 2011 on my macbook instead of Apple Mail.  I am trying to change the preferences in Elements 9 to allow me to use this email client for sharing photos but the only option it provides me is Apple Mail.  Could anyone please tell me if