Issue with ((JspWriterImpl)out).setEncoding("UTF-8")

We are trying to set UTF-8 charset in all of the HTTP response headers. When
we add the following line to the JSP pages, the browser renders the page
perfectly:
<% response.setHeader("Content-Type", "text/html; charset=UTF-8"); %>
However, we don't want to add this line to every JSP page. Instead, we
would like to use the "weblogic.jsp.encoding" propriety or the -Dencoding
flag for the JSP compiler. This command automatically add the following TWO
lines to the compiled JSP:
((weblogic.servlet.jsp.JspWriterImpl)out).setEncoding("UTF-8");
response.setHeader("Content-Type", "text/html; charset=UTF-8");
We need the response.setHeader method, but the out.setEncoding method screws
up the display of the page. High ascii characters like m-dash do not get
displayed properly. Its seems like the out.setEncoding double encodes the
UTF-8 stream.
Does anyone know what exactly the out.setEncoding method does and is there
anyway for the jsp compiler to add just the response.setHeader method and
not the out.setEncoding method?
BTW, the configuration is:
WLS 5.1 sp8
JDK1.3
Solaris
Netscape web server w/ weblogic's NSAPI plugin
Thanks,
Andrew

The line:
response.setHeader("Content-Type", "text/html; charset=UTF-8");
causes a header that looks like:
Content-Type: text/html; charset=UTF-8
to be sent back to the browser, but unfortunately, the browser does not
react to this header. You have to add a meta tag to your page so that
the browser will interpret the characters it is getting properly:
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
mark
Andrew Heifetz wrote:
We are trying to set UTF-8 charset in all of the HTTP response headers. When
we add the following line to the JSP pages, the browser renders the page
perfectly:
<% response.setHeader("Content-Type", "text/html; charset=UTF-8"); %>
However, we don't want to add this line to every JSP page. Instead, we
would like to use the "weblogic.jsp.encoding" propriety or the -Dencoding
flag for the JSP compiler. This command automatically add the following TWO
lines to the compiled JSP:
((weblogic.servlet.jsp.JspWriterImpl)out).setEncoding("UTF-8");
response.setHeader("Content-Type", "text/html; charset=UTF-8");
We need the response.setHeader method, but the out.setEncoding method screws
up the display of the page. High ascii characters like m-dash do not get
displayed properly. Its seems like the out.setEncoding double encodes the
UTF-8 stream.
Does anyone know what exactly the out.setEncoding method does and is there
anyway for the jsp compiler to add just the response.setHeader method and
not the out.setEncoding method?
BTW, the configuration is:
WLS 5.1 sp8
JDK1.3
Solaris
Netscape web server w/ weblogic's NSAPI plugin
Thanks,
Andrew

Similar Messages

  • Issue with filling out form fields in Safari?

    Hello,
    Has anyone noticed any issues with filling out form fields (specifically text boxes) in Safari 6.0.2 on Mac OS 10.8.2?  When I attempt to test forms I've created, there is a delay when typing values into text boxes.  Other types of input controls (check boxes, drop down lists, etc.) appear to work fine.  As far as I can tell, this only occurs with Safari 6.0.2 in Mac OS 10.8.2.  Prior versions of Safari do not have this issue, nor does Firefox in the same OS environment.  When I refresh the form, the delay is not as noticeable.  I'm searching the WebKit bug reports as well, but nothing seems to point to this issue.  Any hints would be greatly appreciated.

    From the menu bar, select
    Edit ▹ Substitutions
    and uncheck Text Replacement.

  • Reader x printing issue with grayed out collate

    Since we have deployed Reader X we have had issues with bulk printing of the same document.  The option to collate is grayed out.  If you want to print 50 copies of a pdf then you type the number in the field the collate is grayed out.  There is a work around that you then click the up or down arrow and this makes collate available but you should not have to do this.
    When is the new service pack/ fix available?

    I have checked all of the typical page setting and I am still having the
    same problem.  I first started having the problem with my network printer when I upgraded to a Windows
    7 (64 bit) but was using Reader 9. I upgraded the Reader hoping to eliminate the problem.
    There are also times when the pdf won't print at all and I get an error message OFFENDING COMMAND: pscript_WinNT_compa.
    I print a lot of pdfs so this is very frustrating.

  • Issues with SPDIF out Extreme Au

    I have yet another issue with my Extreme Audio and Digital I/O, but I found my own work-around so I decided to post it.
    I have the Digital I/O module and I just picked up a Z-5500 speaker and wanted to go digital on my HTPC. Nothing reported that I had a SPDIF out (PowerDVD, Nero, VLC). So I reinstalled the drivers (and did not reboot). It worked and all was good until I rebooted, then no more SPDIF out. Nothing I could do would re-able the SPDIF. Reinstalled the drivers (and didn't reboot). SPDIF working again. Hmmm, this is going to be a PITA.
    Lightning Strikes!
    I figured out that if I disable, then re-enable the card in Device Manager all is well (until I reboot). This is a 24/7 HTPC, so this isn't a major problem for me.

    I have the Express configured now as ‘extend a wireless network’. Is this correct, or should it be ‘join a wireless network’ ? It presently shows the router mode as Off (bridge mode).
    Router mode "off" is correct but "extend a wireless network" and the dotted line indicate that it is "wirelessly extending" your Extreme's network which is not what you intend.
    If an Express detects a viable Internet connection from its WAN port, AirPort Utility should propose that connection. Since it did not, verify the Ethernet cable is intact by connecting a wired Mac or other device to it, ensuring its wireless is temporarily turned off to avoid confusion. When you are satisfied that the Ethernet connections are correct, reprogram the Express. Usually it is best to start with another "hard reset". AirPort Utility should configure it the way you propose. If an Express is already configured to connect wirelessly, it's difficult to convince it otherwise without a "hard reset".
    It is possible that the complexity of your wired network could introduce an element of uncertainty. The noises you describe are unusual. An Express's internal power supply might make a barely detectable whine but an Extreme's power supply is separate and I can't think of anything within an Extreme that should make a noise that you describe.
    Check each connection point and cable for connection integrity. If in doubt, check each connection point with an Ethernet cable known to be good, and a device capable of verifying its connection. If it's not a portable Mac, try the Xbox or similar device. An Ethernet network test appliance is another option. Cat 6 problems are usually found at connections, and they are not very forgiving of improper work.
    There is nothing wrong with routing Ethernet cable alongside metal ductwork, as long as it's not within it.

  • [K8NGM2-FID] Issue with TV-Out quality

    Hi!
    After purchasing this motherboard that replaced a broken P4 Asus board and a GeForce 5200 AGP with TV-Out I realized the quality of the TV-Out included is not that good. Meaning I see some diagonal lines like an interference but I can't pinpoint from where it cames.
    Do people using this board have this issue? I'm using the SVHS connector with a quality cable that never brought me problems with the other card. I have an Audigy PCI sound card and a 3com 3c905b ethernet PCI card (both present in the other hardware). The rest of my configuration is in the signature and I'm using last nVidia drivers (official). Tried both PAL-N (Argentina) and NTSC.
    Something like this but much more subtle (more space between lines, lines being thinner and in the other direction: upper left to lower right):
    It's becoming really annoying. :(

    Thanks for all the answer, they drove me to analyze other things and made me realize something. :P
    Built2Last, tested with those settings before and tried again now but nothing changes because of them. Giving more memory (128Mb) doesn't change TV-Out quality and setting a default mode neither. The Trap more funnily says it doesn't work with OnBoard chip despite seeming like it was for that by just the name. :P
    Don't know what you thought it would be useful for me in that manual. It has lots of things... most I knew (only a couple I learned now so the time wasn't completely lost) but none helped with SVHS (no HDTV) quality. :(
    Anyway thanks for the link.
    vernonion, yes I knew such thread. Wonderful one and I read it fully before buying this one. Guess why I ended with this and not with another board? :P
    Well, now to explain what I realized. It seems that after closing the case and moving it to the final location the TV connector cable (inside the computer) displaced itself and was placed over the 3com 3c905b network card I have in one of the PCI slots.
    So, my advise to anyone finding this thread and having a similar problem: try to bend it in a way it doesn't "touch" any PCI card that can add interference to the signal. It seems the cable doesn't have a strong insulation or that the cards make a lot of interference it can be stopped only by an insulation and so the cable shouldn't be near them.

  • Urgent: Issue with time out sql auzre

    We are trying to connect to our SQL AZURE databased (Northern Europe) we keep getting timeout error. Initially it was post-login phase error and now we keep getting 10600 error. We are on V12 version.
    Any ideas please?
    Here is the detail 
    An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll
    Additional information: Connection Timeout Expired.  The timeout period elapsed during the post-login phase.  The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while
    attempting to create multiple active connections.  The duration spent while attempting to connect to this server was - [Pre-Login] initialization=303; handshake=922; [Login] initialization=0; authentication=0; [Post-Login] complete=13000;

    Resolved offline.
    In general, please follow best practices on the linked documentation page below with regards to connectivity issues :
    http://azure.microsoft.com/en-us/documentation/articles/sql-database-connect-central-recommendations/ .

  • Performance issue with using out parameter sys_refcursor

    Hello,
    I'm using Oracle 10g, with ODP.Net in a C# application.
    I'm using about 10 stored procedures, each having one out parameter of sys_refcursor type. when I use one function in C# and call these 10 sp's, it takes about 78ms to excute the function.
    Now to improve the performance, I created one SP with 10 output parameters of sys_refcursor type. and i just call this one sp. the time taken has increased , not it takes abt 95ms.
    is this the right approach or how can we improve the performance by using sys_refcursor.
    please suggest, it is urgent, i'm stuck up with this issue.
    thanks
    shruti

    With 78ms and 95ms are you talking about milliseconds or minutes? If it's milliseconds then what's the problem and does it really matter if there is a difference of 17 milliseconds as that could just be caused by network traffic or something. If you're talking minutes, then we would need more information about what you are attempting to do, what tables and processing is going on, what indexes you have etc.
    Query optimisation tips can be found on this thread.. When your query takes too long ....
    Without more information we can't really tell what's happening.

  • Struts Issue with Array out of bounds.

    Hi all I am having a struts issue trying to work with indexedProperty, mostly because I don't quite follow what the eception is saying here. I am not certain how to interpret the values given to me here. Hopefully someone can point out the braindead thing that I am missing, thanks in advance. I have been fightinging with this one for a while and unfortunately haven't had much luck on the struts mailing list, so I am hoping someone here might be able to give me the nugget of information that I am missing.
    java.lang.IndexOutOfBoundsException: Index: 6, Size: 0
         java.util.ArrayList.RangeCheck(ArrayList.java:546)
         java.util.ArrayList.get(ArrayList.java:321)
         org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:433)
         org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:340)
         org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:684)
         org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)
         org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:884)
         org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
         org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
         org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)
         org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
         com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
         com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
         com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
         com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)

    Hi all I am having a struts issue trying to workwith
    indexedProperty, mostly because I don't quitefollow
    what the eception is saying here. I am notcertain
    how to interpret the values given to me here.
    Hopefully someone can point out the braindeadthing
    that I am missing, thanks in advance. I have
    been
    fightinging with this one for a while and
    unfortunately haven't had much luck on thestruts
    mailing list, so I am hoping someone here mightbe
    able to give me the nugget of information that Iam
    missing.
    java.lang.IndexOutOfBoundsException: Index: 6,Size:
    0Well, your array has a size of 0, but you'reasking
    for the 7th item (yourArray[6])
    That's likely not very helpful, but it's all I gotYou're right it isn't really that helpful, but i do
    appreciate your taking a moment to reply. The part
    that is really confusing me is how on earth it is
    making it to the 6th position before it has a problem
    as this is an array of size 100 and I iterate through
    the entire thing. Well, the array that is causing this error not an array of size 100, it's an array of size 0. So I'm curious as to what array it's complaining about...

  • Is there an issue with sending out invites today?

    I have been trying to add a new seat for an individual Illustrator license and sent out three invites and none of them has come through. Its been a few hours since the first one went out. I verified the email address and checked the junk mail folder but nothing it showing up. I revoked the original request and resent with the same results. Any issues that Adobe is aware of? 

    Hi Dave,
    I went ahead and gave Vincent one of the reserved licenses I mentioned due to timing. That invite went fine. I'm still unclear why we can't sucessfully add a new seat and have these invites go out. We will have more request coming soon and I'd like to know what we need to do.
    Here are the steps I perfrom when adding a new seat for a new team member:
    -As a plan administrator, log into the Console
    -Under manage your team, Scroll to the bottom and click on the Add a Seat button
    -A new Invite User feild is generated and I select the app from the drop down menu.
    -I add the new users email address and click on Invite User button
    -A popup asked for the users frist and last name and I can also add a personal message.
    -Click Send.
    At this point I would expect the user to get the email with in a few minutes and at the same time an email is sent to CDW and a Invoice is generated for payment.
    Thisis what we have understood as the proper way to add new seats. Does this sound correct to you? Or are we doing something incorrectly? I also still wonder if the license we have not distributed to staff is some how related to the invite not sending.
    -Michael

  • Issues with using Outer join in Data Template

    Hi all,
    this is my data in two tables .
    Table Ronny1
    colA colB
    1 u
    2 v
    3 x
    Table Ronny2
    colC colD
    1 q
    2 r
    This is my data template
    <dataTemplate name="MGF" dataSourceRef="Source1">
         <dataQuery>
              <sqlStatement name="Q1" dataSourceRef="Source1">
                   <![CDATA[select C, D  from Ronny2]]>
              </sqlStatement>
              <sqlStatement name="Q2" dataSourceRef="Source2">
                   <![CDATA[select A , B from lokesh1 where A = :C]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G1" source="Q1">
                   <group name="G2" source="Q2">
                        <element name="A" value="A"/>
                        <element name="B" value="B"/>
                   </group>
              </group>
         </dataStructure>
    </dataTemplate>
    Now this would give me result as
    A B
    1 u
    2 v
    however my requirement is this
    A B
    1 u
    2 v
    3 x
    that is, i want to display all the rows of table Ronny1 and matching rows from table Ronny2. I tried modifiying my second sql as
    <![CDATA[select A , B from lokesh1 where A = :C (+)]]> ( using a outer join)
    but this does give me correct data and comes back with the cartesion product.
    Can anyone please answer this for me that how can we use the outer join in data templaes.
    Thanks
    Ronny

    hey vetsrini,
    sorry for the confusion here,
    actually i want to display all the rows from table Ronny1 and i am also pulling in the matching rows from table Ronny2 and my data structure looks as ( pulling in column D from table Ronny2)
    <dataStructure>
    <group name="G1" source="Q1">
    <group name="G2" source="Q2">
    <element name="A" value="A"/>
    <element name="B" value="B"/>
    <element name="D" value="D"/>
    </group>
    </group>
    </dataStructure>
    and this is what i want the output to be
    A B D
    1 u q
    2 v r
    3 x
    Hence the row where A <> C the data in the D column will be null, same as in the case of outer join.
    any suggestions
    Thx
    Ronny

  • ASE157 - Permission issue with BCP out under Solaris

    With ASE15.7 SP60 on Solaris10 u11, when data is bulk copied out using Sybase’s bcp utility, the output file generated is having permissions Read/Write for the owner and Read for the group and no permissions for others even if the umask specifies different permissions.
    sybase15@server:/sybdata2/backup
    !> umask
    0022
    If I try to create a file, I get the expected file permissions:
    sybase15@server:/sybdata2/backup
    !> touch test
    sybase15@server:/sybdata2/backup
    !> ls -l test
    -rw-r--r--   1 sybase15 sybase         0 Mar 21 16:59 test
    But bcpout grant different permissions:
    sybase15@server:/sybdata2/backup
    !> bcp db..table out /sybdata2/backup/table.bcp -Sservername -Uuser -Pxxx -c -t'(¨)' -r'(¯)\n'
    Starting copy...
    27 rows copied.
    Clock Time (ms.): total = 16 Avg = 0 (1687.50 rows per sec.)
    sybase15@server:/sybdata2/backup
    !> ls -l
    -rw-r----- 1 sybase15 sybase 3150 Mar 21 16:42 table.bcp
    Any idea?

    This was a deliberate change made under CR  683458 in BCP version 15.7 ESD 4, to adopt SAP's more stringent "secure by default" policy.
    A new feature has been developed that gives bcp a --filemode option that can be used to specify a less restrictive permission setting.  This new feature becomes available in the connectivity 15.7 SP120 and 16.0 GA C1 releases.
    Documentation: --filemode Option for isql and bcp
    -bret

  • Issue with find out the pageItem type

    Hi all,
    i am trying to find out the all pageitem's type and its data on a document .i just use the following code to find out the pageitem's type .
    InterfacePtr<ISpreadList> spreadList(document, UseDefaultIID());
            ASSERT(spreadList);
            if(!spreadList) {
                break;
            UIDList frameList(database);
            int32 spreadCount = spreadList->GetSpreadCount();
            for (int32 spreadIndex = 0; spreadIndex < spreadCount; spreadIndex++ )
                UIDRef spreadUIDRef(database, spreadList->GetNthSpreadUID(spreadIndex));
                InterfacePtr<ISpread> spread(spreadUIDRef, UseDefaultIID());
                ASSERT(spread);
                if(!spread) {
                    break;
                int32 numberOfPages = spread->GetNumPages();
                for (int32 nPage = 0; nPage < numberOfPages; nPage++ )
                    UIDList pageItemList(database);
                    spread->GetItemsOnPage
                     nPage,
                     &pageItemList,
                     kFalse,
                     kFalse 
                    bool16 hasContent;
                    int32 pageItemListLength = pageItemList.Length();
                    for (int32 j = 0; j < pageItemListLength; j++ )
                        UIDRef pageItemRef = pageItemList.GetRef(j);
                        InterfacePtr<IGraphicFrameData> graphicFrameData(pageItemRef, UseDefaultIID());
                        hasContent =graphicFrameData->HasContent();
                        InterfacePtr<IPathGeometry> pathGeometry(pageItemRef,UseDefaultIID());
                        if (pathGeometry != nil)
                           PMPageItemType pathType = Utils<IPathUtils>()->WhichKindOfPageItem(pathGeometry); //issue is this statement simply break up the execution
                            switch (pathType)
    please can any one help me? 

    Hi Pickory
    i have tried the following code ,but it doesnt works
    UIDList pageItemList(database);
                                            spread->GetItemsOnPage
                                             nPage,
                                             &pageItemList,
                                             kFalse,
                                             kFalse
                      bool16 hasContent;
                                            int32 pageItemListLength = pageItemList.Length();
                                            for (int32 j = 0; j < pageItemListLength; j++ )
                                                      UIDRef content = pageItemList.GetRef(j);
                           InterfacePtr<IGraphicFrameData> graphicFrameData(content, UseDefaultIID());
                                            InterfacePtr<IGeometry> frameGeom(graphicFrameData, UseDefaultIID());
                                            PMMatrix inner2parent = ::InnerToPasteboardMatrix(frameGeom);
                        PMRect   r = frameGeom->GetStrokeBoundingBox(inner2parent);
    any thing need to be included?

  • Issue with logging out in adf security

    I have three pages. Login, error and welcome.
    The first page visible during runtime is login.
    I have username, password fields and login button in it.
    the action of login button is mapped to this :
    public String doLogin() {
            byte[] pw = getSPassword().getBytes();
            FacesContext ctx = FacesContext.getCurrentInstance();
            HttpServletRequest request =
                (HttpServletRequest)ctx.getExternalContext().getRequest();
            CallbackHandler handler =
                new SimpleCallbackHandler(getSUserName(), pw);
            try {
                Subject mySubject = Authentication.login(handler);
                ServletAuthentication.runAs(mySubject, request);
                ServletAuthentication.generateNewSessionID(request);
                String loginUrl =
                    "/adfAuthentication?success_url=/faces" + "/Welcome.jspx";
                HttpServletResponse response =
                    (HttpServletResponse)ctx.getExternalContext().getResponse();
                sendForward(request, response, loginUrl);
            } catch (FailedLoginException fle) {
                FacesMessage msg =
                    new FacesMessage(FacesMessage.SEVERITY_ERROR, "Incorrect Username or Password",
                                     "An incorrect Username or Password" +
                                     " was specified");
                ctx.addMessage(null, msg);
            } catch (LoginException le) {
                reportUnexpectedLoginError("LoginException", le);
            return null;
        }This takes me to welcome page.
    I have a golink control in this page.
    The destination of golink is:
    "#{securityContext.authenticated ? "/adfAuthentication?logout=true&end_url=/faces/Error.jspx"
    : "/adfAuthentication?success_url=/faces/Login.jspx"} "
    (I dont know what this el means. i believe it sets logout to false)
    It takes me to error page.
    I believe I should be logged out now. But when I press back in browser it takes me back to welcome page.
    I put an af:output text with value security.authenticated and it shows true.
    So created a servlet
    public class LogoutServlet extends HttpServlet {
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
        public void doGet(HttpServletRequest request,
                          HttpServletResponse response) throws ServletException,
                                                               IOException {
            request.getSession(true).invalidate();       
            response.sendRedirect("faces/Error.jspx");
        public void doPost(HttpServletRequest request,
                           HttpServletResponse response) throws ServletException,
                                                                IOException {
            doGet(request, response);
    }registerd it in web.xml as url pattern logout.
    Set the destination of golink as logout.
    But still the same results.
    Where did i go wrong?
    the role of welcome.jspx is authenticated-role
    Edited by: josetuttu on Jul 7, 2011 2:17 AM

    Hi , your problem is arising when user presses the back button of the browser , web browser shows the page from its cache. If you want that
    on pressing the back button users should not view the previous pages you must stop web browser from caching the page to its local memory.
    It can be done by adding the following code in the jsp:root tag of jsf (.jspx) page.
      <jsp:scriptlet>
      // Set to expire far in the past.
          response.setDateHeader("Expires", 0);
      // Set standard HTTP/1.1 no-cache headers.
         response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");
      // Set IE extended HTTP/1.1 no-cache headers (use addHeader).
         response.addHeader("Cache-Control", "post-check=0, pre-check=0");
      // Set standard HTTP/1.0 no-cache header.
         response.setHeader("Pragma", "no-cache");
    </jsp:scriptlet>Now when ever page is loaded the web browser will never cache the local copy of web pages and hence users will not be allowed to view previous pages when clicking back button
    on browser .
    Hope this helps.

  • SQL: Issue with running out of storage on server when running table-valued function

    SQL Version: 2008 (not r2)
    Problem:  I'm getting the following error message when running a table-valued function:
    Msg 1105, Level 17, State 2, Line 1
    Could not allocate space for object 'dbo.SORT temporary run storage:  141072001204224' in database 'tempdb' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files
    to the filegroup, or setting autogrowth on for existing files in the filegroup.
    Request:  Could anyone tell me if there are modifications that I could make to my SQL code to avoid this storage issues?
    Thanks,
    ....bob sutor
    Code Facts:
    The JCCD table is a large table 2MM records
    The other tables in the JOINS are very small 15 records or less
    SQL Function Code:
    ALTER FUNCTION [dbo].[xcft_XAWP_GLBalance_JCCD_Detail]()
    RETURNS @JCGLDetail TABLE
          JCCo tinyint
        , Job varchar(10)
        , PostingSource varchar(10)
        , CostToDate numeric(12,2)
        , Phase varchar(20)
        , EarnType smallint
        , LiabilityType smallint
        , CostType tinyint
        , ControllingSetting varchar(30)
        , GLAccountCharged varchar(20)
        , DeptNum varchar(10)
        , DeptDesc varchar(30)
        , JCDC_CostType tinyint
        , CostTypeGL_Open varchar(20)
        , CostTypeGL_Closed varchar(20)
        , JCDO_ExcludePR varchar(1)
        , JCDO_Phase varchar(20)
        , PhaseGL_Open varchar(20)
        , PhaseGL_Closed  varchar(20)
        , JCDL_LiabType smallint
        , LiabTypeGL_Open varchar(20)
        , LiabTypeGL_Closed varchar(20)
        , JCDE_EarnType smallint
        , EarnTypeGL_Open varchar(20)
        , EarnTypeGL_Closed varchar(20)
    AS
    BEGIN
     DECLARE
     @WIPMonthCurrent date
     SET @WIPMonthCurrent = (Select TOP 1 WIPMonth FROM udxcWIPMonths WHERE ActiveWIPPeriod = 'Y')
     INSERT INTO @JCGLDetail
          JCCo
        , Job
        , PostingSource
        , CostToDate
        , Phase
        , EarnType
        , LiabilityType
        , CostType
        , DeptNum
        , DeptDesc
        , JCDC_CostType
        , CostTypeGL_Open
        , CostTypeGL_Closed
        , JCDO_ExcludePR
        , JCDO_Phase
        , PhaseGL_Open
        , PhaseGL_Closed
        , JCDL_LiabType
        , LiabTypeGL_Open
        , LiabTypeGL_Closed
        , JCDE_EarnType
        , EarnTypeGL_Open
        , EarnTypeGL_Closed
     SELECT  
         JCCD.JCCo, JCCD.Job, JCCD.Source, sum(JCCD.ActualCost) AS CostToDate, JCCD.Phase, JCCD.EarnType, JCCD.LiabilityType, JCCD.CostType
       , JCDM.Department, JCDM.Description
       , JCDC.CostType AS JCDC_CostType, JCDC.OpenWIPAcct AS CostTypeGL_Open, JCDC.ClosedExpAcct AS CostTypeGL_Closed
       , JCDO.ExcludePR AS JCDO_ExcludePR, JCDO.Phase AS JCDO_Phase, JCDO.OpenWIPAcct AS PhaseGL_Open, JCDO.ClosedExpAcct AS PhaseGL_Closed
       , JCDL.LiabType AS JCDL_LiabType, JCDL.OpenBurdenAcct AS LiabTypeGL_Open, JCDL.ClosedBurdenAcct AS LiabTypeGL_Closed
       , JCDE.EarnType AS JCDE_EarnType, JCDE.OpenLaborAcct AS EarnTypeGL_Open, JCDE.ClosedLaborAcct AS EarnTypeGL_Closed
     FROM JCCD
     LEFT JOIN JCJP ON JCCD.JCCo = JCJP.JCCo AND JCCD.Job = JCJP.Job
     LEFT JOIN JCCM ON JCJP.JCCo = JCCM.JCCo AND JCJP.Contract = JCCM.Contract
     LEFT JOIN JCDM ON JCCM.JCCo = JCDM.JCCo AND JCCM.Department = JCDM.Department
     LEFT JOIN JCDC ON JCDM.JCCo = JCDC.JCCo AND JCDM.Department = JCDC.Department AND JCCD.CostType = JCDC.CostType
     LEFT JOIN JCDE ON JCDM.JCCo = JCDE.JCCo AND JCDM.Department = JCDE.Department AND JCCD.EarnType = JCDE.EarnType
     LEFT JOIN JCDO ON JCDM.JCCo = JCDO.JCCo AND JCDM.Department = JCDO.Department AND JCCD.Phase = JCDO.Phase
     LEFT JOIN JCDL ON JCDM.JCCo = JCDL.JCCo AND JCDM.Department = JCDL.Department AND JCCD.LiabilityType = JCDL.LiabType
     LEFT JOIN xcft_XAWP_FiscalPeriodCutoffs_ForWIPMonth() AS cutoffs ON JCCD.JCCo = cutoffs.GLCo
     WHERE
          JCCD.Mth <= cutoffs.FiscalYear_LastMonth
         AND JCCD.Job IN(SELECT JobNum FROM budxcWIPData_SQL WHERE WIPMonth = @WIPMonthCurrent)
         AND JCCD.JCCo IN(SELECT JCCo FROM JCCO WHERE udExcludeFromWIP <> 'Y' or udExcludeFromWIP IS NULL)
         --AND LTRIM(RTRIM(JCCD.Job)) = '71-'
     GROUP BY
         JCCD.JCCo, JCCD.Job, JCCD.Source, JCCD.Phase, JCCD.EarnType, JCCD.LiabilityType, JCCD.CostType
       , JCDM.Department, JCDM.Description
       , JCDC.CostType, JCDC.OpenWIPAcct, JCDC.ClosedExpAcct
       , JCDO.ExcludePR, JCDO.Phase, JCDO.OpenWIPAcct, JCDO.ClosedExpAcct
       , JCDL.LiabType, JCDL.OpenBurdenAcct, JCDL.ClosedBurdenAcct
       , JCDE.EarnType, JCDE.OpenLaborAcct, JCDE.ClosedLaborAcct
     UPDATE @JCGLDetail
      SET
          ControllingSetting =
        CASE WHEN Phase = JCDO_Phase AND JCDO_ExcludePR = 'N' THEN 'PhaseOverride-PR Excluded'
          WHEN Phase = JCDO_Phase AND JCDO_ExcludePR = 'Y'
           AND EarnType NOT IN(Select EarnType FROM JCDE WHERE JCDE.JCCo = JCCo AND JCDE.Department = DeptNum)
           AND LiabilityType NOT IN(Select LiabType FROM JCDL WHERE JCDL.JCCo = JCCo AND JCDL.Department = DeptNum)
           THEN 'PhaseOverride-PR Not Excluded'
          WHEN EarnType = JCDE_EarnType THEN 'Earn Type Override'
          WHEN LiabilityType = JCDL_LiabType THEN 'Liability Type Override'
          ELSE 'Cost Type' END
     UPDATE @JCGLDetail
      SET
          GLAccountCharged =
        CASE WHEN ControllingSetting = 'PhaseOverride-PR Excluded' OR ControllingSetting = 'PhaseOverride-PR Not Excluded'
          THEN PhaseGL_Open
          WHEN ControllingSetting = 'Earn Type Override' THEN EarnTypeGL_Open
          WHEN ControllingSetting = 'Liability Type Override' THEN LiabTypeGL_Open
          ELSE CostTypeGL_Open END
    RETURN 
    END
    Bob Sutor

    well, did you either restart the instance or add another tempdb file (no restart required) to let other transactions  continue on the server.
    or check if autogrowth was limited, change that to unlimnited , to the transactions conintue..
    the function may be dumping the data on to tempdb, how much data are you excepting back...what are indexes on the tables
    Hope it Helps!!

  • Audigy Plat xp issues with SPDIF out

    I recently did an XP pro reload and reinstalled the drivers for my audigy platinum with the results of lossing my spdif output to my reciever. Any suggestion?

    I recently did an XP pro reload and reinstalled the drivers for my audigy platinum with the results of lossing my spdif output to my reciever. Any suggestion?

Maybe you are looking for

  • ORA-01791

    Hi All, I have this sql statement: Select Distinct EXTRACT(YEAR from A_DATE) from Attendances order by A_Date ASC; the error: ORA-01791: not a SELECTed expression

  • Airport Express 802.11g cannot connect with OS X 10.8.3

    Hi just updated my MacBook Pro to OS X to 10.8.3.  I have an older model Airport Express (802.11g) that I have been able use to set up wireless speakers via Airport Utility 5.6 and 5.6.1.  However, this most recent Mountain Lion update has rendered m

  • Importing Encore CS6 menus into Photoshop CC

    So, I'm faithfully cruising the web and the forums looking for answers to this question, and that is: "How do I import an Encore menu into Photoshop now that the Dynamic link functionality no longer works with Encore CS6 and any of the CC suite. I'm

  • Roles for unit test

    Hi all, I need to create users and assign role for unit test client. But I do not known which roles  I have to assign to them. If you know, pls tell me. Thanks alot.

  • Service component repository

    Hi Gents, I'm writing a Bachelor Thesis about SOA and I'm trying to implement an existing business process to a service oriented environment. I've heard, that it is possible to see the SAP standard services in a kind of repository??? Is this correct?