Accessing components in a module from my applciation

Hey all, I have this simple module:
<?xml version="1.0" encoding="utf-8"?>
<mx:Module xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" implements="fo_ImoduleInterface">
<mx:Script>
<![CDATA[
import mx.controls.MenuBar;
public function test():String {
return "Test String";
public function getMenuBar():Array {
return myMenuBar.menus;
]]>
</mx:Script>
<mx:ApplicationControlBar dock="true" paddingTop="0"
paddingBottom="0">
<mx:MenuBar id="myMenuBar" labelField="@label">
<mx:XMLList>
<menuitem label="menu" >
<menuitem label="sub 1" />
<menuitem label="sub 1" />
</menuitem>
</mx:XMLList>
</mx:MenuBar>
</mx:ApplicationControlBar>
</mx:Module>
Now I want to access getMenuBar from my application to create
a 'general' menu in my main application (much like what OSX does).
I can successfully access the function test and get my test
string back, so I know my module is loaded (I can see it on the
screen to) but trying to get access to the component always fails.
What is the proper solution to let my main application access
a component in a module?
Ries

quote:
Originally posted by:
Sreenivas R
The way I would do it would be to create a interface and add
necessary APIs to it. Make the module implement the interface.
In the main app convert the module instance to the interface
and access things.
Isn't this what the module does???
see here : <mx:Module .....
implements="fo_ImoduleInterface">
fo_ImoduleInterface implements to correct function aswell,
it's created like this:
package
import flash.events.IEventDispatcher;
public interface fo_ImoduleInterface extends
IEventDispatcher {
function getMenuBar():Array;

Similar Messages

  • How to access components in a iview from program

    Hi,
        Can we access the iview components from program dynamically? I have a Table Control , i want to refresh it in my program.
        How to set Mandatory (*) mark for a label? Is there any property for that?
    Thanks,
    Sridhar

    If table is displayed in current view, it will be refreshed with most of the events(There are few exceptions) from that view. You don't need to do anything for that.
    Suppose You have one Input Fields - Inp, and Lable - Lb.
    From the label properties select "Label For" with Inp from DropDown menu. From properties of the inputfield change property "Status" to required.
    Now u would get required mandatory mark.
    Note that, selecting the status "Required" for inputfield only displays the asterisk. But it doesnt stop you from navigating to another view with out entering a value.

  • Accessing FFS on Simens modules from Java

    Hi.
    I wish to open a file for writing from Java on Siemens XT75 module flash file system. This should be possible.
    The only class I can find for this is
    com.siemens.icm.io.File
    which is deprecated, so I'd like to aviod it if possible in any way...
    Any ideas? I couldn't find anything useful, please help.
    Cheers

    Reading is not to hard, is it?
    +Cla
    Deprecated. Use javax.microedition.io.FileConnection instead*

  • Cannot Access Application Module from View Project (Swing)

    I recently started a new application workspace as a Swing project with Business Components. Jdev created 2 projects by default, a Model and a View. The model works fine, all the business components are funtctioning and the DB connection is good. When i try to create a reference to the application module in my View project i constantly get 'Class Not Found' exceptions no matter what i do. I am using the jbo.client.Configuration.getRootApplicationModule('amName', 'amConfig') method.
    What am i missing? How do i instantiate my application module from my View project?
    Thanks a lot.

    Just had to add the Model to the classpath...

  • What authorization required to deploy module from NWDS 7.1

    Hi Experts,
    Need to deploy custom adapter module from NWDS 7.1 to PI server, Please help me to know exact access/authorization role required one developer to publish the module.
    I have gone through many blogs and thread but not able to find exact administrator role which help to deploy the custom module on PI server.
    Error I am getting in NWDS 7.1, while deploying module:
    Could not establish connection to AS Java on [<server detail>]. Authentication did not succeed. Wrong or missing security credentials (password) for principal [PIUSER], or the specified principal has no permissions to perform JNDI related operations.
    Regards
    Raghav
    Edited by: RaghavTiwari on Feb 4, 2012 8:25 AM

    Hi Raghav,
    Check this [SAP Help link|http://help.sap.com/saphelp_nw73ehp1/helpdata/en/43/1e1bbc5d9206fde10000000a422035/frameset.htm] for User Roles for Adapter and Module Development.
    Regards,
    Raghu_Vamsee.

  • How to get list of users who have access to a SAP module

    Hi,
    We are developing a tool in Java where we will pull the data from various modules in SAP (like Purchase order, Invoice etc). Lets take Purchase Order Module as example. I can get the data using BAPIs (like BAPI_PO_GETDETAIL).
    However to implement Authorization, I also want the list of users/groups that have access to Purchase order module. Is this possible? Or can we get the ACL information from the tables in database like EKKO for Purchase order?
    I have tried searching for solution but couldn't find any. Please suggest if there is some standard way by which we can pull the ACL information via Java, or if this can be achieved by some custom RFCs.
    Thanks,
    Anurag

    Anurag,
    The best way is to wirte a RFC Function Module (It will fetch the roles of the user from agr_users table) which will take user id as import paramter and will give you assigned roles.
    Please let me know if you still need any further information.
    Thanks,
    Hamendra

  • How to Install Oracle Data Access Components (ODAC) on Windows Server 2003?

    I recently installed "32-bit Oracle Data Access Components (ODAC) with Oracle Developer Tools for Visual Studio" on my computer (Windows 7, 64bit). Everything seems fine and I can develop and run my application in Visual Studio 2010 and IIS 7.
    Now, when I deploy my application to the Server, it raises error:
    Exception: System.TypeInitializationException: The type initializer for 'Oracle.DataAccess.Client.OracleCommand' threw an exception. ---> Oracle.DataAccess.Client.OracleException: The provider is not compatible with the version of Oracle client
    Obviously I need to install ODAC on the server, too. My server is:
    - Windows 2003 32 bit R2 (I know, I know!)
    - IIS 6
    So. I downloaded the same installation from Oracle website (ODAC 11.2 Release 5 and Oracle Developer Tools for Visual Studio [11.2.0.3.20]) and installed it on the server. But still getting the same error.
    PS: When I was installing, I chose Oracle Data Access Component for Oracle Client 11.2.0.3.20 in Oracle Universal Installer. hmmmm. Should I choose "Oracle Server" instead? Screenshot
    Edited by: 1000434 on Apr 17, 2013 6:35 AM
    Edited by: 1000434 on Apr 17, 2013 6:36 AM

    ODP.NET, Unmanaged Driver uses unmanaged dependencies in the Oracle Client. The error you see means you have another Oracle Client installed on the Win2003 machine and ODP.NET is attempting to load the incorrect Oracle Client version, rather than the version you installed ODP.NET with.
    What you need to do is direct ODP.NET where to find the correct version of its unamanaged Oracle Client dependencies. This will be generally the bin directory of your Oracle Client home that was installed with ODP.NET.
    You can learn more about DllPath here:
    http://docs.oracle.com/cd/E20434_01/doc/win.112/e23174/InstallODP.htm#sthref94
    If you're not familiar with how to set ODP.NET settings in the Registry or .NET config files, you can read how to do that here:
    http://docs.oracle.com/cd/E20434_01/doc/win.112/e23174/featConfig.htm#sthref106

  • How to check if Oracle Data Access Components  is installed?

    How to check if  Oracle Data Access Components is installed and version on my computer?
    Also How to check if Oracle Data Provider is installed and version?
    TIA
    Steve42

    Regedit HKLM->Software->Oracle.  See what's there...
    At the very least, that can give you paths and can check file versions from there.

  • How to call application module from ServletContextListener

    Hi,
    I've got an application that requires authenticated users. However, before the application starts I'd like to do some DB initialization.
    So I created a ServletContextListener and in contextInitialized method I try to createRootApplicationModule.
    Due to authentication / authorization requirements, createRootApplicationModule fails with:
    ov 12, 2008 12:09:33 AM oracle.adf.share.security.authentication.JAASAuthenticationService doLogin
    INFO: LoginContext.login...
    javax.security.auth.login.LoginException: Invalid null input: name
         at javax.security.auth.login.LoginContext.init(LoginContext.java:229)
         at javax.security.auth.login.LoginContext.<init>(LoginContext.java:367)
         at javax.security.auth.login.LoginContext.<init>(LoginContext.java:444)
         at oracle.adf.share.security.authentication.JAASAuthenticationService.doLogin(JAASAuthenticationService.java:102)
         at oracle.adf.share.security.authentication.JAASAuthenticationService.login(JAASAuthenticationService.java:89)
         at oracle.adf.share.security.authentication.JAASAuthenticationService.login(JAASAuthenticationService.java:71)
         at oracle.jbo.common.UserAznUtil.authenticate(UserAznUtil.java:62)
         at oracle.jbo.common.UserAznUtil.authenticateUser(UserAznUtil.java:29)
         at oracle.jbo.server.ApplicationModuleImpl.prepareSession(ApplicationModuleImpl.java:6387)
         at oracle.jbo.server.ApplicationModuleImpl.prepareSession(ApplicationModuleImpl.java:6356)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:171)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8377)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4364)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2421)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2207)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3086)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
         at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1395)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1363)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1335)
    Can I somehow explicitly login a valid user or exclude the specific application module from authorization?
    Regards
    J

    Hi,
    no, the function is not related to user session. It's actually data synchronization between two systems.
    We'd prefere to keep it in middle tier, through web services on one side and AM on the other. This way we are platform / RDBMS independent.
    I could use a fake system user, eg. "sync" with password "sysnc", but how do I "log on" such user in my EJB code? If I could somehow access AM login context and call login with username and password...?
    Edit:
    it also puzzles me that it's possible to have a page within the aplication that allows anonymous access. The only difference in security context seem to be _isHttp property. getUserPrincipaly returns JpsAnonymousUserImpl in both cases, IsAuthenticated() is false in both cases...
    Edited by: Jernej Kase on Nov 13, 2008 8:57 PM

  • Accessing an ejb statful session from webserivce   problem need help

    hi guys am working on simple example here is creating an entity bean that reference to table on my database and then create my session bean from that entity bean and am when am trying to access this stateful session bean from web service at the beginning it runs and when i click on any of the function i got the same exception am sorry for my lack of knowledge but i just don`t know what wrong here are my code
    entity bean :/*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package doc;
    import java.io.Serializable;
    import java.math.BigInteger;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.EntityManager;
    import javax.persistence.Id;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.Table;
    import javax.transaction.UserTransaction;
    * @author kriem
    @Entity
    @Table(name = "DOCTOR")
    @NamedQueries({@NamedQuery(name = "Doctor.findByDocFname",
    query = "SELECT d FROM Doctor d WHERE d.docFname = :docFname"),
            @NamedQuery(name = "Doctor.findByDocId",
            query = "SELECT d FROM Doctor d WHERE d.docId = :docId"),
            @NamedQuery(name = "Doctor.findByDocLname",
            query = "SELECT d FROM Doctor d WHERE d.docLname = :docLname"),
            @NamedQuery(name = "Doctor.findByDocPhone",
            query = "SELECT d FROM Doctor d WHERE d.docPhone = :docPhone"),
            @NamedQuery(name = "Doctor.findByDocAddress",
            query = "SELECT d FROM Doctor d WHERE d.docAddress = :docAddress"),
            @NamedQuery(name = "Doctor.findByDocMobileNo",
            query = "SELECT d FROM Doctor d WHERE d.docMobileNo = :docMobileNo"),
            @NamedQuery(name = "Doctor.findByDocSpecialty",
            query = "SELECT d FROM Doctor d WHERE d.docSpecialty = :docSpecialty"),
            @NamedQuery(name = "Doctor.findByDocTitle",
            query = "SELECT d FROM Doctor d WHERE d.docTitle = :docTitle")})
    public class Doctor implements Serializable {
        private static final long serialVersionUID = 1L;
        @Column(name = "DOC_FNAME", nullable = false)
        private String docFname;
        @Id
        @Column(name = "DOC_ID", nullable = false)
        private String docId;
        @Column(name = "DOC_LNAME", nullable = false)
        private String docLname;
        @Column(name = "DOC_PHONE", nullable = false)
        private BigInteger docPhone;
        @Column(name = "DOC_ADDRESS", nullable = false)
        private String docAddress;
        @Column(name = "DOC_MOBILE_NO", nullable = false)
        private BigInteger docMobileNo;
        @Column(name = "DOC_SPECIALTY", nullable = false)
        private String docSpecialty;
        @Column(name = "DOC_TITLE", nullable = false)
        private String docTitle;
        public Doctor() {
        public Doctor(String docId) {
            this.docId = docId;
        public Doctor(String docId, String docFname, String docLname, BigInteger docPhone, String docAddress, BigInteger docMobileNo, String docSpecialty, String docTitle) {
            this.docId = docId;
            this.docFname = docFname;
            this.docLname = docLname;
            this.docPhone = docPhone;
            this.docAddress = docAddress;
            this.docMobileNo = docMobileNo;
            this.docSpecialty = docSpecialty;
            this.docTitle = docTitle;
        public String getDocFname() {
            return docFname;
        public void setDocFname(String docFname) {
            this.docFname = docFname;
        public String getDocId() {
            return docId;
        public void setDocId(String docId) {
            this.docId = docId;
        public String getDocLname() {
            return docLname;
        public void setDocLname(String docLname) {
            this.docLname = docLname;
        public BigInteger getDocPhone() {
            return docPhone;
        public void setDocPhone(BigInteger docPhone) {
            this.docPhone = docPhone;
        public String getDocAddress() {
            return docAddress;
        public void setDocAddress(String docAddress) {
            this.docAddress = docAddress;
        public BigInteger getDocMobileNo() {
            return docMobileNo;
        public void setDocMobileNo(BigInteger docMobileNo) {
            this.docMobileNo = docMobileNo;
        public String getDocSpecialty() {
            return docSpecialty;
        public void setDocSpecialty(String docSpecialty) {
            this.docSpecialty = docSpecialty;
        public String getDocTitle() {
            return docTitle;
        public void setDocTitle(String docTitle) {
            this.docTitle = docTitle;
        @Override
        public int hashCode() {
            int hash = 0;
            hash += (docId != null ? docId.hashCode() : 0);
            return hash;
        @Override
        public boolean equals(Object object) {
            // TODO: Warning - this method won't work in the case the id fields are not set
            if (!(object instanceof Doctor)) {
                return false;
            Doctor other = (Doctor) object;
            if ((this.docId == null && other.docId != null) || (this.docId != null && !this.docId.equals(other.docId))) {
                return false;
            return true;
        @Override
        public String toString() {
            return "doc.Doctor[docId=" + docId + "]";
        public void persist(Object object) {
            /* Add this to the deployment descriptor of this module (e.g. web.xml, ejb-jar.xml):
             * <persistence-context-ref>
             * <persistence-context-ref-name>persistence/LogicalName</persistence-context-ref-name>
             * <persistence-unit-name>task-ejbPU</persistence-unit-name>
             * </persistence-context-ref>
             * <resource-ref>
             * <res-ref-name>UserTransaction</res-ref-name>
             * <res-type>javax.transaction.UserTransaction</res-type>
             * <res-auth>Container</res-auth>
             * </resource-ref> */
            try {
                Context ctx = new InitialContext();
                UserTransaction utx = (UserTransaction) ctx.lookup("java:comp/env/UserTransaction");
                utx.begin();
                EntityManager em = (EntityManager) ctx.lookup("java:comp/env/persistence/LogicalName");
                em.persist(object);
                utx.commit();
            } catch (Exception e) {
                java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, "exception caught", e);
                throw new RuntimeException(e);
    }doctor session bean code
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package doc;
    import java.util.List;
    import javax.ejb.Stateful;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    * @author kriem
    @Stateful
    public class DoctorFacade implements DoctorFacadeRemote {
        @PersistenceContext
        private EntityManager em;
        public void create(Doctor doctor) {
            em.persist(doctor);
        public void edit(Doctor doctor) {
            em.merge(doctor);
        public void remove(Doctor doctor) {
            em.remove(em.merge(doctor));
        public Doctor find(Object id) {
            return em.find(doc.Doctor.class, id);
        public List<Doctor> findAll() {
        return em.createQuery("select object(o) from Doctor as o").getResultList();
        public void persist(Object object) {
            em.persist(object);
    }doctor remote interface :
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package doc;
    import java.util.List;
    import javax.ejb.Remote;
    * @author kriem
    @Remote
    public interface DoctorFacadeRemote {
        void create(Doctor doctor);
        void edit(Doctor doctor);
        void remove(Doctor doctor);
        Doctor find(Object id);
        List<Doctor> findAll();
        public void persist(java.lang.Object object);
    doctor web service code :
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package task;
    import doc.Doctor;
    import doc.DoctorFacadeRemote;
    import java.util.List;
    import javax.ejb.EJB;
    import javax.ejb.Stateful;
    import javax.jws.Oneway;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    * @author kriem
    @WebService(serviceName = "taskService")
    @Stateful()
    public class task {
        @EJB
        private DoctorFacadeRemote ejbRef;
        // Add business logic below. (Right-click in editor and choose
        // "Web Service > Add Operation"
        @WebMethod(operationName = "create")
        @Oneway
        public void create(Doctor doctor) {
            ejbRef.create(doctor);
        @WebMethod(operationName = "edit")
        @Oneway
        public void edit(Doctor doctor) {
            ejbRef.edit(doctor);
        @WebMethod(operationName = "remove")
        @Oneway
        public void remove(Doctor doctor) {
            ejbRef.remove(doctor);
        @WebMethod(operationName = "find")
        public Doctor find(Object id) {
            return ejbRef.find(id);
        @WebMethod(operationName = "findAll")
        public List<Doctor> findAll() {
            return ejbRef.findAll();
    .............................and when i try to run for example findall method i got this
    findAll  Method invocation
    Method parameter(s)
    Type     Value
    Service invocation threw an exception with message : null; Refer to the server log for more details
    Exceptions details : java.lang.reflect.InvocationTargetException
    javax.servlet.ServletException: java.lang.reflect.InvocationTargetException at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:345) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:121) at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:148) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:316) ... 35 more Caused by: javax.xml.ws.soap.SOAPFaultException: WSTX-SERVICE-5008: Ignoring exception raised while committing transaction at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:187) at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:116) at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:254) at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:224) at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117) at $Proxy129.findAll(Unknown Source) ... 40 more Caused by: javax.xml.ws.WebServiceException: WSTX-SERVICE-5008: Ignoring exception raised while committing transaction at com.sun.xml.ws.tx.service.TxServerPipe.commitTransaction(TxServerPipe.java:440) at com.sun.xml.ws.tx.service.TxServerPipe.process(TxServerPipe.java:325) at com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:218) at com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:129) at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115) at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595) at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554) at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539) at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436) at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243) at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444) at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244) at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135) at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:159) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214) at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380) ... 2 more Caused by: javax.transaction.RollbackException: Transaction marked for rollback. at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:413) at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:371) at com.sun.enterprise.distributedtx.UserTransactionImpl.commit(UserTransactionImpl.java:197) at com.sun.xml.ws.tx.service.TxServerPipe.commitTransaction(TxServerPipe.java:436) ... 47 more knowing that this error appears to me when i try any method
    am working on netbean6 and glassfishV2 for my db its oracle
    guys i need any kind of help plzz...........
    Edited by: marwacs on May 18, 2008 1:02 AM
    Edited by: marwacs on May 18, 2008 1:04 AM

    hi guys am working on simple example here is creating an entity bean that reference to table on my database and then create my session bean from that entity bean and am when am trying to access this stateful session bean from web service at the beginning it runs and when i click on any of the function i got the same exception am sorry for my lack of knowledge but i just don`t know what wrong here are my code
    entity bean :/*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package doc;
    import java.io.Serializable;
    import java.math.BigInteger;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.EntityManager;
    import javax.persistence.Id;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.Table;
    import javax.transaction.UserTransaction;
    * @author kriem
    @Entity
    @Table(name = "DOCTOR")
    @NamedQueries({@NamedQuery(name = "Doctor.findByDocFname",
    query = "SELECT d FROM Doctor d WHERE d.docFname = :docFname"),
            @NamedQuery(name = "Doctor.findByDocId",
            query = "SELECT d FROM Doctor d WHERE d.docId = :docId"),
            @NamedQuery(name = "Doctor.findByDocLname",
            query = "SELECT d FROM Doctor d WHERE d.docLname = :docLname"),
            @NamedQuery(name = "Doctor.findByDocPhone",
            query = "SELECT d FROM Doctor d WHERE d.docPhone = :docPhone"),
            @NamedQuery(name = "Doctor.findByDocAddress",
            query = "SELECT d FROM Doctor d WHERE d.docAddress = :docAddress"),
            @NamedQuery(name = "Doctor.findByDocMobileNo",
            query = "SELECT d FROM Doctor d WHERE d.docMobileNo = :docMobileNo"),
            @NamedQuery(name = "Doctor.findByDocSpecialty",
            query = "SELECT d FROM Doctor d WHERE d.docSpecialty = :docSpecialty"),
            @NamedQuery(name = "Doctor.findByDocTitle",
            query = "SELECT d FROM Doctor d WHERE d.docTitle = :docTitle")})
    public class Doctor implements Serializable {
        private static final long serialVersionUID = 1L;
        @Column(name = "DOC_FNAME", nullable = false)
        private String docFname;
        @Id
        @Column(name = "DOC_ID", nullable = false)
        private String docId;
        @Column(name = "DOC_LNAME", nullable = false)
        private String docLname;
        @Column(name = "DOC_PHONE", nullable = false)
        private BigInteger docPhone;
        @Column(name = "DOC_ADDRESS", nullable = false)
        private String docAddress;
        @Column(name = "DOC_MOBILE_NO", nullable = false)
        private BigInteger docMobileNo;
        @Column(name = "DOC_SPECIALTY", nullable = false)
        private String docSpecialty;
        @Column(name = "DOC_TITLE", nullable = false)
        private String docTitle;
        public Doctor() {
        public Doctor(String docId) {
            this.docId = docId;
        public Doctor(String docId, String docFname, String docLname, BigInteger docPhone, String docAddress, BigInteger docMobileNo, String docSpecialty, String docTitle) {
            this.docId = docId;
            this.docFname = docFname;
            this.docLname = docLname;
            this.docPhone = docPhone;
            this.docAddress = docAddress;
            this.docMobileNo = docMobileNo;
            this.docSpecialty = docSpecialty;
            this.docTitle = docTitle;
        public String getDocFname() {
            return docFname;
        public void setDocFname(String docFname) {
            this.docFname = docFname;
        public String getDocId() {
            return docId;
        public void setDocId(String docId) {
            this.docId = docId;
        public String getDocLname() {
            return docLname;
        public void setDocLname(String docLname) {
            this.docLname = docLname;
        public BigInteger getDocPhone() {
            return docPhone;
        public void setDocPhone(BigInteger docPhone) {
            this.docPhone = docPhone;
        public String getDocAddress() {
            return docAddress;
        public void setDocAddress(String docAddress) {
            this.docAddress = docAddress;
        public BigInteger getDocMobileNo() {
            return docMobileNo;
        public void setDocMobileNo(BigInteger docMobileNo) {
            this.docMobileNo = docMobileNo;
        public String getDocSpecialty() {
            return docSpecialty;
        public void setDocSpecialty(String docSpecialty) {
            this.docSpecialty = docSpecialty;
        public String getDocTitle() {
            return docTitle;
        public void setDocTitle(String docTitle) {
            this.docTitle = docTitle;
        @Override
        public int hashCode() {
            int hash = 0;
            hash += (docId != null ? docId.hashCode() : 0);
            return hash;
        @Override
        public boolean equals(Object object) {
            // TODO: Warning - this method won't work in the case the id fields are not set
            if (!(object instanceof Doctor)) {
                return false;
            Doctor other = (Doctor) object;
            if ((this.docId == null && other.docId != null) || (this.docId != null && !this.docId.equals(other.docId))) {
                return false;
            return true;
        @Override
        public String toString() {
            return "doc.Doctor[docId=" + docId + "]";
        public void persist(Object object) {
            /* Add this to the deployment descriptor of this module (e.g. web.xml, ejb-jar.xml):
             * <persistence-context-ref>
             * <persistence-context-ref-name>persistence/LogicalName</persistence-context-ref-name>
             * <persistence-unit-name>task-ejbPU</persistence-unit-name>
             * </persistence-context-ref>
             * <resource-ref>
             * <res-ref-name>UserTransaction</res-ref-name>
             * <res-type>javax.transaction.UserTransaction</res-type>
             * <res-auth>Container</res-auth>
             * </resource-ref> */
            try {
                Context ctx = new InitialContext();
                UserTransaction utx = (UserTransaction) ctx.lookup("java:comp/env/UserTransaction");
                utx.begin();
                EntityManager em = (EntityManager) ctx.lookup("java:comp/env/persistence/LogicalName");
                em.persist(object);
                utx.commit();
            } catch (Exception e) {
                java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, "exception caught", e);
                throw new RuntimeException(e);
    }doctor session bean code
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package doc;
    import java.util.List;
    import javax.ejb.Stateful;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    * @author kriem
    @Stateful
    public class DoctorFacade implements DoctorFacadeRemote {
        @PersistenceContext
        private EntityManager em;
        public void create(Doctor doctor) {
            em.persist(doctor);
        public void edit(Doctor doctor) {
            em.merge(doctor);
        public void remove(Doctor doctor) {
            em.remove(em.merge(doctor));
        public Doctor find(Object id) {
            return em.find(doc.Doctor.class, id);
        public List<Doctor> findAll() {
        return em.createQuery("select object(o) from Doctor as o").getResultList();
        public void persist(Object object) {
            em.persist(object);
    }doctor remote interface :
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package doc;
    import java.util.List;
    import javax.ejb.Remote;
    * @author kriem
    @Remote
    public interface DoctorFacadeRemote {
        void create(Doctor doctor);
        void edit(Doctor doctor);
        void remove(Doctor doctor);
        Doctor find(Object id);
        List<Doctor> findAll();
        public void persist(java.lang.Object object);
    doctor web service code :
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package task;
    import doc.Doctor;
    import doc.DoctorFacadeRemote;
    import java.util.List;
    import javax.ejb.EJB;
    import javax.ejb.Stateful;
    import javax.jws.Oneway;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    * @author kriem
    @WebService(serviceName = "taskService")
    @Stateful()
    public class task {
        @EJB
        private DoctorFacadeRemote ejbRef;
        // Add business logic below. (Right-click in editor and choose
        // "Web Service > Add Operation"
        @WebMethod(operationName = "create")
        @Oneway
        public void create(Doctor doctor) {
            ejbRef.create(doctor);
        @WebMethod(operationName = "edit")
        @Oneway
        public void edit(Doctor doctor) {
            ejbRef.edit(doctor);
        @WebMethod(operationName = "remove")
        @Oneway
        public void remove(Doctor doctor) {
            ejbRef.remove(doctor);
        @WebMethod(operationName = "find")
        public Doctor find(Object id) {
            return ejbRef.find(id);
        @WebMethod(operationName = "findAll")
        public List<Doctor> findAll() {
            return ejbRef.findAll();
    .............................and when i try to run for example findall method i got this
    findAll  Method invocation
    Method parameter(s)
    Type     Value
    Service invocation threw an exception with message : null; Refer to the server log for more details
    Exceptions details : java.lang.reflect.InvocationTargetException
    javax.servlet.ServletException: java.lang.reflect.InvocationTargetException at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:345) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:121) at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:148) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:316) ... 35 more Caused by: javax.xml.ws.soap.SOAPFaultException: WSTX-SERVICE-5008: Ignoring exception raised while committing transaction at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:187) at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:116) at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:254) at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:224) at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117) at $Proxy129.findAll(Unknown Source) ... 40 more Caused by: javax.xml.ws.WebServiceException: WSTX-SERVICE-5008: Ignoring exception raised while committing transaction at com.sun.xml.ws.tx.service.TxServerPipe.commitTransaction(TxServerPipe.java:440) at com.sun.xml.ws.tx.service.TxServerPipe.process(TxServerPipe.java:325) at com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:218) at com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:129) at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115) at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595) at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554) at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539) at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436) at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243) at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444) at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244) at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135) at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:159) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214) at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380) ... 2 more Caused by: javax.transaction.RollbackException: Transaction marked for rollback. at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:413) at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:371) at com.sun.enterprise.distributedtx.UserTransactionImpl.commit(UserTransactionImpl.java:197) at com.sun.xml.ws.tx.service.TxServerPipe.commitTransaction(TxServerPipe.java:436) ... 47 more knowing that this error appears to me when i try any method
    am working on netbean6 and glassfishV2 for my db its oracle
    guys i need any kind of help plzz...........
    Edited by: marwacs on May 18, 2008 1:02 AM
    Edited by: marwacs on May 18, 2008 1:04 AM

  • Error When Publishing "no access to internet (internet module not loaded)"

    When publishing a site in GoLive 9 I get the message""no access to internet (internet module not loaded)".
    i've never had this problem before, this just started happening and cant figure out how to get it to work again. it's weird because i can connect to my ftp server from the file menu and the internet module is checked on in my preferences. i've tried creating a new site file for my webpages and reinstalling GoLive and nothing has worked.
    has anybody had the same problem? thx!

    ha, ok i just figured it out. i didn't have the proper ftp setting in the publish preferences. i hadn't changed the info in the "server name" from the place holder text that was automatically inserted. that's a strange error message to display for that!!!

  • Howto stop the application module from using a DB

    Hello,
    Maybe and unusual question, but is there a way to stop the application module from connect to a DB? I know its purpose is to do so. But currently we are using ‘stub’ views and entities.
    In the executequery and dodml we wrote our own code to access data from webservices.
    We did this because we are also using JHeadStart which requires BC.
    It all works fine, but the application module needs a valid connection to a DB, although it will never query anything there.
    So is there a method which I can overwrite to make the application module think its connected to the DB but it actually isn’t?
    A second problem is most likely its state table.
    Anton

    Example #96 on my blog does this. It might have some useful clues.

  • Access control based on module/ program

    Hello All,
    In standard edition is there a way to we control user access based on the module / program.
    like if the user is accessing the database throught sql*plus then he should have only read access.
    Thanks
    sankar

    Hi sankar
    amazing how often this is asked, however Oracle database authenticates the username, not the end-user client,
    but you can use the following reference to at best thwart access from client programs that you do not like:
    note 281229.1 How to Restrict Access to the Database With Specific Tools (e.g. TOAD) or Applications
    It is important to realize any info sent from the client like program name, module and client_id (unless set by the database)
    cannot be trusted, so this is at best a method to discourage the use of what you think are 'illegal' clients,
    greetings,
    Harm ten Napel
    Edited by: hnapel on Feb 12, 2013 8:29 AM

  • Loading modules from different domain

    when I load modules from the same location where is main application, everything is fine. But when modules are loaded from different adrress i got following error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at mx.utils::LoaderUtil$/isRSLLoaded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\uti ls\LoaderUtil.as:525]
              at mx.utils::LoaderUtil$/http://www.adobe.com/2006/flex/mx/internal::processRequiredRSLs()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\utils\LoaderUtil.as:259]
              at mx.core::FlexModuleFactory/getRSLInfo()[E:\dev\4.5.1\frameworks\projects\framework\src\mx \core\FlexModuleFactory.as:582]
              at mx.core::FlexModuleFactory/update()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\cor e\FlexModuleFactory.as:470]
              at mx.core::FlexModuleFactory/moduleInitHandler()[E:\dev\4.5.1\frameworks\projects\framework \src\mx\core\FlexModuleFactory.as:819]
    any ideas what might be wrong?
    thanks for any help in advance

    This is a link to testing application:
    http://michalnpe.homeip.net:55001/bin-release/LoadModuleApp.html
    you can see source code of this app.
    Let's say we want to run module from different domain.
    so insert following address for crossdomain.xml and module (into TextInput in the applicataion above) .
    http://a2s.pl/crossdomain.xml
    http://www.a2s.pl/npe/softmgr/Michal/wymiana/TestModule.swf
    here is the code that loads the module:
    protected function loadModule(event:MouseEvent):void
                                            testloader.url = moduleAddress.text;
                                            //testloader.loadModule();
                                  public function setup():void { // run before loading modules
                                            Security.allowDomain("*");
                                            Security.loadPolicyFile(crossdomain.text);
                                            var request:URLRequest = new URLRequest(crossdomain.text);
                                            var loader:URLLoader = new URLLoader();
                                            loader.load(request);

  • Loading resource module from private folder.

    Hi,
    I have client(AIR)-server(Java) application working with many locales. Every now and then someone finds a bug in translation and repairs it.  Whenever somebody updates translation (via other tool wchich also creates new xx_XXresourceModule.swf on the server) it's created new resource module. From this reason I want to have resourceModules located on server. Changing resource on server will spread this change on each client during client initialization. Client during starting checks "somehow" whether there is newer resource module on server side and if there is then it should download and loads it.
    The reason why I don't want to just call IResourceManager.loadResourceModule(serverURL+resourceModule.swf) every time client start is quicker  client start up. If there isn't newer localization it uses the one which was dowloaded and stored earlier during former start.
    The problem is that when I download resourceModule.swf I could store it only into File.documentsDirectory where I have WRITE rights. But later on I am not able to load resource module via IResourceManager.loadResourceModule(). It complains "Unable to load resource module from: file:///c:/documents and settings/user/MyDocuments/resourceModule.swf" Do I miss something or is it possible to call loadResourceModule() when the SWF file is located somewhere in myDocument folder?
    Any idea how to solve it?
    //pyso

    AIR had a security restriction that you can only load modules from the app directory (i.e. the same folder the application was installed to). However they added a loadBytes(...) function to allow a module to be loaded that had been downloaded. I don't know if this was added to the resource stuff however.
    You cannot blindly add modules to the app directory either (at least ones that weren't part of the initial install) as the AIR runtime tries to work out from the directory whether it needs to update itself, and adding files in there confuses it (so say Adobe).
    I actually think you might be stuffed unless you create a new version of your AIR application with the new resource bundle, and distribute it as an update.
    Gk.
    Gregor Kiddie
    Senior Developer
    INPS
    Tel:       01382 564343
    Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
    Registered Number: 1788577
    Registered in the UK
    Visit our Internet Web site at www.inps.co.uk
    The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [email protected]

Maybe you are looking for

  • XML Publisher Desktop and Enterprise...?

    Hello, Apologies if I missed some obvious documentation or whatever... But.. I don't really understand how XML Publisher Enterprise and XML Publisher Desktop fit together. Does Desktop require Enterprise? Are they more complimentary, or is Desktop mo

  • MDT 2013 stalls during first boot into OS

    I just built a new MDT 2013 server (on 2012 R2) and am attempting to deploy Windows 7 from it via litetouch.  I've been working with MDT 2010 for several years so I am pretty familiar with how it works and just about everything is fine with 2013 exce

  • Can not buy Photoshop + Lightroom offer

    Hi, for the past 4 days, I have been trying to subscribe to the Photoshop + Lightroom temporary offer, which ends today. Every time I enter my CC details, the system returns an error message "cannot be processed at the moment, please try again later.

  • Problem displaying table (JTABLE), can u help me?

    Hi 2 all. I'm beginer in java (I have expirience of some yoears developing in pro-C, but not java). I try to create some JDialog using Intellig Idea7. There I create JTable component, try to initialize it with values in the array (that was inialized

  • Transport query from test system

    Hi We want to create our BEx queries in our test system and thereby transport them to the production system. We don’t want to create the queries in the development system because we don’t have any data there. Scenario: create a query in the test syst