Cannot load template
When I open a page to update it content the loading is very slow. It took 5 min. to sync the template and open the page. The result is a page without the template in it.
If I create a page from a blank template it's OK.
I reinstalled Contribute and reinstalled the site and it did not fixed the problem.
Hi
I have similar problems. My client can't edit a page with Contribute CS5 who has a template apply. Pages with no template apply are OK. We can edit and publish .dwt pages on different computer at my job, with CS5 & CS3... Any idea why he could do it to?
After few secondes an error call that the server is drop or the connection are not accepted.
Similar Messages
-
BEx Broadcasting : Error loading template 0BROADCASTING_TEMPLATE
Hello Everybody,
When i go to Business Explorer - Web Application Designer - Publish and click on In BEx Broadcaster ,an error message is displayed when this is loaded saying :
<b>Error loading template 0BROADCASTING_TEMPLATE</b>
When I tried installing 0BROADCASTING_TEMPLATE an error message was displayed as :
<b>Object Web Template Name 0BROADCASTING_TEMPLATE is not available in version D</b>
This means that 0BROADCASTING_TEMPLATE is not available in delivered version .
Is this any other way to install this template or can this template be separately installed,if yes plz tell me how to do it.If this template cannot be installed separately then,is there no other way to activate BEx broadcasting functionality in BW .Kindly revert back at earliest as I am suffering with this issue since many days.my Email Id is [email protected] .
Thanks,
SaumyaHi,
Sorry for bothering you - see SAP Note 861803 if of any help.
Symptom
In a BW 3.5 system, you want to define the Standard Web Templates and you call Transaction RSCUSTV11 to do this, however the system displays only the fields "Style sheet" and "Template properties".
Other terms
RSCUSTV11, RSCUSTV21, 0QUERY_TEMPLATE, 0ADHOC, 0BROADCASTING_TEMPLATE, 0ANALZYER, 0QUERY_TEMPLATE_BROADCASTING, 0DOC_TEMPLATE2, standard Web template
Solution
In a BW 3.5 system, use Transaction RSCUSTV21 to maintain the Standard Web Templates.
regards
Vikash -
Error: process-uri-objects reports: HTTP2020: cannot find template default
Error
process-uri-objects reports: HTTP2020: cannot find template default
Migrated from v4 to 6 but getting this error.Here is the obj.conf from migrated SSL server 6.0 sp5
$ more obj.conf
# Netscape Communications Corporation - obj.conf
# You can edit this file, but comments and formatting changes
# might be lost when the admin server makes changes.
<Object name="weblogic" ppath="*/ts/*">
Service fn="wl-proxy" WebLogicCluster="xxx.xxx.x.xx:yyyy,xxx.xxx.x.xx:yyyy" PathTrim="/ts" ErrorPage="htt
p://ips.chase.com/Xcelerate/wlNotUp.html"
</Object>
<Object name="weblogic" ppath="*/jbs/*">
Service fn="wl-proxy" WebLogicCluster="xxx.xxx.x.xx:yyyy,xxx.xxx.x.xx:yyyy" PathTrim=""
</Object>
<Object name="si" ppath="*/servletimages/*">
Service fn="wl-proxy" WebLogicCluster="xxx.xxx.x.xx:yyyy,xxx.xxx.x.xx:yyyy"
NameTrans fn="NSServletNameTrans" name="servlet"
NameTrans fn="pfx2dir" from="/servlet" dir="/opt/netscape/servers/docs/servlet" name="ServletByExt"
NameTrans fn="pfx2dir" from="/manual" dir="/opt/netscape/servers/manual/https" name="es-internal"
NameTrans fn="pfx2dir" from="/ns-icons" dir="/opt/netscape/servers/ns-icons" name="es-internal"
NameTrans fn="pfx2dir" from="/mc-icons" dir="/opt/netscape/servers/ns-icons" name="es-internal"
NameTrans fn="pfx2dir" from="/help" dir="/opt/netscape/servers/manual/https/ug" name="es-internal"
NameTrans fn="pfx2dir" from="/ns-icons" dir="/opt/netscape/servers/ns-icons" name="es-internal"
NameTrans fn="pfx2dir" from="/mc-icons" dir="/opt/netscape/servers/ns-icons" name="es-internal"
NameTrans fn="pfx2dir" from="/help" dir="/opt/netscape/servers/manual/https/ug" name="es-internal"
NameTrans fn="pfx2dir" from="/cgi-bin" dir="/opt/netscape/suitespot/docs/cgi-bin" name="cgi"
NameTrans fn=document-root root="$docroot"
PathCheck fn="unix-uri-clean"
PathCheck fn="check-acl" acl="default"
PathCheck fn="find-pathinfo"
PathCheck fn="find-index" index-names="index.html,home.html"
ObjectType fn="type-by-extension"
ObjectType fn="force-type" type="text/plain"
Service method="(GET|HEAD|POST|PUT)" type="text/jsp" fn="wl-proxy" WebLogicCluster="xxx.xxx.x.xx:yyyy,xxx.xxx.x.xx:yyyy"
Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
Service method="(GET|HEAD)" type="magnus-internal/directory" fn="send-error"
Service method="(GET|HEAD)" type="*~magnus-internal/*" fn="send-file"
AddLog fn="flex-log" name="access"
</Object>
<Object name="cgi">
ObjectType fn="force-type" type="magnus-internal/cgi"
Service fn=send-cgi user="$user" group="$group" chroot="$chroot" dir="$dir" nice="$nice"
</Object>
</Object>
<Object name="maintpwreset" ppath="*/maintpwreset/*">
Service fn="wl-proxy" WebLogicHost="xxx.xxx.x.xx" WebLogicPort="yyyy"
</Object>
<Object name="pwreset" ppath="*/pwreset/*">
Service fn="wl-proxy" WebLogicHost="xxx.xxx.x.xx" WebLogicPort="yyyy"
</Object>
<Object name="servlet">
ObjectType fn=force-type type=text/html
Service fn="NSServletService"
</Object>
<Object name="jsp092">
ObjectType fn="type-by-extension"
ObjectType fn="change-type" type="magnus-internal/jsp092" if-type="magnus-internal/jsp"
Service fn="NSServletService" type="magnus-internal/jsp092"
</Object>
<Object name="ServletByExt">
ObjectType fn=force-type type=magnus-internal/servlet
Service type="magnus-internal/servlet" fn="NSServletService"
</Object>
<Object name="es-internal">
PathCheck fn="check-acl" acl="es-internal"
</Object>
$
Back end is a weblogic cluster, I have used xxx at place of IP and yy for port.
Here is last few config lines from magnus.conf
Init fn="load-modules" shlib="/opt/netscape/servers/bin/https/lib/libNSServletPlugin.so" funcs="NSServlet
EarlyInit,NSServletLateInit,NSServletNameTrans,NSServletService" shlib_flags="(global|now)"
Init fn="NSServletEarlyInit" EarlyInit=yes
Init fn="NSServletLateInit" LateInit=yes
Init fn="flex-init" access="/opt/netscape/servers/https-secure-xxxxxxx/logs/access" format.access="%Ses
->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %
Req->srvhdrs.content-length%"
Init fn="load-types" mime-types="mime.types"
Init fn="load-modules" funcs="wl-proxy,wl-init" shlib="/weblogic/lib/solaris/libproxy.so"
Init fn="wl-init"
Thanks -
[Exchange 2013] Cannot find Template User object error
Hello,
I've faced with really strange issue. When I try to execute cmdlet Get-Recipient for user from @hotmail.com, @outlook.com and @live.com domains I get error "Cannot find Template User", even SilentlyContinue is used.
Let me show an example. Open PowerShell and load exchange snapin:
[PS] C:/>Add-PSSnapin Microsoft.Exchange.Management.Powershell.E2010
[PS] C:/>$existingContact = Get-Recipient [email protected] -ErrorAction SilentlyContinue
Cannot find Template User object.
At line:1 char:1
+ Get-Recipient [email protected] -ErrorAction SilentlyContinue
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], ADTransientException
+ FullyQualifiedErrorId : [Server=CAS15-CA-1,RequestId=5cfa31f1-96d5-43c2-8c98-ea50d108276f,TimeStamp=10/24/2014 1
:38:08 PM] [FailureCategory=Cmdlet-ADTransientException] EC4D1948
It works well for others domains (e.g. gmail.com), besides it works well for Exchange 2010. And finally it works well in Exchange Management shell.
What does the error mean? Why Get-Recipient doesn't work only for Microsoft's domains?
Thanks in advance!I have seen a lot of weird errors and sometimes incomplete results when manually adding the Exchange Snappin into powershell. Exchange 2010+ is setup for remote powershell, so if your on the server then use the exchange shell which will do all the remoting
for you, or you can setup the remote session your self.
http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/23/learn-how-to-use-powershell-to-run-exchange-server-commands-remotely.aspx
DJ Grijalva | MCITP: EMA 2007/2010 SPA 2010 | www.persistentcerebro.com -
I cannot load farmville to ;play
i cannot load farmville to play
-> [[The Adobe Flash plugin has crashed]]
-> Clear Cookies & Cache
* https://support.mozilla.com/en-US/kb/Template:clearCookiesCache
-> [[How to clear the cache#w_clear-the-cache|Clear the Network Cache]]
Also try the suggestions mentioned in the following articles:
* [[Firefox cannot load websites but other programs can]]
* [[Firefox never finishes loading certain websites#w_lower-the-max-number-of-http-connections|Lower the max number of HTTP connections]]
-> [[Troubleshooting extensions and themes]]
-> Update All your Firefox Plugins
* https://www-dev.allizom.org/en-US/plugincheck/
* http://www.mozilla.com/en-US/plugincheck/
'''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''
Check and tell if its working. -
Key figure definition in BEx gives "Error loading template 0QUERY_TEMPLATE"
Hi,
On a BI 7.0 system I try to run a query in the BEx Analyzer and after I have the result in Excel. I wants to see the key figure definition by right clicking in a data cell.
Then I get this error message after the browser has started up.
Error loading template 0QUERY_TEMPLATE
Notification Number BRAIN 276
Any ideas how this can be?
Kind regards, Bjarnehi,
Please check the below path in BI and set the template "0ANALYSIS_PATTERN" there:
SPRO ->SAP Netweaver -> BI ->Settings for reporting and analysis ->BEX Web -> Set Standard Web Templates -> Ad-hoc analysis -> set the above template and save it.
check wether it works afterwords or not.
This is the standard web template called every time when we execute our query's.
Thanks
Dipika -
This does not happen in other browsers and it happens on a variety of computers I have access to and would seem to be a common problem but I can find no identical cases in my searches of
Firefox , Facebook or windows help or Google search. My home machine is only a P2 with WINXPCORP but works fine and I have done all updates but still have this continuing problem every time I try to use Firefox
to access Facebook chat but it does not happen with IE or chrome
The response to clicking on chat button or friend chat is a black screen with small center square box with blue title bar that says
'' VIEW IMAGE FULL SCREEN - (42) FACEBOOK X""
center of box is ""! "" mark in yellow triangle and wording
"" CANNOT LOAD IMAGES ''' OK
clicking on OK returns to facebook page but no chat opens.
Some times |VERY RARLEY if as the page loades you click on
chat button with 1/2 second of it appearing chat will open.Hi,
Please also see [https://support.mozilla.org/en-US/kb/Problems%20using%20Facebook%20in%20Firefox this.] -
Web UI Client - Error Loading template 0TPLB_MKTG_C01_Q0001_V01
Hi
Please can any one help on this below error
Error Loading template 0TPLB_MKTG_C01_Q0001_V01
I have activated the Template in BI Content and able to check the same in WAD and also in RS Template Maintain in BI system.
But as soon as i go to CRM Web UI portal and click on that link its saying Error Loading template 0TPLB_MKTG_C01_Q0001_V01.
I have also given the settings in CRM SPRO --> Display SAP BI Netweaver Reports --> Given the Web Template id, but still iam not able to get the template worked..
Could any one of you suggest.
Thanks in advanceHi Amit,
Can u pls help us in knowing solution if u have fixed this issue.
Thanks,
Ravi -
Error while starting essbase after Installation: Cannot load $DM_APP$
Hi,
I have installed Essbase on solaris. After installation when I start Essbase it started successfully but with an error:
[Mon Sep 19 09:52:22 2009]Local/ESSBASE0///Error(1052003)
Timed out reading from server
[Mon Sep 19 09:52:22 2009]Local/ESSBASE0///Error(1054001)
Cannot load application $DM_APP$ with error number [1052003] - see server log file
[Mon Sep 19 09:52:22 2009]Local/ESSBASE0///Warning(1051221)
Creation of Datamining Object Management Application Fails with status [1054001]
I have verified all the evnironment variables they are set correctly same as one of our other environments.
I would really appreciate if some can help me troubleshoot this.
Thanks and Regards,
VamshiFinally Found that the JVM path is set inccoretly.This should be the path to be set: $HYPERION_HOME/common/JRE/Sun/1.5.0/lib/sparc/server
Thanks and Regards,
Vamshi -
Error message: Cannot load the rpt file
Can anyone please help.
I created a Crystal Report which I deployed into Business One. Tested this report on about 13 machines running Business One and all running well except one machine where it comes up with the following error messages:
1: Cannot load the rpt file
2: Object reference not set to an instance of an object
3: Invalid report file path
I have tried logging into Business One on that machine as a different user and encountered the same issue. Then logged onto another machine as the user who uses the machine with the error message and her profile works well on another machine.
This is leaving me with concluding this problem could be down to the machine but cannot figure out how to fix it.
Does anyone have any ideas to solving this?
Thanks
TonyHi Tony,
On the troubled computer, check in Control Panel whether Crystal Report Runtime is installed. If not, un-install client app and re-install from B1_Shr client's folder. The first thing that it will do is to instal Crystal Report Runtime.
Source: when I did an upgrade on a client recently this happened. After troubleshooting everything I found that this issue is a hit-and-miss as some PCs had it some don't. I started comparing between working and non-working PC and found this is the only difference I could found. -
The pass 4 days now my iTunes Store is not responding, when I reload it all that comes up is a blank white page that says iTunes Store. Help please!!!! Cannot load my gift card to buy music and such!!!
I tookyour suggestion and SUCCESS! I can now access the Itunes Store. A simple fix, and thanks so much!!.
Below is the advice you forwarded:
I found a solution to my problem.
> start menu
> accessories,
> right click on the command prompt icon and choose "run as administrator".
Once it opens, type in the following command...
netsh winsock reset
hit enter
You should get a message that the winsock reset successful and you will need to reboot your computer.
Reboot and when I reloaded itunes the store loaded fine.
Thanks again, -Dean Stoneburner -
Internal error, cannot load engine Number 2 due to error 5
I have had a StartStop transcription program for several years. I bought my Dell computer with Windows 8 (now 8.1) in late 2014. I had no problems running the StartStop program until it got a tune-up by my regular tech. Since then, when I click to
open it, I get the message: "##### Internal error, cannot load engine Number 2 due to error 5." My tech couldn't figure it out and another tech couldn't fix it either after looking at it for hours. StartStop could not figure it out either.
Since then, I bought a Digitope digitalizer, which converts cassette tapes to CD's. When I try to open that program the exact same error message comes up!
So I am thinking there is something awry with certain audio programs. I am able to run another transcription program, Express Scribe.
Any thoughts!
The 2nd tech suggested rebooting the entire computer and reinstalling all programs, but I'm not sure I can find all my original programs.
Thanks!Hello Silent Fisher,
What StartStop transcription program do you mean?
Please share me a screenshot.
If it is a third-party software, it is recommended to contact the support of the software.
If the issue occurs after your change, please use the system restore to restore your computer’s system files to an earlier point in time.
http://windows.microsoft.com/en-HK/windows-8/restore-refresh-reset-pc
Best regards,
Fangzhou CHEN
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
I Rented the film inhale on my iPad a few nights ago, this is not the first time I've rented from I turnes, I've don't it many times before and never had any problems. This time I cannot get the film to load. Every time I try to play the video it comes up with a message saying 'cannot load video' as soon as I reach around 15 minutes of the movi. and then shuts the video down. I'm annoyed because having got 15 minutes in my film will now expire in 48 hours even though I can't actually watch it. I'd like to see it tonight if anybody can help please, thanks.
Having the same problem. Watched 25 minutes of a rental and it stopped with the message"unable to load video"
Using current version IPad mini.
Ios7 is HUGH PIECE OF CRAP!!!! -
MDB cannot loads enitities if more than 10 concurrent messages are sent tog
Hello,
I have seen a weird behavior of the MDB in Jboss or perhaps in transaction management.
Here is a my scenario
I have a session bean sb, an entity bean e and a message driven bean mb
When a request comes to sb , it persists a new entity e and send a message (primary key) to mb
mb then loads e from the database using one of the findByXX method and does something else.
If 10 concurrent request comes to sb, 10 different entities are persisted and 10 different messages are sent to mb
mb are able to load 10 different e from the database
Everything works fine as long as there are 10 concurrent request. If there are 13 concurrent request, then one or two mb
cannot load e from the database. It seems that the session bean has persisted the entities but some of them are still unload able from mb. They have been persisted , (I saw in the logs), but mb cannot load them.
Initially I thought that a transaction mishap might be happening, so instead of persisting the entity and sending the message in one method in sb , I separated these two tasks in two methods a and b, in which both a and b uses RequiresNew transaction attribute. But the problem still remains. Please note if the number of parallel request are less than 10 then everything works fine. Is there something I am missing or is Jboss doing something buggy?
The above situation is reproducible .
Here is some more information about the problem along with some code snapshots. Note that the code is trimmed for clarity purposes.
Request is a simple entity (e as mentioned in the problem before) that is persisted in session bean . Here is a trimmed snapshot
Request.java
package gov.fnal.ms.dm.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
@Entity
@NamedQueries({@NamedQuery(name = "Request.findById", query = "SELECT r FROM Request r WHERE r.id = :id"),
@NamedQuery(name = "Request.findAll", query = "SELECT r FROM Request r"),
@Table(name = "cms_dbs_migration.Request")
@SequenceGenerator(name="seq", sequenceName="cms_dbs_migration.SEQ_REQUEST")
public class Request implements Serializable {
private String detail;
@Id
@GeneratedValue(strategy = GenerationType.AUTO, generator="seq")
@Column(nullable = false)
private Long id;
private String notify;
.....The session bean is MSSessionEJBBean.
MSSessionEJBBean.java
@Stateless(name="MSSessionEJB")
@WebService(endpointInterface = "gov.fnal.ms.dm.session.MSSessionEJBWS")
public class MSSessionEJBBean implements MSSessionEJB, MSSessionEJBLocal, MSSessionEJBWS {
@PersistenceContext(unitName="dm")
private EntityManager em;
....... The methods that is called concurrently in this bean is
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public Request addRequest(String srcUrl, String dstUrl, String path,
String dn, String withParents, String withForce, String notify) throws
Exception {
Request r = addRequestUnit(srcUrl, dstUrl, path, dn, withParents, withForce, notify);
if (r != null) sendToQueue(r.getId());
return r;
} It first adds the request entity and then sends a message to the queue in separate methods each using TransactionAttributeType.REQUIRES_NEW (I don't think this TransactionAttributeType is needed . I was just playing to see if this resolves the problem)
Here is the method that actually persist the entity
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public Request addRequestUnit(String srcUrl, String dstUrl, String path,
String dn, String withParents, String withForce, String notify) throws
Exception {
....// Does something before persisting
Request r = new Request();
r.setNotify(notify);
r.setPath(path);
r.setPerson(p);
r.setWithForce(withForce);
r.setWithParents(withParents);
r.setProgress(new Integer(0));
r.setStatus("Queued");
r.setDetail("Waiting to be Picked up");
em.persist(r);
System.out.println("Request Entity persisted");
System.out.println("ID is " + r.getId());
return r;
}I can see that the log files has messages
*{color:#800000}"Request Entity persisted" "ID is " 12 (or some other number){color}*
. So it is safe to assume that the request entity is persisted properly before the message is sent to the queue. Here is how the message is sent to the queue
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
private void sendToQueue(long rId) throws Exception {
QueueSession session = null;
QueueConnection conn = null;
try {
conn = factory.createQueueConnection();
session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
MapMessage mapMsg = session.createMapMessage();
mapMsg.setLong("request", rId);
session.createSender(queueRequest).send(mapMsg);
} finally {
if (session != null) session.close();
if(conn != null) try {
conn.close();
}catch(Exception e) {e.printStackTrace();}
System.out.println("Message sent to queue");
}I can see the message
{color:#800000}*"Message sent to queue"*{color}
in the log file right after I see the
*{color:#800000}
"Request Entity persisted"{color}*
message. So it correct to assume that the message is infact sent to the queue.
Here is the md bean that gets the message from the queue and process it
@MessageDriven(activationConfig =
@ActivationConfigProperty(propertyName="destinationType",
propertyValue="javax.jms.Queue"),
@ActivationConfigProperty(propertyName="destination",
propertyValue="queue/requestmdb")
public class RequestMessageDrivenBean implements MessageListener {
@EJB
private MSSessionEJBLocal ejbObj;
public void onMessage(Message message) {
try{
System.out.println("Message recived ");
if(message instanceof MapMessage) {
System.out.println("This is a instance of MapMessage");
MapMessage mMsg = (MapMessage) message;
long rId = mMsg.getLong("request");
List<Request> rList = ejbObj.getRequestById(new Long(rId));
System.out.println("rList size is " + rList.size());
for(Request r: rList) {
//Does something and print something in logs
System.out.println("Finsihed onMessage");
}catch(Exception e) {
System.out.println(e.getMessage());
} One thing to note here is that getRequestById is another method in the same session bean MSSessionEJB. Can that be the reason for not loading the request from the database when many concurrent request are present? Here is what it does
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public List<Request> getRequestById(Long id) throws Exception {
System.out.println("Inside getRequestById id is " + id);
return em.createNamedQuery("Request.findById")
.setParameter("id", id)
.getResultList();
} In the logs I do see
{color:#800000}*"This is a instance of MapMessage"*{color}
and I do see the correct Rid that was persisted before in the log
*{color:#800000}
"inside getRequestById id is 12"{color}*
. Finally I do see
*{color:#800000}
"Finsihed onMessage"{color}*
for all the request no matter how many are sent concurrently.
*{color:#ff0000}Here is where the problem is . rList size is 1 for most of the cases but it returns 0 when the number of concurrent message exceeds 10.*
*{color}*
So you see there is no exception per se, just that entity does not get loaded from the database. I would like to mention this again, it does work properly when the number of concurrent request are less than 10. All the invocation of onMessage in MB are able to load the entity properly in that case. Its only when the number of concurrent request increases more than 10, the onMessage is unable to load the entity and the rList is 0.
FYI I am using jboss-4.2.2.GA on RedHat enterprise linux 4 with jdk1.6.0_04
Please let me know if there is more information required on this.
Thank youHello,
I have seen a weird behavior of the MDB in Jboss or perhaps in transaction management.
Here is a my scenario
I have a session bean sb, an entity bean e and a message driven bean mb
When a request comes to sb , it persists a new entity e and send a message (primary key) to mb
mb then loads e from the database using one of the findByXX method and does something else.
If 10 concurrent request comes to sb, 10 different entities are persisted and 10 different messages are sent to mb
mb are able to load 10 different e from the database
Everything works fine as long as there are 10 concurrent request. If there are 13 concurrent request, then one or two mb
cannot load e from the database. It seems that the session bean has persisted the entities but some of them are still unload able from mb. They have been persisted , (I saw in the logs), but mb cannot load them.
Initially I thought that a transaction mishap might be happening, so instead of persisting the entity and sending the message in one method in sb , I separated these two tasks in two methods a and b, in which both a and b uses RequiresNew transaction attribute. But the problem still remains. Please note if the number of parallel request are less than 10 then everything works fine. Is there something I am missing or is Jboss doing something buggy?
The above situation is reproducible .
Here is some more information about the problem along with some code snapshots. Note that the code is trimmed for clarity purposes.
Request is a simple entity (e as mentioned in the problem before) that is persisted in session bean . Here is a trimmed snapshot
Request.java
package gov.fnal.ms.dm.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
@Entity
@NamedQueries({@NamedQuery(name = "Request.findById", query = "SELECT r FROM Request r WHERE r.id = :id"),
@NamedQuery(name = "Request.findAll", query = "SELECT r FROM Request r"),
@Table(name = "cms_dbs_migration.Request")
@SequenceGenerator(name="seq", sequenceName="cms_dbs_migration.SEQ_REQUEST")
public class Request implements Serializable {
private String detail;
@Id
@GeneratedValue(strategy = GenerationType.AUTO, generator="seq")
@Column(nullable = false)
private Long id;
private String notify;
.....The session bean is MSSessionEJBBean.
MSSessionEJBBean.java
@Stateless(name="MSSessionEJB")
@WebService(endpointInterface = "gov.fnal.ms.dm.session.MSSessionEJBWS")
public class MSSessionEJBBean implements MSSessionEJB, MSSessionEJBLocal, MSSessionEJBWS {
@PersistenceContext(unitName="dm")
private EntityManager em;
....... The methods that is called concurrently in this bean is
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public Request addRequest(String srcUrl, String dstUrl, String path,
String dn, String withParents, String withForce, String notify) throws
Exception {
Request r = addRequestUnit(srcUrl, dstUrl, path, dn, withParents, withForce, notify);
if (r != null) sendToQueue(r.getId());
return r;
} It first adds the request entity and then sends a message to the queue in separate methods each using TransactionAttributeType.REQUIRES_NEW (I don't think this TransactionAttributeType is needed . I was just playing to see if this resolves the problem)
Here is the method that actually persist the entity
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public Request addRequestUnit(String srcUrl, String dstUrl, String path,
String dn, String withParents, String withForce, String notify) throws
Exception {
....// Does something before persisting
Request r = new Request();
r.setNotify(notify);
r.setPath(path);
r.setPerson(p);
r.setWithForce(withForce);
r.setWithParents(withParents);
r.setProgress(new Integer(0));
r.setStatus("Queued");
r.setDetail("Waiting to be Picked up");
em.persist(r);
System.out.println("Request Entity persisted");
System.out.println("ID is " + r.getId());
return r;
}I can see that the log files has messages
*{color:#800000}"Request Entity persisted" "ID is " 12 (or some other number){color}*
. So it is safe to assume that the request entity is persisted properly before the message is sent to the queue. Here is how the message is sent to the queue
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
private void sendToQueue(long rId) throws Exception {
QueueSession session = null;
QueueConnection conn = null;
try {
conn = factory.createQueueConnection();
session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
MapMessage mapMsg = session.createMapMessage();
mapMsg.setLong("request", rId);
session.createSender(queueRequest).send(mapMsg);
} finally {
if (session != null) session.close();
if(conn != null) try {
conn.close();
}catch(Exception e) {e.printStackTrace();}
System.out.println("Message sent to queue");
}I can see the message
{color:#800000}*"Message sent to queue"*{color}
in the log file right after I see the
*{color:#800000}
"Request Entity persisted"{color}*
message. So it correct to assume that the message is infact sent to the queue.
Here is the md bean that gets the message from the queue and process it
@MessageDriven(activationConfig =
@ActivationConfigProperty(propertyName="destinationType",
propertyValue="javax.jms.Queue"),
@ActivationConfigProperty(propertyName="destination",
propertyValue="queue/requestmdb")
public class RequestMessageDrivenBean implements MessageListener {
@EJB
private MSSessionEJBLocal ejbObj;
public void onMessage(Message message) {
try{
System.out.println("Message recived ");
if(message instanceof MapMessage) {
System.out.println("This is a instance of MapMessage");
MapMessage mMsg = (MapMessage) message;
long rId = mMsg.getLong("request");
List<Request> rList = ejbObj.getRequestById(new Long(rId));
System.out.println("rList size is " + rList.size());
for(Request r: rList) {
//Does something and print something in logs
System.out.println("Finsihed onMessage");
}catch(Exception e) {
System.out.println(e.getMessage());
} One thing to note here is that getRequestById is another method in the same session bean MSSessionEJB. Can that be the reason for not loading the request from the database when many concurrent request are present? Here is what it does
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public List<Request> getRequestById(Long id) throws Exception {
System.out.println("Inside getRequestById id is " + id);
return em.createNamedQuery("Request.findById")
.setParameter("id", id)
.getResultList();
} In the logs I do see
{color:#800000}*"This is a instance of MapMessage"*{color}
and I do see the correct Rid that was persisted before in the log
*{color:#800000}
"inside getRequestById id is 12"{color}*
. Finally I do see
*{color:#800000}
"Finsihed onMessage"{color}*
for all the request no matter how many are sent concurrently.
*{color:#ff0000}Here is where the problem is . rList size is 1 for most of the cases but it returns 0 when the number of concurrent message exceeds 10.*
*{color}*
So you see there is no exception per se, just that entity does not get loaded from the database. I would like to mention this again, it does work properly when the number of concurrent request are less than 10. All the invocation of onMessage in MB are able to load the entity properly in that case. Its only when the number of concurrent request increases more than 10, the onMessage is unable to load the entity and the rList is 0.
FYI I am using jboss-4.2.2.GA on RedHat enterprise linux 4 with jdk1.6.0_04
Please let me know if there is more information required on this.
Thank you -
Error while creating database - Cannot load backend library 'oci.dll'
Hi all,
I am newbie to Timesten imdb (in memory database). I do not wish to use oracle rdbms.
I have installed the Timesten IMDB on Win2003.
E:\TimesTen\tt70_32\bin>ttVersion.exe
TimesTen Release 7.0.5.0.0 (32 bit NT) (tt70_32:17000) 2008-04-05T00:54:16Z
Instance admin: m4sadm
Instance home directory: e:\TimesTen\tt70_32
Daemon home directory: e:\TimesTen\tt70_32\srv\info
While installing, I followed the viewlet at: [http://www.oracle.com/technology/products/timesten/viewlets/tt70_install_win_viewlet_swf.html]
Now, I am planning to create a database, and so following the viewlet at: [http://www.oracle.com/technology/products/timesten/viewlets/tt70_create_db_win_cc_viewlet_swf.html]
However, when I give the command (according to the viewlet), I get the following error:
Command> select * from v$version;
5102: Cannot load backend library 'oci.dll' for Cache Connect. OS error message '<empty>'.
The command failed.
Can anyone provide pointers to resolve this?I'm guessing you chose No to the install question about using Cache Connect to Oracle? This would cause certain libraries not to be installed at install time, specifically libraries that would enable you to use TimesTen Cache Connect to cache data from Oracle tables.
The table "v$version" that you use in your select
select * from v$version
only exists on an Oracle RDBMS. It doesn't exist on TimesTen. Moreover the second viewlet you refer to is about using the TimesTen Cache Connect feature to cache tables from Oracle RDBMS. If you're not interested in using Oracle RDBMS, as you say, it would be my assumption that you're also not interested in using the TimesTen Cache Connect feature? So I'm a little confused here about your intentions. Are you interested in using TimesTen as a standalone datastore, or do you want to use it to cache data from tables located in an Oracle RDBMS?
Thanks.
Maybe you are looking for
-
i forgot the security questions on my old account so i had to make a new one and i put my $30 voucher on my old account
-
Copying saved iphoto library from external hard drive back to Macbook Pro
Please help, I have accidentally managed to permanently delete my iphoto library and by this I mean that I somehow dragged my library into trash and then emptied it. I don't know how this happend but I quite quickly found out I had done it and shut
-
I have an iphone 4s black 16g. The characters on screen have gone so large that I cannot key in the passcode to access the phone or make a call, can anybody help out? I have tried rebooting, without success.
-
Approval workflow with multiple approvers in sharepoint
Hi All, I have created a sequential workflow using visual studio 2012 for sharepoint 2013. I have multiple approvers for approving a document. I am able to create individual tasks for each approver by code my problem here is tasks should be created b
-
Problem with typecast function
Hi everybody, I have a problem with the typecast function in labview. I want to save my measured data in a binary format, therefore I use the typecast function to convert different data types to the string format. These files should be read in Matlab