Portal Rendering changes when deployed.

I have been developing a Portal application and have found that the appearance
of the Portal in the same browser differs between "development" and "production"
modes. By this I mean accessing the Portal via its .portal file, or via the URL
defined in the Portal Admin Console respectively.
The Production Portal (streamed from an Oracle database) was, of course, created
using the .portal file as the input template when creating the Desktop.
I have compared the HTML source of the home page of both Portals and I am unable
to find any differences (such as stylesheets, font-sizes etc) that would affect
the visual appearance.
This leads me to think that the problem lies with stylesheets, which for some
reason can not be found on the production portal.
Has anyone experienced this, or have any idea why this might be happening?
Thanks in advance,
John.

John - we haven't seen the exact same problem, however when we ran our
production server in "production" mode - the skins were resolving
incorrectly. When we run our production server in development mode - e skins
work fine. If you're running in production mode - try development mode just
to see... it may be related to what we've experienced....
cheers,
Markus
"John Wheeler" <[email protected]> wrote in message
news:40437bbd$[email protected]..
>
I have been developing a Portal application and have found that theappearance
of the Portal in the same browser differs between "development" and"production"
modes. By this I mean accessing the Portal via its .portal file, or viathe URL
defined in the Portal Admin Console respectively.
The Production Portal (streamed from an Oracle database) was, of course,created
using the .portal file as the input template when creating the Desktop.
I have compared the HTML source of the home page of both Portals and I amunable
to find any differences (such as stylesheets, font-sizes etc) that wouldaffect
the visual appearance.
This leads me to think that the problem lies with stylesheets, which forsome
reason can not be found on the production portal.
Has anyone experienced this, or have any idea why this might be happening?
Thanks in advance,
John.

Similar Messages

  • Exception setting SOAP address to $CHANGE-WHEN-DEPLOY$:

    Am trying to call the Credit Rating Service using the 10.1.2 version of BPEL engine using the JDeveloper Designer. Have no problems calling the Credit Rating Service through the console tester but when my BPEL process called SynchBPELProcess2 calls the credit rating service I get the following error:
    Your test request generated the following exception/fault:
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}bindingFault}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    parts: {{summary=exception setting SOAP address to $CHANGE-WHEN-DEPLOY$: no protocol: $CHANGE-WHEN-DEPLOY$; nested exception is:
         java.net.MalformedURLException: no protocol: $CHANGE-WHEN-DEPLOY$}}
    Is there some additional configuration that needs to be done to get around this or am I missing a step somewhere. Ran into this while going step by step with the Order booking tutorial and so decided to try with a separate project.
    BPEL File Attached below:
    <!--
    // Oracle JDeveloper BPEL Designer
    // Created: Tue Apr 12 18:57:43 GMT+05:30 2005
    // Author: 121401
    // Purpose: Synchronous BPEL Process
    -->
    <process name="SynchBPELProcess2" targetNamespace="http://xmlns.oracle.com/SynchBPELProcess2" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:ns1="http://services.otn.com" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:client="http://xmlns.oracle.com/SynchBPELProcess2" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"><!-- ================================================================= --><!-- PARTNERLINKS --><!-- List of services participating in this BPEL process --><!-- ================================================================= -->
    <partnerLinks><!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="client" partnerLinkType="client:SynchBPELProcess2" myRole="SynchBPELProcess2Provider"/>
    <partnerLink name="CreditRatingService" partnerLinkType="ns1:CreditRatingService" partnerRole="CreditRatingServiceProvider"/>
    </partnerLinks><!-- ================================================================= --><!-- VARIABLES --><!-- List of messages and XML documents used within this BPEL process --><!-- ================================================================= -->
    <variables><!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:SynchBPELProcess2RequestMessage"/><!--
    Reference to the message that will be returned to the requester
    -->
    <variable name="outputVariable" messageType="client:SynchBPELProcess2ResponseMessage"/>
    <variable name="invokeCR_process_InputVariable" messageType="ns1:CreditRatingServiceRequestMessage"/>
    <variable name="invokeCR_process_OutputVariable" messageType="ns1:CreditRatingServiceResponseMessage"/>
    </variables><!-- ================================================================= --><!-- ORCHESTRATION LOGIC --><!-- Set of activities coordinating the flow of messages across the --><!-- services integrated within this business process --><!-- ================================================================= -->
    <sequence name="main"><!-- Receive input from requestor.
    Note: This maps to operation defined in SynchBPELProcess2.wsdl
    -->
    <receive name="receiveInput" partnerLink="client" portType="client:SynchBPELProcess2" operation="process" variable="inputVariable" createInstance="yes"/><!-- Generate reply to synchronous request -->
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload" query="/client:SynchBPELProcess2ProcessRequest/client:input"/>
    <to variable="invokeCR_process_InputVariable" part="payload" query="/ns1:ssn"/>
    </copy>
    </assign>
    <invoke name="invokeCR" partnerLink="CreditRatingService" portType="ns1:CreditRatingService" operation="process" inputVariable="invokeCR_process_InputVariable" outputVariable="invokeCR_process_OutputVariable"/>
    <reply name="replyOutput" partnerLink="client" portType="client:SynchBPELProcess2" operation="process" variable="outputVariable"/>
    <assign name="Assign_2">
    <copy>
    <from variable="invokeCR_process_OutputVariable" part="payload" query="/ns1:rating"/>
    <to variable="outputVariable" part="payload" query="/client:SynchBPELProcess2ProcessResponse/client:result"/>
    </copy>
    </assign>
    </sequence>
    </process>
    WSDL Attached below :
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="SynchBPELProcess2"
    targetNamespace="http://xmlns.oracle.com/SynchBPELProcess2"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:client="http://xmlns.oracle.com/SynchBPELProcess2"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         TYPE DEFINITION - List of services participating in this BPEL process
         The default output of the BPEL designer uses strings as input and
         output to the BPEL Process. But you can define or import any XML
         Schema type and us them as part of the message types.
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <types>
              <schema attributeFormDefault="qualified"
                   elementFormDefault="qualified"
                   targetNamespace="http://xmlns.oracle.com/SynchBPELProcess2"
                   xmlns="http://www.w3.org/2001/XMLSchema">
                   <element name="SynchBPELProcess2ProcessRequest">
                        <complexType>
                             <sequence>
                                  <element name="input" type="string"/>
                             </sequence>
                        </complexType>
                   </element>
                   <element name="SynchBPELProcess2ProcessResponse">
                        <complexType>
                             <sequence>
                                  <element name="result" type="string"/>
                             </sequence>
                        </complexType>
                   </element>
              </schema>
         </types>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         MESSAGE TYPE DEFINITION - Definition of the message types used as
         part of the port type defintions
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <message name="SynchBPELProcess2RequestMessage">
              <part name="payload" element="client:SynchBPELProcess2ProcessRequest"/>
         </message>
         <message name="SynchBPELProcess2ResponseMessage">
              <part name="payload" element="client:SynchBPELProcess2ProcessResponse"/>
         </message>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         PORT TYPE DEFINITION - A port type groups a set of operations into
         a logical service unit.
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <!-- portType implemented by the SynchBPELProcess2 BPEL process -->
         <portType name="SynchBPELProcess2">
              <operation name="process">
                   <input message="client:SynchBPELProcess2RequestMessage" />
                   <output message="client:SynchBPELProcess2ResponseMessage"/>
              </operation>
         </portType>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         PARTNER LINK TYPE DEFINITION
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <plnk:partnerLinkType name="SynchBPELProcess2">
              <plnk:role name="SynchBPELProcess2Provider">
                   <plnk:portType name="client:SynchBPELProcess2"/>
              </plnk:role>
         </plnk:partnerLinkType>
    </definitions>

    Lasts monday I downloaded a version (10.1.2 release, not preview/beta 3) which has the same filename and file size of the 10.1.2 GA release which is available right now.
    I don't think the problem is in the PM, because i can run bpelc/obant to build my processes. however when i build them with the Eclipse plugin, it won't change the location of the wsdl (keep saying $CHANGE_WHEN_DEPLOY$).

  • Permissions of SQL Server Database changes when deploying application

    Hi.
    When deploying my application, I find that the permission changes as in the screenshot below and hence I cannot update the database. It becomes read only.
    However, before deployment, I had already set the permissions for Users to Full Control.
    The Read-Only properties is set to False in the Setup for deployment. Help please.

    If deploying a file for read/write permissions on the O/S(s) talked about in the link, then you need to deploy the file to ProgramData (all users folder) or to a folder you created with the persmission needed at the folder level. You deploy  the file
    to Program Files folder, then the O/S(s) are only going to allow read and read/execute.
    https://technet.microsoft.com/en-us/library/ff716245.aspx?f=255&MSPPError=-2147217396

  • Property Metadata don't change when deploying project

    Hi,
    1.) I used this help http://help.sap.com/saphelp_nw2004s/helpdata/en/44/2dff5a13363f0ae10000000a114a6b/content.htm
    to create my own commands, uicommands, etc.
    2.) I also created manually in: System Administration => System Configuration => Knowledge Management => Content Management => Global Services => Property Metadata my own properties to extend the userdetails like described in http://help.sap.com/bp_epv170/EP_US/Documentation/How-to/KM/Extending_User_Details.pdf
    This all works perfectly.
    Instead of creating and exporting all my Property Metadata manually I exported them (I have now a XML) and integrated them into my Project => see 1.)
    I also found this post: https://www.sdn.sap.com/irj/sdn/message?messageID=3533233
    So, when I deploy my project and the properties aren't existing the are created immediately. BUT when I change something in the property metadata XML in my project and I redeploy the project the existing property doesn't change.
    I don't want to delete everytime all my properties to make changes active.
    With uicommands I don't have this problems. When I change there something I can deploy the project, new uicommands will be added and existing ones will be updated. Unfortunately not by property metadata.
    Do you have any ideas why this happens?
    Regards,
    Stefan

    Hello Stefan,
    you might have a versioning problem when merging the new KM configuration from your project with the existing configuration in KM. That would explain why everything works fine if you delete the existing settings first but it won't if you try to overwrite the existing settings!
    KM merges the configuration when you deploy a PAR file with configuration. You need to tell the system that the settings in the PAR file should replace the existing settings. This can be done by including the file export_cm_mapping.xml into your project. (At least that is the name of the file in NW04). You can get this file by exporting some configuration from your KM system with the KM export functionality and unzip the resulting configarchive file. It should contain the correct export_cm_mapping.xml file. Just take this file and put it into the src.config directory in the same path. (For NW04 that is: src.config/install/data/system/command/export_cm_mapping.xml.)
    Hope this helps,
    Martin

  • Change PowerPivot data source when deploying from Dev - Staging - Production

    We have PowerPivot workbooks we store in SharePoint 2013 Libraries. 
    We have a powershell script which automates the deployment of sites and pages. Is there a way using PowerShell (or any scripting language really) to look into the workbook and change the PowerPivot data source when deployment from one environment to
    another? (Dev -> Stage -> Prod) We need to update the workbooks to point to our SSAS cubes Dev -> Stage -> Prod respectively.
    Thank you for any expert advice you may offer,
    Sincerely,
    -Craig

    Basically, it's an excel file (XLSX) file and you can use excel OM for this.
    A simple program (in C# or any language of your choice) can be written to do the following and achieve what you need.
    using XLS = Microsoft.Office.Interop.Excel;
    string info = null;
    XLS.Application application = null;
    try
     application = new XLS.Application();
     var book = application.Workbooks.Open(filepath);
     foreach (XLS.WorkbookConnection wc in book.Connections)
      switch (wc.Type)
       case XLS.XlConnectionType.xlConnectionTypeOLEDB:
        info = wc.Name + " " + wc.OLEDBConnection.Connection.ToString() + "\r\n";
        break;
     book.Close();
    finally
     if (application != null)
      application.Quit();
    Hopefully, this was helpful.

  • Invalid change to class error when deploying EJB

    We have EJBs that were built by Webgain Visual Cafe and successfully deploy
    to WLS 5.1. We then use the WLE EJB Deployer Tool to build WLE container
    classes and deploy the same EJBs in WLE 5.1.
    One EJB does not deploy in WLE. The ULOG error message is:
    133929.EA-LAWSTUC!JavaServer.517: main: IJENGINE_CAT:150: ERROR: Invalid
    change to class service.Request
    133929.EA-LAWSTUC!JavaServer.517: main: EJB_CAT:29: ERROR: While deploying
    jar ServiceEJB : com.beasys.weblogic.classloader.RedeploymentException:
    ERROR: Invalid change to class service.Request
    133929.EA-LAWSTUC!JavaServer.517: Finalizer: IJENGINE_CAT:152: INFO: Closing
    jar C:\aj\ServiceEJB_WLE.jar
    Does anyone know what can cause an "invalid change to class" error when
    deploying to WLE 5.1? Especially since the EJB deploys successfully in
    WLS.
    Carl Lawstuen

    Reason: database keeps a reference of the class in JAVA$CLASS$MD5$TABLE table. This table keeps a refrence to all java classes loaded in database, and is present in each schema you deploy classes. That's the reason why if you change the application module name, you can load this classes. It instead keeps a reference if you use DROP JAVA CLASS command to drop a java class from de database. Use DROP JAVA command to clear the reference of the dropped classes when dropping it.
    You can see this table as a class dictionary of the database, and you don't have to handle this records manually.

  • [svn:fx-4.x] 14837: Changing the way data tips are rendered in when mirrored.

    Revision: 14837
    Revision: 14837
    Author:   [email protected]
    Date:     2010-03-18 00:26:27 -0700 (Thu, 18 Mar 2010)
    Log Message:
    Changing the way data tips are rendered in when mirrored.
    Single data tip shows to left in RTL now which shows to right in LTR
    Callouts connecting datatips to chart items are also modified.
    QE notes:
    Doc notes:
    Bugs: FLEXDMV-2347 ( Datatips cluterred in bubble chart when layoutDirection=rtl)
    FLEXDMV-2348 ( Position of datatips not changing WRT layoutDirection)
    Reviewer:
    Tests run: checkintests
    Is noteworthy for integration:
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FLEXDMV-2347
        http://bugs.adobe.com/jira/browse/FLEXDMV-2348
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/datavisualization/src/mx/charts/chartClasses/Ch artBase.as

    Setting Lightroom's preview size to larger than screen resolution is guaranteed to slow things down. I have a dual monitor system whith Lightroom showing the loupe on one screen and the grid on the other. The screen sizes are 1920x1080 and 2560x1440. Following your practice for previews would bring my system to a crawl and I have an entry level workstation.All my previews are of standard 1024x768 in size. The only delays in viewing come when Lightroom is asked to display an image where there is no preview. Once the preview has been created, browsing is near instantaneous.
    I beg to differ! The reason is that a preview can be used for any size, which is smaller than that of the preview. Scaling down a preview can be done with little or not loss in quality compared to getting the full resulution and scale that down. Scaling up is not possible.
    In your case, you will not use the previews of 1024x768 at all for full screen display. Instead you will force L3 to create bigger previews the first time you open the photo. You could try this by generating the standard previews for new imported photos before you start browsing. Then try to browse. You will probably get the "Loading" message, which indicates that the preview was not used and another one with higher resolution will be made. Then try the same experiment, setting the size of the standard preview to 2048. If, and only if, the size of your display area is not more than 2048 pixels wide and you display a photo in lanscape orientation, you will be able to browse without delay after generating the standard previews.
    If I understand your setup correctly, you display the photos in a window of 2560x1440 pixels. I suspect that only 1:1 previews could be used for that. I think Adobe should increase the maximum size of the previews to a value larger than 2048, so that you are not forced to use only the 1:1 previews.
    I agree, that when the previews have been generated, browsing is near instantaneous.

  • Portal DLL Size changes when recompiled?

    I have built a custom UI scheme, and when I build the portal50 solution, I noticed that the portal DLLs changed size and are somewhat larger. I have not modified the code of the core portal UI; I only added my own projects which generate their own DLLs. Has anyone else experienced this? Are there some optimizations that aren't configured by default when compiling in release mode that I should be enabling?
    Thanks, Tim Halbach

    I think it's because of default style of the page on which portlet is placed on.

  • Changing PollingFrequency when deploying?

    Hi,
    We have a few FTP-adapter based polling flows and I wonder if anyone know of any way to either programaticaly change the value of PollingFrequency or alter it when deploying.
    We have to have the value set to 15 minutes in the production environment but that is not very nice in on development server as it takes a while to test things if I have to wait 15 minutes for a file to be picked up by BPEL.
    So does anyone know a way to either change this value depending on which server it resides on or possibly force the FTP adapter to pickup files regardless of the value?
    The ideal option would be to somehow set it via a property in the bpel.xml file as we already use that file to change various aspects when deploying the process to various environments.
    // MickeM

    Thanks for your reply.
    We currently use ant to deploy but have opted to use different bpel.xml files for the various environments as "most" things can be set there and we found it to be slightly more predictable than search-replace in "various files".
    The problem we found with search-replacing in the wsdl file is that we both have no "default name" for the in-ftp wsdl-filename (some flows even have more then one) so it would require a "separate build step" for each flow to work that way and also since "search replace" would spread the changes over multiple files it would be hard for the customer to maintain the platform in the long run.
    As it is now we have a "single point" where we have all our "specific configurations" so from a maintinence perspective it is easy to see "why" a value is used and whence it came.
    So a way to alter/control it from bpel.xml (or similar) would be preferable.
    But perhaps that is not possible?
    // MickeM

  • Change default schemaLocation of wsdl when deploying a web service

    Hi,
    When I deploy a web service, and then view the schemaLocation attribute of the wsdl, it points to a file with the machine name and not the url for my server. I have tried changing in config files all of the instances that point to my machine name instead of my url. This has not changed what gets set for schemaLocation when I deploy the web service. I also tried creating a new virtual server but I am unsure what value to put for the hostName. I tried my url and that did not seem to work. Does anyone have any ideas of to change the value that gets written to schemaLocation attribute when deploying a web service?
    Could anyone point me to documentation for changing a domains' hostName or in other words, the url used to access it? I know when I point my browser to my server's url instead of the machine name for the admin console, things seem to work. But then I run into problems such as above, where certain urls do not get set properly.
    If there is a way to set this when installing Sun ONE AS through the wizard, please let me know because I have not added much to my install and could reinstall the software.
    Thanks,
    Scott

    Hi disgruntled one,
    The same problem has plagued us a few times already, and I've finally found a solution that worked for me.
    Option 1 - requires redeployment of web services.
    1. In the admin console, navigate to Configuration -> HTTP service -> HTTP Listeners.
    2. Select the correct listener. In most cases this would be http-listener-1
    3. In the General Settings section, enter the correct name of your host in the Server Name field. This can be the corresponding name you have in a DNS for the host, or if you don't have a DNS entry, you can hard code it to the machine's IP address.
    4. Redeploy any web services for the changes to take effect. I've tried restarting the server but that doesn't seem to have an effect on the WSDL output.
    Option 2 - modify the generated WSDL file
    1. Look under the {you app server's path}\domains\domain1\generated\xml. You should find the generated WSDL file under this tree in their appropriate sub folders.
    2. Modify as you see fit.
    This method of course, needs to be redone for each time you redeploy the web services.
    Cheers,
    Fred

  • Changing user & table name when deploying CMP from jdev902

    Hi
    How can I choose different user and table name when deploying CMP EJB other then Oracle/CMP name from Jdev902 to OC4J 902. I have tried edinting orion-ejb-jar.xml's entity-deployment tag with limited succes ie: it works fine when I deploy to the inbedded OC4J but when I try deploying to standalone OC4J I get table created in Oracle user and a table with the same name as the CMP.
    I have also tried deploying the connections.xml along with the java classes, that didn't work either.
    All help is appreciated - Thanks

    You can do a Restore for the iPod with your computer again, but bear in mind that it will erase all data on the iPod and replace with the library of music files on your iTunes.
    How to do a Restore? that is simple, download iTunes 7.01 and install it your computer, open it and plug your iPod with it, then click Restore.
    http://www.apple.com/itunes/download/
    to restore your iPod to factory settings.
    http://docs.info.apple.com/article.html?artnum=60983

  • BUG: Entering a "version" when deploying to a WebLogic server doesn't work

    By default when deploying to a weblogic server the "Version" is set to v2.0. If you change that to something like v2.1 when the application is deployed, the deployment logs still show the Version=2.0. What needs to be done to get the Version in deployment to accept the changes on the deployment form?

    Sorry, I wasn't clear. This is a Portal application deployed using MDS. So it doesn't have the file referenced in that blog post. The Version field I'm referring to is on the form that pops up to set the MDS repository. For reasons unknown it will always come up v2.0 even during the first deployment. Regardless of what I change it to the Version always equals 2.0 in the deployment logs.

  • Problem with fonts in forms when deployed on web

    Hi everybody out there! Please help me out. My problem is:
    I have used developer server to deploy forms on web, but when a
    form is shown on web, it takes some default settings for fonts
    and colors instead of retaining the original colors and fonts
    that i chose during creating forms. I want that forms retain
    their original colors and fonts when deployed on web. How would
    i do that ?? Someone told me to check the Registry.dat file but
    i do not how to change the settings in registry.dat file. So
    help me out and tell me how would i change color and font
    settings for forms being shown on web by web app. server.
    Thanking you in anticipation,
    Cheema
    null

    Hello Neeraj!
    The problem is no resolved:) In the Visual Attribute Group I changed the Font Weight to Bold in the Property Palette.
    Thanks a lot for showing interest for my problem.
    Regards
    Roar

  • Unable to load data / NullReferenceException only on certain tables when deployed

    I have a LightSwitch app that works fine when being debugged locally. But it has a strange issue when deployed as a Cloud Service to Azure. I have two Silverlight grid controls on the page which display a red x and give the error, "Unable to load data.
    Please check your network connection and try loading again."
    Several other queries are running on this page and correctly pull data from other tables in the database. The queries that run correctly are tied to label or text box controls.
    The queries that fail, return an HTTP Status code 500 (Internal error). If I try and pass the query to a constructor as an IVisualCollection,
    and I wrap the call in a Try block,
    the Inner Exception is "Object reference not set to an instance of an object." So, a Null Reference Exception. Checking for null before the constructor call and popping up a message box if the query was null as a means of debugging yielded nothing. I
    create these helpers all over. Only two are causing an issue and only when deployed. In addition, running the query in the Management Portal also completes fine.
    Try
    'Check for nulls
    If (Me.qQuoteByFirm Is Nothing) Then
    Me.ShowMessageBox("qQuoteByFirm", "Error", MessageBoxOption.Ok)
    End If
    If (Me.qQuoteByFirm.Screen Is Nothing) Then
    Me.ShowMessageBox("Screen", "Error", MessageBoxOption.Ok)
    End If
    If (New ModalWindowHelper(Me.qQuoteByFirm, "mwAddQuote", "Quote") Is Nothing) Then
    Me.ShowMessageBox("Modal", "Error", MessageBoxOption.Ok)
    End If
    'Create helper
    Me.HelperAddQuote = New ModalWindowHelper(Me.qQuoteByFirm, "mwAddQuote", "Quote")
    Catch ex As Exception
    Dim err As String = ""
    For Each item In ex.Data
    err = err & item.ToString()
    Next
    err = err & ex.InnerException.ToString() & vbCrLf & _
    ex.Message.ToString() & vbCrLf & _
    ex.StackTrace
    Me.ShowMessageBox(err, "Error", MessageBoxOption.Ok)
    End Try
    'Constructor
    Public Sub New(ByVal visualCollection As IVisualCollection, _
    ByVal dialogName As String, _
    Optional entityName As String = "")
    _collection = visualCollection
    _dialogName = dialogName
    _entityName = If(entityName <> "", entityName, _collection.Details.GetModel.ElementType.Name)
    _screen = _collection.Screen
    End Sub
    The actual construction of the queries does not seem to matter. I've tried several variations along with requesting the entire table. Same result. However, this only occurs on two specific tables. Grid controls displaying other tables on other screens work
    properly.
    Here's the weird part. If I comment out the call to the constructor, I can gain access to the gird control and add data to it even through the red box remains. If I refresh the grid control, the data disappears as if it wasn't saved or isn't there. But inspecting
    the table in SQL Azure Management Portal shows that the data was properly populated in the table.
    The app and the database are clearly connected and able to communicate fine. So why when reading from these two tables (but not writing to) are my grid controls throwing exceptions? Why does this only happen when deployed? What other techniques can I use to
    get more information?

    I am not very familiar with Lightswtich. But 500 is a server side error. Do you manually code the server side, or does Lightswitch automatically generates the server side code? If you manually coded, then please try to catch exceptions in
    your server side code. If the code is automatically generated, you may want to consult a Lightswitch forum on how to troubleshooting such issues. What's more, when you refresh the grid, what code are invoked? Try to check that piece of code and see if there're
    any problems, such as you reload the grid with empty data.

  • Error when deploying a simple Entity bean (EJB3) on Glassfich or Sun AS

    Hi,
    After some problems when deploying complex EJB3 Entity bean on GlassFich with a MySQL connector, I have made a simple entity.
    (test with Glassfish and Sun AS with same result)
    With netbean 5.5 => New EJB Module
    File->New->Persistence Unit (and use default values)
    Persistence.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
      <persistence-unit name="test" transaction-type="JTA">
       <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
        <jta-data-source>jdbc/sample</jta-data-source>
        <properties>
          <property name="toplink.ddl-generation" value="create-tables"/>
        </properties>
      </persistence-unit>
    </persistence>File->New->Entity Class
    EntityTest.java
    package test;
    import java.io.Serializable;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    @Entity
    public class EntityTest implements Serializable
        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
        private Long id;
        /** Creates a new instance of EntityTest */
        public EntityTest()
        public Long getId()
            return id;
        public void setId(Long id)
            this.id = id;
        public String toString()
            //TODO change toString() implementation to return a better display name
            return "" + this.id;
    }Build of project work fine but when I try to deploy (with the 2 servers), I have the error :
    Exception occured in J2EEC Phase
    com.sun.enterprise.deployment.backend.IASDeploymentException: Deployment Error -- null
    at java.util.HashMap$HashIterator.nextEntry(HashMap.java:790)
    at java.util.HashMap$KeyIterator.next(HashMap.java:823)
    at com.sun.enterprise.deployment.backend.EjbModuleDeployer.generatePolicy(EjbModuleDeployer.java:203)
    at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:171)
    at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739)
    at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
    at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)

    Yes, the problem is that the ejb-jar must contain at least one ejb component. It's a common misconception that Java Persistence API Entity classes are ejb components but they are NOT. The Java Persistence API was developed within the EJB 3.0 JSR and works very well with EJB but the entity classes themselves are not full-fledged ejb components.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for