since ‎08-03-2011
‎10-12-2019
RupakKhurana
Level 1
Unable to use multiple Identity Keys in a table with model driven development
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
I have a table in my model and I want it to have 4 integer primary keys (defaulted to 0). When I create a new entry in this table using DataServiceTransaction.createItem(), only the PK1 goes correctly, the rest go as the default value 0. I tried to change the type of PKs to string but to no avail. What may be going on?Please note the IDs are not auto generated-RK

Views

1.0K

Likes

0

Replies

1
Re: [JTATransaction] You should set hibernate.transaction.manager_lookup_class if cache is enabled
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
Hi AshishThere is nothing else in log other than the following. Where do I find hibernate configuration file. There is none in my project folder and the only place hibernate is being configured is in the .fml file that also I pasted..: You should set hibernate.transaction.manager_lookup_class if cache is enabled thanksRupak

Views

75

Likes

0

Replies

0
[JTATransaction] You should set hibernate.transaction.manager_lookup_class if cache is enabled
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
HelloI keep seeing the above error in my server log. My model file has the following. What is the warning about and how to rectify it in the right waythanksRupak java:comp/env/ALGODB org.hibernate.dialect.Oracle10gDialect org.hibernate.transaction.JOTMTransactionManagerLookup org.hibernate.transaction.JTATransactionFactory false

Views

3.4K

Likes

0

Replies

3
Re: MessageBroker.getMessageBroker(null) returns null.. why?
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
It is resolved now. Upon careful examination of the log, I found that the MessageBrokerServlet was indeed throwing an exception due to a wrong tag being used in messaging-config.xml file..

Views

91

Likes

0

Replies

0
MessageBroker.getMessageBroker(null) returns null.. why?
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
HelloI have seen lot of posts regarding this but no clear reason why this would happen. My server runs under Tomcat 6.0.33. In a spearate thread, I try to get MessageBroker msgBroker = MessageBroker.getMessageBroker(null); but it always returns null. In my web.xml, there is a valid servlet MessageBrokerServlet with load-on-startup = 1. In one of the posts Rohit suggested copy jta.jar to tomcat libs but it doesnot help either. I tried to wait 30 secs or so in my thread before invoking MessageBrok...

Views

1.6K

Likes

0

Replies

2
Re: Authentication works but not Authorization with Custom Tomcat Login
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
When I invoke the remoting destination, I get the following message... Note my client is AIR application..[RPC Fault faultString="Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly." faultCode="Server.Processing.DuplicateSessionDetected" faultDetail="null"]After a few restarts of the server, I start getting the correct response upon invoking the remoting destination i.e....

Views

49

Likes

0

Replies

0
Authentication works but not Authorization with Custom Tomcat Login
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
Hello,I am following the steps mentioned in LCDS guide on setting up Tomcat (6.0.33) login. The configuration file details are mentioned below... Based on that, my observation is that the user "tomcat" and "rupak" can login successfully. However the remotingService called AdminControlService has security constraint of trustedAdmin and the user rupak or tomcat dont have the roles of twsadmin but the login is successful on amfChannel for these users while I expect it to fail because of the securit...

Views

1.8K

Likes

0

Replies

3
Configure Tomcat 7 for custom authentication
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
HelloI am using Tomcat 7.0.19 for custom authentication. I followed the procedures defined in the LCDS 3.1 specs. However I get the following exception for TomcatValve.. please advise..thanksRupakSEVERE: Error deploying web application directory ROOTjava.lang.VerifyError: class flex.messaging.security.TomcatValve overrides final method start.()V at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass...

Views

1.7K

Likes

0

Replies

2
Re: How to use UpdateItem() in DataServiceTransaction
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
I played around with the parameters.. It appears the arguments – previousVersion and Changes have to be non null? If I provide valid objects for newVersion ,previousVersion and changes, then the update happens..I should be able to supply them as null as per the docs below..From the LCDS docs....updateItempublic void updateItem(String destination, Object newVersion, Object previousVersion, String [] changes)Send an update event to clients subscribed to this message. Note that this method does not...

Views

49

Likes

0

Replies

0
Re: How to Fill Sorted Data with model Driven Development
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
looks like auto-refresh was set to false for this filter...

Views

36

Likes

0

Replies

0
Re: How to Fill Sorted Data with model Driven Development
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
while it is working, I noticed that my additions to the database using DataServiceTransaction.createItem() have stopped displaying on the client GUI but are making it to the database. If I switch back to ordersService.getAll() from the new method ordersService.getSortedByTWSTimestamp(), then the client GUI is happily updated.. any ideas...

Views

34

Likes

0

Replies

0
Re: How to use UpdateItem() in DataServiceTransaction
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
I tried deleteItemWithId() but same exception as updateItem(), there is something that I am doing wrong….

Views

46

Likes

0

Replies

0
Re: How to use UpdateItem() in DataServiceTransaction
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
Ashish I tried with useJTA=true and got same exception while updating item… RegardsRupak

Views

45

Likes

0

Replies

0
Re: How to use UpdateItem() in DataServiceTransaction
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
Exception: flex.messaging.MessageException: at flex.data.DataService.sendBatchToAdapter(DataService.java:1630) at flex.data.DataServiceTransaction.addProcessedMessage(DataServiceTransaction.java:2856) at flex.data.DataServiceTransaction.updateItem(DataServiceTransaction.java:521) I am using useJTA=false even to add the entry to database, that seems to work correctly. I will try with useJTA=true…

Views

46

Likes

0

Replies

0
How to use UpdateItem() in DataServiceTransaction
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
HelloI am using the following code to push an entry to the client and also create a new one in the database. However subsequently I want to just update the previous entry with new volume and price. So I use the updateItem() as shown below. Please note that the entry in the database is already present, I am just updating it as part of this test.. DataServiceTransaction dtx = DataServiceTransaction.begin(false); dtx.setSendChangesToAdapter(true); Positions p1 = new Positions(); //p1.setPositionsId...

Views

1.3K

Likes

0

Replies

6
Re: How to Fill Sorted Data with model Driven Development
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
My mistake… I was still calling ordersService.getAll() in the client instead of ordersService.FillSortedByTWSTimestamp()..it should be okay now.. The changes are made in the auto-gen AS file instead of java file..

Views

35

Likes

0

Replies

0
Re: How to Fill Sorted Data with model Driven Development
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
It did not help yet.. Here is the FML.. After making the change in model file, If I click on Generate Code..do I expect to see any changes in the auto-gen java code.. I don’t see any change though (like in the assembler file)..

Views

38

Likes

0

Replies

0
How to Fill Sorted Data with model Driven Development
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
HelloI am using model driven development. I am using getAll in the Fill method. But the results are not returned sorted by some field that I am interested in. How do I tell the Fill to sort it by some field. Is there some annotation that I can provided in the model...thanksRK

Views

928

Likes

0

Replies

5
Re: How to manually create item using model driven assembler
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
PamI like the PREPEND approach but not sure if it can be used with code snippet I am using..If you are referring to registering an eventListener on DataService as in :- then the alarmResultHandler() doesnot get called when the data is pushed from the server using DataServiceTransaction. It gets called when I launch the screen and it calls Fill() to populate the grid..pls advise thanks

Views

51

Likes

0

Replies

0
Re: How to manually create item using model driven assembler
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
PamI think so but am still not there.. I am using the following code to push the entry from the server. How do I specify PREPEND_TO_FILL.public void doSomething() {DataServiceTransaction dtx = DataServiceTransaction.begin(false); dtx.setSendChangesToAdapter(true);Currency c1 = new Currency();c1.setCurrencyCode("ABC");c1.setCurrencyName("Dummy Currency");c1.setCurrencyLastUpdated(new Date());dtx.createItem("currencyService", c1); <-- this results in the exception belowdtx.commit();}thanksRupak

Views

54

Likes

0

Replies

0
Re: How to manually create item using model driven assembler
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
Ok, to cut the chase, all I want to do is to display on the top of the grid the newly added items to the grid (basically keep the table sorted, latest event always on the top). I am getting these items to be displayed in real time by server side push. How do I achieve this..I am using advancedDataGrid but I can use DataGrid Too if that helps…

Views

50

Likes

0

Replies

0
Re: How to manually create item using model driven assembler
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
ScottThanks for the response but which method from that file gets called when a response is received from the server..I checked the file SuperServicename.as and it has the Fill methods and the ones to create/update an item etc.. ThanksRK

Views

51

Likes

0

Replies

0
Re: How to manually create item using model driven assembler
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
As a follow up on this thread, when the updates are sent to the client (using the DataServiceTransaction.commit()), which function gets called in the mxml file. I want to catch those events in the client and act on them accordingly. Currently they are being silently written to grid on my screen...

Views

52

Likes

0

Replies

0
How to tail the app server log file and send to flash client
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
I'd like a mechanism where the LCDS detects any changes in the App Server log file and sends them to the Flash client for display. Is there a practical one...?thanksRK

Views

2.0K

Likes

0

Replies

1
Unable to call remoting service if another java thread listens to socket.
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
HelloI have an LCDS server running under tomcat that works fine so far and I can call remote procedures defined in remoting-config.xml. So far all is well. Now in this server application, inside a servlet.init(), I start a java thread that creates a java.net.ServerSocket and starts listening to it for data that is coming from some other remote machine over the TCP/IP socket.If I instantiate this java thread, I am unable to call remote procedures from the flex client. I get an error - RPC Fault f...

Views

969

Likes

0

Replies

1
Re: DataServiceTransaction.setSendChangesToAdapter(true)
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
Use the following hibernate settings...java:comp/env/ALGODBorg.hibernate.dialect.Oracle10gDialectorg.hibernate.transaction.JOTMTransactionManagerLookuporg.hibernate.transaction.JTATransactionFactoryfalse

Views

23

Likes

0

Replies

0
Re: Model Driven Development under JBoss Transaction Service
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
Apparently the server side code was not generated, read the LCDS manual on server side code generation and deploy the web app with it.

Views

19

Likes

0

Replies

0
Re: DB commit causing CORBA exception
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
Ok, It got fixed by setting useJTA = false as inDataServiceTransaction dtx = DataServiceTransaction.begin(false);also in the DMS settings use-transactions="false"

Views

48

Likes

0

Replies

0
DB commit causing CORBA exception
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
Hello,I am using the following code to make an entry into the database :- DataServiceTransaction dtx = DataServiceTransaction.begin(true); dtx.setSendChangesToAdapter(true); Currency c1 = new Currency(); c1.setCurrencyCode("ABC"); c1.setCurrencyName("Dummy Currency"); c1.setCurrencyLastUpdated(new Date()); c1.setCurrencyId(new Integer(1)); dtx.createItem("TraderWorkStation.Currency", c1); dtx.commit();The model has the following DMS annotations, while the entry is being created but there is a CO...

Views

1.4K

Likes

0

Replies

1
Re: DataServiceTransaction.setSendChangesToAdapter(true)
Avatar

RupakKhurana

RupakKhurana
- Adobe LiveCycle
Rohit,It doesnot look like from the log below that the write is happening but the call seems to be going to the assembler/adapter, I have specifically set the assembler to CurrencyAssembler on the entity Currency on the model so that it uses the auto generated CurrencyAssembler instead of default FiberAssembler. Is there anything custom that needs to be done in the model generated CurrencyAssembler.createItem() ?*** Log Messages below ***[TWSServer]08/25/2011 11:39:53.864 [DEBUG] [Service.Data.T...

Views

21

Likes

0

Replies

0