Taskflow Method call receiving null parameter.

Hi all,
I am using 11.1.1.6. I have created in my application an extra project which is pure Java objects and exposed a master class as a POJO DC. In my application, I have a taskflow where I have dragged and dropped one method from my POJO DC - 2 of the parameters of this methods are coming from an application scope bean. I have debugged the application, and made sure that the object being returned by the getter of my app scope bean is not null. So basically, when the breakpoint is in the return statement of my getter the oject is not null and it has been correctly initialized. Just after that, the next breakpoint is in the class receiving the parameter in my POJO DC class. In there, the object is NULL.
Does anyone knows wat could be the reason??

Hi Frank Nimphius-Oracle,
That is precisely the problem.  The object is being passed as to the taskflow as an input parameter (getting it from my application scope bean). If I access the pageFlowScope inside my taskflow I see it and its there, correctely intialized. However, when I call a method call activity that consumes that object as parameter, all what it gets is null.
The method that consumes this object is in a separate project, and its exposed in a POJO DC. I don't know if it has to be with the complexity of the object I am passing or what but I don't understand why its not being passed correctly to the DC Method.

Similar Messages

  • Why are static methods called with null references,valid ?

    This is my code :
    package inheritance;
    public class inh6{
         public static void method(){
         System.out.println("Called");
         public static void main(String[] args){
              inh6 t4 = null;
         t4.method();
    O/P :
    CalledHere t4 is a null reference and yet we are able to call a method on it,why is null pointerexception not thrown.Why are we able to call static methods using null references ?
    t4 is null means it doesnot refer to any memeory address,hence how is method() called correctly.
    I hope i am clear. :)
    Thank you for your consideration.

    punter wrote:
    jverd wrote:
    Memory addresses have nothing to do with it. I doubt memory addresses are even mentioned once in the JLS.
    By memory address i mean the memory location the reference is pointing to.I know what you mean. But if you think it's relevant, can you show me where in the JLS it says anything about memory locations?
    >
    You can do that because a) t4's type is "reference to inh6" and b) method() is declared static, which means that you don't need an object to call it, just the class. That class comes from the compile time type of t4. The fact that t4 is null at runtime is irrelevant.
    So at compile time the type of t4 is inh6 and hence the method is called.Is it ? Had method() not been static a NullPointerException would have been thrown.Correct.
    With non-static, non-private, non-final methods, which implementation of the method gets called is determined at runtime, buy the class of the object on which it's being called. If any one of those "non"s goes away, then the method is entirely determined at compile time, and in the case of static methods, there's no instance necessary to call the method in the first place.

  • Why is my JavaServiceFacade persist() method is receiving NULL object

    My jDeveloper version is 11.1.1.3.0
    I have a jspx in which i want to save an employee into my DB on the click of submit button.
    I have made an entity object(Employee.java) made from a table EMPLOYEE. I then exposed this entity bean using a JavaServiceFacade. This JavaServiceFacade class has a method with signature persistEmployee(Employee employee).
    In my UI, i have made made a Submit button by dragging the persistEmployee() method from my DataControls pallette to my jspx, and the actionListener binding for this is ="#{bindings.persistEmployees.execute}".
    Now when i click on the submit button, the persistEmployee() method throws an exception which is below...
    ______ java.lang.IllegalArgumentException: Object: null is not a known entity type_______
    I found that the persistEmployee() method is not receiving an Employee object as an argument due to which this error is thrown.
    Can somebody pls guide me on what could be the issue.
    BELOW ISTHE CODE WHICH I HAVE USED.
    .......button code in my jsp.......
    <af:commandButton text="Submit"
    binding="#{backing_LdapUserCreation.cb5}"
    id="cb5"
    actionListener="#{bindings.persistEmployees.execute}"
    disabled="#{!bindings.persistEmployees.enabled}"/>
    .......method code which got generated in teh javaservicefacade..(here the employee argument received by the first line is NULL).....
    public Employees persistEmployees(Employees employees) {
    System.out.println("IS employees NULL ? = "+employees);
    return (Employees)_persistEntity(employees);
    .......binding code in my pagedefinition.........
    <methodAction id="persistEmployees" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="persistEmployees"
    IsViewObjectMethod="false" DataControl="EmployeeService"
    InstanceName="EmployeeService.dataProvider"
    ReturnName="EmployeeService.methodResults.persistEmployees_EmployeeService_dataProvider_persistEmployees_result">
    <NamedData NDName="employees" NDType="model.test.Employees" />
    </methodAction>

    Hi,
    when you dragged the persist method from the DataControls panel, a dialog opens that in its lower area shows the argument that the method expects. This argument needs to be pointed to <iterator name> | currentRow | data provider. To do this, click into the method argument value field and click the button on its right to bring up the EL editor. Then expand the iterator node under the Bindings node. Expand currentRow and select dataProvider.
    You can do this after creating the method binding as well. Select the PageDef file in the Application Navigator and open the Structure Window. Expand the persist method: it shoudl have a child element. Select the child item and in the Property Inspector set its NDValue property
    Frank

  • Databind method call returns null in WebCenter Content Filter

    Hi,
    I have inherited some code that has an issue and I'm new to WebCenter Content and the Filters that can be added. We have a FileNameFilter class that starts off with the code
    public class CWEFileNameFilter implements FilterImplementor {
        public CWEFileNameFilter() {
            super();
        public int doFilter(Workspace workspace, DataBinder dataBinder,
                            ExecutionContext executionContext) throws DataException {
            String service = dataBinder.getLocal("IdcService");
    However, service sometimes comes back null and then the filter throws a NPE.
    My questions are:
    1) Can anyone explain what dataBinder.getLocal("IdcService"); is doing and why it could come back as null
    2) Can anyone provide any links to documentation that explains Filters and a bit more about the DataBinder object as the JavaDoc isn't much help.
    Thanks
    Marc

    Hi Marc,
    Below code will give service name for which filter is implemented  from LocalData
    String service = dataBinder.getLocal("IdcService");
    for example below
    http://localhost:16200/cs/idcplg?IdcService=DOC_INFO_BY_NAME&dDocName=1111111&IsJava
    This will print entire response data including localdata and results which are created as part of service execution. Below is snippet
    <?hda version="11.1.1.8.0PSU-2015-04-01 00:14:53Z-r126309" jcharset="UTF8" encoding="utf-8"?>
    @Properties LocalData
    DocUrl=https://localhost:16200/cs/weblayout/groups/secure/documents/test/mhdk/mjg1/1111111.pdf
    IdcService=DOC_INFO_BY_NAME
    so String service = dataBinder.getLocal("IdcService"); will be service ="DOC_INFO_BY_NAME".
    Below blog will give some idea about filter but best place to learn or start is "The Definitive Guide to Stellent Content Server Development" by Brian Huff
    http://www.redstonecontentsolutions.com/technical-blog/ucm-service-handlers-and-javafilters
    Also i would recommend reading "WebCenter Content Services Reference Guide"
    http://docs.oracle.com/cd/E23943_01/doc.1111/e11011/toc.htm
    Regards,
    Amol Gavali.

  • How can i call a taskflow methode from backing bean ??

    Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660
    i like to call a Methode (taskflow) from backing bean!
    my bean code :
        public void imageLinkActionListner(ActionEvent actionEvent) {
            String              id      = actionEvent.getComponent().getId();
            int                 linkID  = Integer.parseInt(id.substring(4));
            DCBindingContainer  bc      = (DCBindingContainer)ADFUtils.getBindingContainer();
            DCTaskFlowBinding   tf      = null;
            System.out.println("Region Change...."+id+" INT "+linkID);
            switch (linkID) {
                case LINK_CALENDAR_REGION:
                    tf = (DCTaskFlowBinding)bc.findExecutableBinding("calendartaskflowPage");                   
                break;
                case LINK_MAIL_REGION:
                    tf = (DCTaskFlowBinding)bc.findExecutableBinding("mailtaskflowPage");                   
                break;
              case LINK_ADDRESS_REGION:
                  tf = (DCTaskFlowBinding)bc.findExecutableBinding("addresstaskflowPage");                   
              break;
              case LINK_BLOGS_REGION:
                  tf = (DCTaskFlowBinding)bc.findExecutableBinding("blogstaskflowPage");                   
              break;
              case LINK_MAPS_REGION:
                  tf = (DCTaskFlowBinding)bc.findExecutableBinding("mapstaskflowPage");                   
              break;
            default:
                return;
            if (tf != null){
                uiMainRegion.setRegionModel(tf.getRegionModel());
                uiMainRegion.setValue(tf.getRegionModel());
                tf.getExecutableBindings();
                AdfFacesContext.getCurrentInstance().addPartialTarget(uiMainRegion);
        }i like to call *#{backingBeanScope.mapBean.initMap}*
    my taskflow source
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="map-task-flow">
        <default-activity id="__1">map</default-activity>
        <view id="map">
          <page>/map/map.jsff</page>
        </view>
        <method-call id="initMap">
          <method>#{backingBeanScope.mapBean.initMap}</method>
          <outcome id="__7">
            <fixed-outcome>init</fixed-outcome>
          </outcome>
        </method-call>
        <control-flow-rule id="__2">
          <from-activity-id id="__3">initMap</from-activity-id>
          <control-flow-case id="__5">
            <from-outcome id="__6">init</from-outcome>
            <to-activity-id id="__4">map</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>

    Hi,
    to call the bean, use the EL in Java and reference #{backingBeanScope.mapBean.initMap} as a method expression. If you try and access the bean directly then chances are that the instance is not available. Using EL from Java always guarantees this
    Frank

  • Problem calling a method which takes a parameter from a table

    Hi guys,
    I'm very new to jsf and hope you can help me out.
    On my page i'm generating a list, which is working fine. now i want to add some commandLinks to the list entries. on click, i want to execute a bean method, which takes a parameter from the list, generates a picture and displays it on my page.
    here's a piece of code thats already working:
    <rich:dataTable var="data" value="#{pathwayBean.orgList}">
    <rich:columnGroup>     
            <rich:column>     
               <h:outputText value="#{data.name}" />
         </rich:column>
    </rich:columnGroup>
    </rich:dataTable>now, i want to replace the outputText with a commandLink, and execute a method with {data.id} as parameter. Unfortunately, the commandLink property "action" can only call bean methods with no parameter, or is that wrong?
    Thanks in advance,
    Alex

    use actionlistener.
    here a typical code that works fine for me:
    (JSF 1.2)
    //Java
    private Integer selectedItemId=null;
         public void selectItem(ActionEvent event) {
              // Find the UIParameter component by expression
              UIParameter component = (UIParameter) event.getComponent().findComponent("itemId");
              // parse the value of the UIParameter component
              try {
                   selectedItemId = Integer.parseInt(component.getValue().toString());
                   // find itemBean here using selectedItemId
              } catch (Exception e) {
                   logger.error(e, e);
              logger.info(" +++ selectedItemId =" + selectedItemId);
         public String viewItem() {
                 //create view beans here
                 return "itemView";//return appropriate view.
    //JSF
    <h:column>
                             <h:commandLink     id="View"
                                                 action="#{itemListBean.viewItem}"
                                                       actionListener="#{itemListBean.selectItem}">
                                  <h:outputText value="select"/>
                                  <f:param id="itemId" name="itemId" value="#{itemBean.id}"/>
                             </h:commandLink>
                     </h:column>

  • EL - How do you call a method that requires a parameter

    How do you call a method that requires a parameter
    In scriplet code here is what I am trying to do
    <%= car.getDefaultColor(car.getCarType()) %>
    How do I do this in EL
    Here is my guess (it generates the Exception described below)
    ${car.defaultColor(car.carType)}
    Here is the Exception I am getting:
    javax.servlet.ServletException: <h3>Validation error messages from tag library c</h3>tag = 'out' / attribute = 'value': An error occurred while parsing custom action attribute "value" with value "${car.defaultColor(car.carType)}": Encountered "(", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||"]
    Any Ideas?
    P.S. If it matters to you, I am using JSTL 1.0 and the code snippets above are actually within the value attribute of a <c:out value="" /> statement.

    How do you call a method that requires a parameter
    In scriplet code here is what I am trying to do
    <%= car.getDefaultColor(car.getCarType()) %>
    How do I do this in ELYou don't. EL is very strict in method signatures. All get methods must be public Type getProperty(void); And all set methods must be public void setProperty(Type t);
    So you will have to re-work your Bean so it does not need an argument to the get method (getDefaultColor()). Since you are calling another method out of car, you might re-write the getDefaultColor method as such:
      public Object getDefaultColor() {
        CarType ct = this.getCarType();
        //then do other stuff
      }If that isn't suitable, then provide a helper method that is used to set the current car type and then call the getDefaultColor:
      private CarType curCarType;
      public void setCurrentCarType(CarType ct) { curCarType = ct; }
      public Object getDefaultColor() {
        if (curCarType == null) throw new IllegalStateException("CarType must be set before getting color");
        //normal work using curCarType
    <c:set target="${car}" property="currentCarType" value="${car.carType}"/>
    <c:out value="${car.defaultColor}"/>It is better to do as little of the data manipulation (setting up the car type) in the JSP as possible, so the first option is better than the second. Also better then the second would be to set the current car type in a servlet or data access object (or wherever) from which your retreive the car to begin with. Manipulatig it in the JSP itself should be your last resort (to keep as much business logic out of the JSP as possible).
    Here is my guess (it generates the Exception
    described below)
    ${car.defaultColor(car.carType)}
    Here is the Exception I am getting:
    javax.servlet.ServletException: <h3>Validation error
    messages from tag library c</h3>tag = 'out' /
    attribute = 'value': An error occurred while parsing
    custom action attribute "value" with value
    "${car.defaultColor(car.carType)}": Encountered "(",
    expected one of ["}", ".", ">", "gt", "<", "lt",
    "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[",
    "+", "-", "*", "/", "div", "%", "mod", "and", "&&",
    "or", "||"]
    Any Ideas?
    P.S. If it matters to you, I am using JSTL 1.0 and
    the code snippets above are actually within the value
    attribute of a <c:out value="" /> statement.

  • Issue with a method call in a TaskFlow (works 2 times instead of 1)

    Hi guys,
    i'm using jdev11.1.1.1.2.0 and the integrated weblo or remote weblo 10.3.2.0.
    I'm encountering a problem with a method call which is invoked inside a Task Flow.
    Let me tell us the details of :
    I'm invoking a method call which is part of a Task Flow from the backingbean of the view which is placed before the method call in the taskFlow diagram.
    AN outcome String from the method of the backing bean allows to navigate to the method of the Task flow.
    The method call is called and works normally BUT MY PROBLEM IS THAT THE METHOD IS CALLED TWO TIMES SO THE RESULT IS FALSE.
    For information, the second time the method is called it takes care of the result when it is invoked the first time. So its parameters are updated and are a little different from the first time to the second time.
    NB : This method consists of inserting a row in the database. My result is 2 rows inserted instead of one.
    Thanks for help for this strange behaviour

    Hi
    create a temp calculated column
    =IF(ISBLANK([Duration]),"",[Item Start Date]+([Duration])
    and check if it's working OK
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • System call failed. Error 2 (The system cannot find the file specified. ) in execution of system call 'CreateProcessAsUser' with parameter ( , NULL,  Program Files/sapinst_instdir/BS2011/ERP606/AS-ABAP/SYB/HA/DB, &StartupInfo, &ProcessInfo),

    Dear All,
    I am getting a below error while doing ehp6 installation on sybase (high availbility )
    can any one help me on this..?
    An error occurred while processing option SAP Business Suite 7i 2011 > Enhancement Package 6 for SAP ERP 6.0 > SAP Application Server ABAP > SAP ASE > High-Availability System > Database Instance( Last error reported by the step: System call failed. Error 2 (The system cannot find the file specified. ) in execution of system call 'CreateProcessAsUser' with parameter ( , NULL,  Program Files/sapinst_instdir/BS2011/ERP606/AS-ABAP/SYB/HA/DB, &StartupInfo, &ProcessInfo), line (646) in file (d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp), stack trace: d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\ejs\ejscontroller.cpp: 181: EJSControllerImpl::executeScript() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\ejs\jsextension.hpp: 1059: CallFunctionBase::call() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\osmod\iaxxbprocess.cpp: 423: CIaOsProcess::start_impl() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp: 238: CSyChildApplicationImpl::start(false) d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp: 262: CSyChildApplicationImpl::doStart() .). You can no
    Regards,
    Letz..

    Hello Mauricio.
    Thanks
    Two Thinks:
    1.- This error appears precisely in the process of creating SAP users including you mention sidadm:
          A.- Execute sapinst
          B.- Installation option is chosen
                SAP NetWeaver CE Production Edition
                        Installation Options
                            High-Availability System
                                  Central Service  Instance (SCS)
           c.- System ID, Next and appear message error
    2.- However, the user manually create sidadm, I gave the permissions you indicate, and the error message is the same
    Thanks

  • Static method called from a null object reference

    Hello folks,
    Here´s the code:
    public class TestClass {
         public static void main(String[] args) {
              StaticNull _null_ = null;
              _null_.testNull();
    class StaticNull {
         public static void testNull() {
              System.out.println("testNull");
    }I know that a static method belongs to the class, so you don´t need an
    instantiated object of that class to call it. But in the code above, as
    I'm calling the testNull method from a null reference, shouldn't a NullPointerException
    be thrown?
    Best regards,
    Danniel

    sometimes wrote:
    yawmark wrote:
    Calling static methods from a reference variable should be considered a bad practice. Our coding standards prohibit it, and I suspect we're not the only ones.
    ~what are you trying to say? your coding standard encourages what tricks to invoke static methods? i mean other than using a 'reference variable'?I think you are misreading yawmark's comment. He was saying that invoking a static method using a reference variable -- as though the method weren't static:
    var.staticMethod();...is bad practice. His shop's coding standards prohibit it. And that's a common coding style standard. IDE's often warn you of that, right?
    edit: and judging by your reply #7, you and yawmark would bond over a few jars of cold beverages. You seem think with one mind.

  • Passing the OUT parameter in method call after connection

    Hi,
        I have created the rfc connection through SAP.net Connector. Now when i want to show all the data of the particular RFC. i need to provide all the fields name and the tables name in method call.
    In that method call i need to provide one paramet which is of type OUT what is that and what i need to provide in that parameter.
    Can anybody suggest on this.
    I can send the code if u need to understand, what exactly i want.
    Regards,
    +Naren

    Its done i am able to connect.

  • Exchange Edge clone config import in Exchange Management shell throws error "You cannot call a method on a null-valued expression"

    Hi All,
    During the Coexistence of Exchange 2007 to 2010 Migration..
    I have create new Edge Scubscription in Edge Server 1 and Export the Edge Configuration File from Edge Server 1.
    While trying to Import Edge configuration to Edge Server 2 in Exchange Management Shell, I am getting the below Error.
    I have tried importing on both Exchange 2007 and 2010 Edge Servers, getting the same error.
    "Importing Edge configuration information Failed.
    Reason: You cannot call a method on a null-valued expression."
    Please help in resolving this issue...

    Also found the CloneLogFile as below : I masked my domain name as xxx for security reason..
    Get-TransportServer -Identity:xxx | Set-TransportServer -AntispamAgentsEnabled:$true -ConnectivityLogEnabled:$false -ConnectivityLogMaxAge '30.00:00:00' -ConnectivityLogMaxDirectorySize '250MB' -ConnectivityLogMaxFileSize '10MB' -ConnectivityLogPath 'C:\Program
    Files\Microsoft\Exchange Server\TransportRoles\Logs\Connectivity' -DelayNotificationTimeout '04:00:00' -ExternalDelayDsnEnabled:$true -ExternalDNSAdapterEnabled:$true -ExternalDNSAdapterGuid '00000000-0000-0000-0000-000000000000' -ExternalDNSProtocolOption
    'Any' -ExternalDNSServers:$null -ExternalIPAddress:$null -ExternalDsnDefaultLanguage 'en-US' -ExternalDsnLanguageDetectionEnabled:$true -ExternalDsnMaxMessageAttachSize '10MB' -ExternalDsnSendHtml:$true -InternalDelayDsnEnabled:$true -InternalDNSAdapterEnabled:$true
    -InternalDNSAdapterGuid '00000000-0000-0000-0000-000000000000' -InternalDNSProtocolOption 'Any' -InternalDNSServers:$null -InternalDsnDefaultLanguage 'en-US' -InternalDsnLanguageDetectionEnabled:$true -InternalDsnMaxMessageAttachSize '10MB' -InternalDsnSendHtml:$true
    -MaxConcurrentMailboxDeliveries '7' -MaxConcurrentMailboxSubmissions '20' -MaxConnectionRatePerMinute '1200' -MaxOutboundConnections '1000' -MaxPerDomainOutboundConnections '20' -MessageExpirationTimeout '2.00:00:00' -MessageRetryInterval '00:01:00' -MessageTrackingLogEnabled:$true
    -MessageTrackingLogMaxAge '30.00:00:00' -MessageTrackingLogMaxDirectorySize '1GB' -MessageTrackingLogMaxFileSize '10MB' -MessageTrackingLogPath 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\MessageTracking' -MessageTrackingLogSubjectLoggingEnabled:$true
    -OutboundConnectionFailureRetryInterval '00:30:00' -IntraOrgConnectorProtocolLoggingLevel 'None' -PickupDirectoryMaxHeaderSize '64KB' -PickupDirectoryMaxMessagesPerMinute '100' -PickupDirectoryMaxRecipientsPerMessage '100' -PickupDirectoryPath 'C:\Program
    Files\Microsoft\Exchange Server\TransportRoles\Pickup' -PipelineTracingEnabled:$false -ContentConversionTracingEnabled:$false -PipelineTracingPath 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\PipelineTracing' -PipelineTracingSenderAddress:$null
    -PoisonMessageDetectionEnabled:$true -PoisonThreshold '2' -QueueMaxIdleTime '00:03:00' -ReceiveProtocolLogMaxAge '30.00:00:00' -ReceiveProtocolLogMaxDirectorySize '250MB' -ReceiveProtocolLogMaxFileSize '10MB' -ReceiveProtocolLogPath 'C:\Program Files\Microsoft\Exchange
    Server\TransportRoles\Logs\ProtocolLog\SmtpReceive' -RecipientValidationCacheEnabled:$true -ReplayDirectoryPath 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Replay' -RoutingTableLogMaxAge '7.00:00:00' -RoutingTableLogMaxDirectorySize '50MB' -RoutingTableLogPath
    'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\Routing' -SendProtocolLogMaxAge '30.00:00:00' -SendProtocolLogMaxDirectorySize '250MB' -SendProtocolLogMaxFileSize '10MB' -SendProtocolLogPath 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\ProtocolLog\SmtpSend'
    -TransientFailureRetryCount '6' -TransientFailureRetryInterval '00:10:00'
    New-AcceptedDomain -DomainName 'xxx' -DomainType 'Authoritative' -Name 'xxx'
    Set-AcceptedDomain -DomainType 'Authoritative' -AddressBookEnabled:$true -Name 'xxx'
    Importing Edge configuration information Failed.
    Reason: You cannot call a method on a null-valued expression.

  • MuseJSAssert: ... TypeError: Cannot call method 'getElementsByTagName' of null

    This is the error that I get when I open our site.
    MuseJSAssert: Error calling selector function:TypeError: Cannot call method 'getElementsByTagName' of null
    Can someone take a look at this?
    I tried uploading from scratch on to a new bc test site:
    expertly.businesscatalyst.com
    Dont worry about the Edge videos that works fine.
    When you click on Online or Offline (on the left hand side) this error shows up.
    And then the accordian wigs out.
    Any help would be appreciated. Thanks.

    There seems to be a Javascript error with the "ss-form" HTML that has been inserted. Specifically, this part:
    var divs = document.getElementById('ss-form').
    getElementsByTagName('div');
    I believe (though I'm not sure), that changing it to
    var divs = document.getElementById('ss-form').getElementsByTagName('div');
    All on one line will solve the problem. Unfortunately this is beyond the scope of Muse, as it is code that has been inserted. You made need to check with the source you found the inserted code from.
    Thanks,
    Colby

  • Apply template but it show "cannot call method 'getAttribute' of null"

    i created a shared template first.
    my steps:
    1. created a datamodel as 'sales'
    2. created a report using 'sale' datamodel
    3. created a new layout ,put my data into the page, and saved the new layout as 'my layout 1'.
    4. saved the report as 'Boilerplates' and placed it undel /my folders.
    (i want to use the layout 'my layout 1' as shared templates)
    now i create another datamodel as 'teu',
    and then create another report using 'teu' datamodel,
    i can see 'my layout 1' layout in the new report, but when i apply 'my layout 1',
    the alert "cannot call method 'getAttribute' of null" display.
    can anyone help me?
    thanks,
    newkoa

    The Code tool is realy useful for putting the script in a readable format.
    This isnt' a great location for generic, non SharePoint, PowerShell questions. A lot of us know it back to front but the hey Scripting guy forum is much faster than we are here.
    That error message is actually very descriptive. It's saying there is no invoke method on a null object, or in other words there isn't an object to operate on. Or to finally put it in English: There is no '$shellApplication' object that PowerShell knows
    of.
    At the moment I've no idea what you intended to do with the $zipPackage object but since it's not being used now i'd just comment that line out

  • Null reference method call behaving oddly

    Hi all, and a very happy new year!!
    My question concerns the null reference; simply, why does the following code chooses to call any other method than the Object version (try it out). No matter what type i choose to replace the current String version with... I have not paid much thought to this, but i would have guessed the null reference calls the Object version in such a situation.
    If i leave only the Object method and comment out all others, the code compiles fine and calls the Object version at runtime - but in case there are sub class versions, those will be called. WHY?
    (im running jre 1.4.1).
    The code:
    public class NullTest {
         public void method(Object o) {
              System.out.println("Object Version");
         public void method(String s) {
              System.out.println("String Version");
         public static void main(String args[]) {
    NullTest nullTest = new NullTest();
              nullTest.method(null);
    }

    schapel, the question related specifically to
    null, in a context where no runtime type can be
    inferred. It wasn't about overloading in general.Yes, I understand that. But here is the rule from the JLS:
    "If more than one method declaration is both accessible and applicable to a method invocation, it is necessary to choose one to provide the descriptor for the run-time method dispatch. The Java programming language uses the rule that the most specific method is chosen."
    Note that it does not refer specifically to a null argument.
    The question is "why is the most specific method called?" The reason is that there are only a few possibilities for this rule:
    1. The least specific method should be called. In this case, overloaded methods with more specific types could not be called.
    2. If there is more than one method, it is a compile time error. Again, this would cause overloading to be useless.
    3. The most specific method is called. It is only with this rule that overloading works. That's why Java uses this rule.

Maybe you are looking for

  • I bought a new Macbook Air, and got an error when trying to register it with my Apple ID

    So, I bought a new Macbook Air and tried to register it with my Apple ID, however I get an error about the product being already registered. I haven't registered it yet. How can I fix this?

  • Spell check in libreoffice [Solved]

    I feel like some magic retard for asking this but for some reason their appears to be no dictionaries installed, after installing libreoffice i've subsiquently installed libreoffice-en-GB and yet when i try and add a dictionary the way the wiki sugge

  • Touch screen for Lenovo thinkpad 10

    I have broken the glass of screen.And now it is impossible to find this spare part (00HW275, 00HW277, 00HW278, 00HW361, 00HW363)Where i can buy this part in Europe, USA or Chine? 

  • "Ipod is  corrupt" error?

    I have the newest version of the ipod classic, which I bought almost two years ago.  Recently, it has been giving me an error when I plug it into my iTunes to sync.  It says something along the lines of "the ipod detected by iTunes is corrupt.  Pleas

  • Associate Business Rules with Workflow

    Hi All, We have a planning application, and forms are having some business rules. Now our requirement is, when a user promote his cost center to another user, he should not have the access the Business Rules for that cost center. so, is there any way