UNABLE TO RETRIVE RMS TEMPLATE
HI ,
I install RMS on standalone server
in our file server just we go to file management task and go to action : i find ( cannot retrieve RMS templates )
need suggestions.
MCP MCSA MCSE MCT MCTS CCNA
Hi Yasser,
Here are some related links below for you references:
You cannot use earlier versions of templates in Windows Rights Management Services (RMS) after you upgrade to RMS Server 2003
http://support.microsoft.com/kb/830693
AD RMS Troubleshooting Guide
http://social.technet.microsoft.com/wiki/contents/articles/13130.ad-rms-troubleshooting-guide.aspx
AD RMS Template Problem
https://social.technet.microsoft.com/Forums/en-US/224574c4-599b-4843-b235-f86ac74d03e9/ad-rms-template-problem?forum=rms
Best Regards,
Amy
Similar Messages
-
Unable to retrive Order template in SAP e-commerce 5.0.
Hi All,
I am trying to retrieve the Order template using e-commerce 5.0 backend as SAP 4.7 but i am getting below error in log.
OpenSQLException#Cannot assign an empty string to host variable 13.#com.sap.sql.log.OpenSQLException: Cannot assign an empty string to host variable 13.
Is there any configuration(SQL connectivity) required to retrive the order template?
Please suggest.
Thanks & Regards
Manoj SahooHi Manoj,
It seems there is problem with Database connection or Tables are not maintained in Database.
For Database Connections : There are some defaults settings done at installation process. You can check database connection in Visual Administrator.
Server->Services->JDBC Connector.(If it is maintained then)
check in web.xml of ISA application, whether the same data source name is maintained.
<!-- security settings for administration area -->
<resource-ref>
<res-ref-name>SAP/CRM/b2b</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<!--JDO connection factory lookup name, required-->
<resource-ref>
<res-ref-name>jdo/defaultPMF</res-ref-name>
<res-type>javax.resource.cci.ConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Note: SAP/CRM/b2b is a alias name to datasource maintained in JDBC Connectivity.
If everything is fine, then goto database and check whether tables are maintained in database.
Tables are :
o CRM_ISA_BASKETS
o CRM_ISA_BUSPARTNER
Hope this gives you a fair idea.
Regards,
Devender V -
I am unable to see the created AD RMS Templates office 2010
Hi,
We have a SBS 2011 server (AD, exchange, DNS, ...etc) and a File server 2008 R2.
We installed the AD RMS feature on the File server and created the templates needed.
On AD RMS client (W7):
-We run the task scheduler.
-We create the registry key:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\DRM for office 2010 clients
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\DRM for office 2007clients
On all MS 2007 client hasn't any problems but on all MS 2010 has a problem that: "unable to see the created AD RMS Templates.
Please advise,
Note: I prefer to contact me using my email
[email protected] to acceleratre our communication.Hi,
We need to check the templates in the path: C:\Users\martinr\AppData\Local\Microsoft\DRM\Templates
first.
Then, if you use 32-bit editions of Office running on 64-bit versions of Microsoft Windows,please try the following command:
HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Office\<version>\Common\DRM.
Following this, I recommond do the two methods:
The permission policy path in the ADMX file is setup to use EDITTEXT (Regular Reg_sz), instead of EXPANDABLETEXT (REg_Expand_Sz).
The policy template is setup out of the box expects a static path (i.e. c:\templates, and cannot use %localappdata%\Microsoft\DRM\Templates)
For more detail information, please refer to the following link:
http://technet.microsoft.com/en-us/library/cc179103.aspx
http://technet.microsoft.com/en-us/library/dd772637(v=ws.10).aspx
Here is a similar issue, we could refer to:
http://social.technet.microsoft.com/Forums/en-US/224574c4-599b-4843-b235-f86ac74d03e9/ad-rms-template-problem?forum=rms
Regards,
George Zhao
TechNet Community Support -
Can anyone tell me why I am unable to download a template word doc from webmail onto my mac without it opening in text format? I just need the original document format.
Where to begin... and why would you ask here? (workstation owners)
Places I can think to try, after google of course....
Forum devoted to something like Word / Mactopia or Pages.... whether you are using Office 2011, and no idea what browser or webmail (IMAP, Gmail, other)
And then there really are notebook with subforum for MacBook Pro
Apple Site Map
Apple Support Mail
Apple Support -
Unable to retrive the service details
Good day.
After i've restarted the UCCX mashine,in the control center i have the "Unable to retrive the service details" and "java.lang.Null.pointer.exception" concerning to the recording and statistics service.
But the service itself working properly.
CRS 4.5
What can it be?
What is the solution?Good day.
To say the truth i wasn't able to solve the problem.
I'd no smartnet,so i wasn't able contact TAC.
I've been told,it can be fixed by tracing system variables by Java programmer.
But,i don't know Java at all.
Installing patches and fixes,all avaiable,didn't solve the problem.
So,the system works so since i've opened discussion.
Sorry,but i've no solution for this -
KimaniBob
Is it possible to have AD RMS templates display on OWA (I have Exchange 2010 sp3) and AD RMS 2008 R2?I figured it out.
I used the following link :http://blogs.technet.com/b/ilvancri/archive/2010/07/09/configuring-ad-rms-and-exchange-2010-sp1-beta.aspx
Thanks hope this is helpful to someone else
KimaniBob -
Old AD RMS template still displayed in OWA which were already deleted
Hi,
Currently, I'm having a problem where a deleted template still can be view & select when trying to apply RMS protection. I have checked the template distribution folder & run the Get-RMSTemplate to see whether the template is presented or not (which
is not)
As you can see from the picture above. I have already disabled the rms, still we can see the template. Some of the template listed above have been already deleted & some just come pop in out of no where. Please, i really need some help here. Thanks in
advanceDepending on what version of Exchange this is, you might be able to use:
Set-IrmConfiguraton -RefreshServerCertificates
It sounds like this will refresh the templates as well:
The
RefreshServerCertificates switch clears all
Rights Account Certificates (RACs), Computer Licensor Certificates (CLCs),
and cached AD RMS templates from all Microsoft Exchange Server 2010 or
Exchange Server 2013 servers in the organization. Clearing RACs, CLCs, and
cached templates may be required during troubleshooting or in the event of a
change of keys on the AD RMS cluster in your organization.
I would be careful about actually deleting templates. Preferably you should archive them. If messages actually were protected with those templates and they are deleted, they will be inaccessible. -
Unable to retrive my Nokia Mssg Password
Hi
Am unable to retrive my Nokia msg password. There is no security question displayed when i click forgot password. Do not know why ? Any ideas ? Am unable to configure my email id on my phone. Pls advise.
Shrikant+Tip: New versions of iTunes sometimes include enhancements to the iTunes library. When you open the new version of iTunes, iTunes upgrades your existing library to the new format and places a copy of the old library in the Previous Libraries folder. If everything goes fine during your upgrade to the latest version of iTunes, you can delete the older iTunes Library files.+
Look and see if you have a Previous Libraries folder? -
ImageIcon unable to retrive Image on JVM 1.6!!!
Hello eveybody,
I deployed a desktop JFrame based application using some images.
Actually this app works perfectly on my PC (with JVM 1.5)
Copyiing the jar to another PC with JVM 1.5 I'm unable to retrive ALL images.
code for ImageIcon is this:
icon = new ImageIcon("Excel.png");
1)The same Jar, loaded in a PC works perfect. on the other it's unable to retrieve images (that obviously are packed into the jar...)
2)All the rest of the application works in the right way
do you know why?Hello.
I have the same issue with all our applets.
When tracking TCP/IP traces, I found a difference between JRE 6u06 and 6u11. In both cases, the java plugins asks 3 times for my jar (why ? Don't know). In 6u6, it waits for each transfer to be completed. In 6u11, the first transfer is ok but the second and the third are termintaed by a TCP connection reset and this is followed by a request to MyApplet.class and another to MyApplet/class.class
Is there a new bug in applet loading ?
Thanks for your help.
Consol trace :
charger : classe LEDSEQUENCER.class introuvable.
java.lang.ClassNotFoundException: LEDSEQUENCER.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://192.168.16.200/LEDSEQUENCER/class.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception : java.lang.ClassNotFoundException: LEDSEQUENCER.class -
Rep-0002 : unable to retrive string from report builder message file
rep-0002 : unable to retrive string from report builder message file
i'm using developer/2000 ver 2.1 and my reports running under win95 platform and i'm using client/server techneque, when i start to distribute my reports to my users on their machines i got the above message , and i have to recompile all of my RDF files again on every user machine. this not all my story , but after some period may be 2 months these reports start to give the same message , again i must recompile all my RDF on every user machine.
please if any one have a solution for this mazing problem.
thank you.
[email protected]bogdom and gaben,
I belong to your club too it seems. Though in my case the compilation was required on each database. Report used to work in the only that database in which they were compiled. Connecting to other database used to give this string error. Moreover this problem existed only for those reports in which i had used PL/SQL code in the formula columns. One way to avoid this is by writing all PL/SQL code in a library and call it in the formula column calculations.
null -
Hello, I recently posted this question in both the Azure and Office 365 forums and was referred here. We
are currently using Office 365 and have enabled E3 licenses to use IRM in Office through Azure. We would like to encrypt a lot of documents using the AD RMS Bulk Encryption tool,
however it requires an RMS template. Azure provides two (Confidential, and Confidential Read-only). These work using the tool, but when I try to modify the XML to customize the templates it breaks them and since I don't have access to the AD RMS
MMC I cannot generate my own. Does anyone know how I can make this work?Updating an old thread: Azure RMS now supports customized templates.
Announcement:
http://blogs.technet.com/b/rms/archive/2014/04/03/create-custom-templates-in-azure-rms-with-the-azure-management-portal.aspx
Documentation:
http://technet.microsoft.com/en-us/library/dn642472.aspx -
Specific AD RMS Templates show on Office 2010
Hi,
I've just configured AD RMS running W2012R2.
All Template is showing in all office applications even that templates is for email (i.e. Do not reply - only can forward) or documents (i.e. view and print - only can view and print).
I want to specific a template that shows on office application. in example i want to show only "Do not reply" template on Outlook and only "view and print" Template on Word. I use Microsoft Office 2010 SP2
Can i do that? if there is unable, can you tell me why?
Thanks & Regards
FakhriI'll give you the outlines then you can go ahead
Open the template (XML file) then check the syntax to make it public and change it )
then go to GPO and apply it to the users to need
this is the answer as I thought your question -
Office 2013 - Unable to open word template
Hi,
I have windows service written in VC++ and trying to open a word template xxx.dotx located on the server. however, I am geting below error code while opening the same template. I have written a sample application and it is opening the template.
my windows service is 32 bit and I have installed office 2013 64bit and OS win 7 64bit.
<hr=-2147467259>
working code
#import "MSO.DLL" rename_namespace("MSOFFICE") rename("RGB", "ofRGB") rename("DocumentProperties", "ofDocumentProperties")
#import "VBE6EXT.OLB" rename_namespace("MSVBEXT") rename("Application", "ApplicationVBExt") raw_interfaces_only
#import "msword.olb" rename_namespace("MSWORD") rename("DialogBox", "DialogBoxWRD") rename("RGB", "RGBWRD") rename("DocumentProperties", "DocumentPropertiesWRD") rename("ExitWindows", "ExitWindowsWRD") named_guidsvoid CWordTestDlg::OnButton1()
// TODO: Add your control notification handler code here
MSWORD::_ApplicationPtr m_pWordApp;
HRESULT hr = m_pWordApp.CreateInstance("Word.Application");
if(FAILED(hr))
AfxMessageBox("Unable to start MS Word.", hr);
return;
AfxMessageBox("Successfully Created");
m_pWordApp->DisplayAlerts = MSWORD::wdAlertsNone;
// Make sure the application is not visible.
m_pWordApp->Visible = VARIANT_FALSE;
MSWORD::_DocumentPtr m_pWordDoc = NULL;;
MSWORD::DocumentsPtr pDocs = m_pWordApp->Documents;
if(pDocs == NULL)
AfxMessageBox("Unable to retrieve the documents collection from MS Word.", pDocs);
return;
// Open the template.
CComVariant varTemplateName(_T("\\\\xxx.xxx.xxx.xxx\\kx.dotx"));
m_pWordDoc = pDocs->Open(&varTemplateName);
if(m_pWordDoc == NULL)
CString msg;
msg.Format("Unable to open %s.", _T("\\\\xxx.xxx.xxx.xxx\\kx.dotx"));
AfxMessageBox(msg);
return;
AfxMessageBox("Successfully Opened");
m_pWordApp.Detach();
// Reset the MSWord Document ptr.
m_pWordDoc.Detach();
thanks,
KrishnaHi,
Interop is not supported on a Server or with in a services.
But if you want to this, you have to set up the Environment. I follow this Guideline with my Word and I'm able to start Word on a Server.
1) Goto Control panel -> Administrative Tools -> Component Services
2) Expand Tree by clicking on Component Services -> Computers -> My Computer -> DCOM Config
3) Search CLSId 00020906-0000-0000-C000-000000000046 (which is for Word 97-2003 application)
4) By selecting 00020906-0000-0000-C000-000000000046 this CLSId now right click on Properties
5) In the Propeties area, click on Security TAB
6) Select Customize option from all (Launch and Activations Permissions, Access Pemissions, Configuration Permissions)
7) Take the User of the Services and Allow all permissions for this user
8) Go to Identity TAB in the same properties area, select option as a This user and then add username (the user must be administrator of this machine) and password. Click on Apply, Ok
Locale Profile: True
9) Refresh Component Services and check your application is working fine or not.
10) set Folder, if not present:
C:\Windows\SysWOW64\config\systemprofile\Desktop
This article gives some insights.
http://theether.net/download/Microsoft/kb/288367.html
Hope this helps.
Kind Regards
Thomas -
Unable to retrive the uploaded file in Struts
hi i am getting error while retrieving the uploaded file in struts. The code is
struts-config.xml
===========
<form-bean name="GreivanceForm" type="org.apache.struts.validator.DynaValidatorActionForm" >
<form-property name="compcode" type="java.lang.String" />
<form-property name="complaintName" type="java.lang.String" />
<form-property name="category" type="java.lang.String" />
<form-property name="subcategory" type="java.lang.String" />
<form-property name="priority" type="java.lang.String" />
<form-property name="occdate" type="java.lang.String" />
<form-property name="occtime" type="java.lang.String" />
<form-property name="desc" type="java.lang.String" />
<form-property name="comments" type="java.lang.String" />
<form-property name="onbehalf" type="java.lang.String"/>
<form-property name="employeeId" type="java.lang.String"/>
<form-property name="hidSelectedNames" type="java.lang.String"/>
<form-property name="individual" type="java.lang.String"/>
<form-property name="compOption" type="java.lang.String" />
<form-property name="selectedrequestor" type="java.lang.String" />
<form-property name="file" type="java.lang.String"/>
</form-bean>
<action path="/helpdesk/GrievanceComplaint"
type="com.srit.hrnet.helpdesk.grievancemechanism.GrievanceComplaintAction"
scope="request" name="GreivanceForm"
input=""
validate="true"
parameter="compOption" >
<forward name="success" path="/helpdesk/GrievanceRedressalMechanism/ComplaintDetails.jsp"/>
<forward name="showmeetingform" path="/helpdesk/complaint/MeetingDetailsForm.jsp"/>
<forward name="transconfirm" path="/helpdesk/GrievanceRedressalMechanism/TransConfirm.jsp"/>
<forward name="ViewCompForm" path="/helpdesk/GrievanceRedressalMechanism/ViewCompForm.jsp"/>
</action>
and
Actionclass:
========
* Created on Nov 5, 2004
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
package com.srit.hrnet.helpdesk.grievancemechanism;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.StringTokenizer;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;
import org.apache.struts.action.DynaActionForm;
import org.apache.struts.actions.DispatchAction;
import org.apache.struts.upload.FormFile;
import org.apache.struts.validator.DynaValidatorActionForm;
import org.apache.struts.validator.DynaValidatorForm;
import com.srit.hrnet.components.SequenceCodeGenerator;
import com.srit.hrnet.emp.EmployeeGenTO;
import com.srit.hrnet.emp.courier.CourierMailDAO;
import com.srit.hrnet.emp.courier.CourierMailTO;
import com.srit.hrnet.emp.parameter.ParamMasterTO;
import com.srit.hrnet.helpdesk.SessionValidate;
import com.srit.hrnet.helpdesk.category.CategoryDAO;
import com.srit.hrnet.helpdesk.category.CategoryTO;
import com.srit.hrnet.helpdesk.mails.HDMail;
import com.srit.hrnet.utilities.DateUtilities;
import com.srit.hrnet.helpdesk.complaint.TaskDAO;
import com.srit.hrnet.helpdesk.SessionValidate;
import com.srit.hrnet.helpdesk.grievancemechanism.GrievanceComplaintForm;
public class GrievanceComplaintAction extends DispatchAction{
public ActionForward submitForm(ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse response)throws ServletException,IOException {
String msg=null;
DynaValidatorActionForm objDyna = (DynaValidatorActionForm)form;
GrievanceComplaintDAO gcDao= new GrievanceComplaintDAO();
ActionForward forward = new ActionForward();
// GrievanceComplaintForm gcForm=(GrievanceComplaintForm)form;
String CompId = null;
try
SequenceCodeGenerator seq=new SequenceCodeGenerator("GrievanceMechanism");
CompId=seq.generateCode();
GrievanceComplaintTO gcTO=new GrievanceComplaintTO();
System.out.println("Inside GrievanceComplaintAction ......");
String CompName=request.getParameter("complaintName");
String Category=request.getParameter("category");
String prority=request.getParameter("priority");
String dateofocc=request.getParameter("occdate");
String timeofocc=request.getParameter("occtime");
String desc=request.getParameter("desc");
String comments=request.getParameter("comments");
// String file=request.getParameter("file");
// String complaintcode = .generateCode();
System.out.println("Inside insert()::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::");
System.out.println("Name Of the Complaint name>>>>>>>>>>>>>>"+CompName);
System.out.println("Name Of the Categoryt>>>>>>>>>>>>>>"+Category);
System.out.println("Name Of the prority>>>>>>>>>>>>>>"+prority);
System.out.println("Name Of the dateofocc>>>>>>>>>>>>>>"+dateofocc);
System.out.println("Name Of the timeofocc>>>>>>>>>>>>>>"+timeofocc);
System.out.println("Name Of the desc>>>>>>>>>>>>>>"+desc);
System.out.println("Name Of the comments>>>>>>>>>>>>>>"+comments);
// System.out.println("Name Of the file>>>>>>>>>>>>>>"+file);
GregorianCalendar occdate=DateUtilities.getGCDateForString(objDyna.getString("occdate"),((com.srit.hrnet.emp.EmployeeGenTO)request.getSession().getAttribute("LoginUser")).getDateFormat(),'/');
gcTO.setComplaintCode(CompId);
gcTO.setComplaintName(CompName);
gcTO.setCategory(Category);
gcTO.setPriority(prority);
gcTO.setOccdate(occdate);
System.out.println("After Setting date in GTO is>>>>>>>>>>>>>>"+gcTO.getOccdate());
gcTO.setOcctime(timeofocc);
gcTO.setDesc(desc);
gcTO.setComments(comments);
HDMail mailComp = new HDMail();
String errorFlag = null;
String filePath = ""+objDyna.get("file");// Attachment path
StringTokenizer st=new StringTokenizer(filePath,".");
String extension=null;
// String filename=null;
String attachmentPath = null;
while(st.hasMoreTokens())
extension=st.nextToken();
// while(st1.hasMoreTokens()){
// filename=st1.nextToken();
System.out.println("Attachment path : "+attachmentPath);
System.out.println("Extension is.........."+extension);
// System.out.println("Name of the file is.............."+filename);
if(filePath != null && filePath.indexOf(".") != -1 && filePath.length()>=5 ){// If attachment exists
// attachmentPath = filePath.substring(filePath.indexOf(".")+1,filePath.length());// file extension
//// System.out.println("Attachment path : "+attachmentPath);
if(!extension.equalsIgnoreCase("txt") && !extension.equalsIgnoreCase("htm")
&&!extension.equalsIgnoreCase("doc") &&!extension.equalsIgnoreCase("rtf")
&&!extension.equalsIgnoreCase("msg") &&!extension.equalsIgnoreCase("oft")
&& !extension.equalsIgnoreCase("xls")){
errorFlag = "1"; // if the file is not a valid type (not in the above mentioned extensions)
gcTO.setAttachmentName(filePath);
if(errorFlag.equals("1")){
// String attachmentName = null;
//// String attachmentPath = request.getParameter("agendaAttachment");
// DynaValidatorForm dyna=(DynaValidatorForm)form;
// FormFile file= (FormFile)objDyna.get("file");
// //dyna.get("file");
// System.out.println("Name of the file after casting....."+file.getFileName());
// if(file!=null && file.getFileName()!=null && !file.getFileName().trim().equals("")){
// String fileName = null;
// fileName = file.getFileName();
// attachmentName = fileName;
// if(validFile(fileName))
// writeFile(file,request,fileName);
// else
// ActionMessages errors=new ActionMessages();
// errors.add("Err:MsgDesc",new ActionMessage("com.srit.hrnet.helpdesk.complaint.form.fileupload"));
// saveErrors(request,errors);
//// ActionForward map1 = submitSubCategory(mapping,form,request,response);
// resetToken(request);
// saveToken(request);
// return mapping.findForward("ViewCompForm");
// int recordexists = gcDao.getComplaint(CompId);
// if(recordexists == 1){
// System.out.println("Calling the update method");
// gcDao.updateComplaintDetails(gcTO);
// }else{
boolean retVal=gcDao.insert(gcTO);
if (retVal){
System.out.println("Record Inserted inside Action.");
msg = "<font color='blue'>Record Inserted Successfully .</font>";
request.setAttribute("status", msg);
else{
System.out.println("Unable to insert Record inside Action.");
msg = "<font color='red'>Unable to insert Record .</font>";
request.setAttribute("status", msg);
else
System.out.println("Upload a file of extension(.jpg,.gif,.doc,.htm,.xls,.rtf,oft,msg) inside Action.");
msg = "<font color='red'>Upload a file of extension(.jpg,.gif,.doc,.htm,.xls,.rtf,.oft,.msg) </font>";
request.setAttribute("status", msg);
catch (Exception e) {
// TODO: handle exception
System.out.println("Exception Occurred inside insert action....."+e.getMessage());
e.printStackTrace();
// else
// String insStatus="10";
// System.out.println("Accept:Redirecting due to resubmission");
// request.setAttribute("transStatus",insStatus);
// forward =mapping.findForward("transconfirm");
return mapping.findForward("success");
public boolean validFile(String fileName){
if(!fileName.equals("")){
int filelength=fileName.length();
int sublength= fileName.indexOf('.');
String extension = fileName.substring(sublength+1,filelength);
if(extension.trim().equalsIgnoreCase("msg") || extension.trim().equalsIgnoreCase("txt") || extension.trim().equalsIgnoreCase("xls") || extension.trim().equalsIgnoreCase("ppt") || extension.trim().equalsIgnoreCase("jpg") || extension.trim().equalsIgnoreCase("gif")|| extension.trim().equalsIgnoreCase("doc" )|| extension.trim().equalsIgnoreCase("pdf") || extension.trim().equalsIgnoreCase("wmv") || extension.trim().equalsIgnoreCase("zip") || extension.trim().equalsIgnoreCase("jpeg") || extension.trim().equalsIgnoreCase("xml") || extension.trim().equalsIgnoreCase("html") ||extension.trim().equalsIgnoreCase("bmp") ||extension.trim().equalsIgnoreCase("htm") ||extension.trim().equalsIgnoreCase("ppt")||extension.trim().equalsIgnoreCase("oft")||extension.trim().equalsIgnoreCase("csv")){
return true;
}else{
return false;
return true;
public int writeFile(FormFile file,HttpServletRequest request,String fileName){
int retValue = 0;
String size = (file.getFileSize() + " bytes");
if(file.getFileSize()>0){
//System.out.println("The size of the file is :" + file.getFileSize() + " bytes");
String data = null;
try {
//retrieve the file data
String fileTodelete = request.getRealPath("/helpdesk/meetingsagenda/"+fileName);
boolean success = (new File(fileTodelete)).delete();
//System.out.println("sucess......"+success);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
InputStream stream = file.getInputStream();
//write the file to the file specified
System.out.println("sfsdfkjdsfds "+request.getRealPath("/helpdesk/meetingsagenda/"+fileName));
OutputStream bos = new FileOutputStream(request.getRealPath("/helpdesk/meetingsagenda/"+fileName));
int bytesRead = 0;
byte[] buffer = new byte[8192];
while ((bytesRead = stream.read(buffer, 0, 8192)) != -1) {
bos.write(buffer, 0, bytesRead);
bos.close();
data = "The file has been written to \""+ "/helpdesk/meetingsagenda/"+ "\"";
System.out.println("data........."+data);
//close the stream
stream.close();
}catch(FileNotFoundException fnfe) {
System.out.println("com.srit.hrnet.homepage.fromceo.FromCEOAction.writeFile.Exception :"+ fnfe.toString());
fnfe.printStackTrace();
//retValue = FORMFILE_FILE_NA;
}catch(IOException ioe) {
System.out.println("com.srit.hrnet.homepage.fromceo.FromCEOAction.writeFile.Exception :"+ ioe.toString());
ioe.printStackTrace();
//retValue = FORMFILE_ERR_UPD;
}//end of try catch:~
}else{
//The file was a not available
//retValue = FORMFILE_SIZE_ZERO;
}//end of if else:~
// System.out.println("retValue........."+retValue);
return retValue;
}//end of ComplaintAction
and GrievanceFormTO:(Dummy form bean)
==========
* Created on Nov 4, 2004
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
package com.srit.hrnet.helpdesk.grievancemechanism;
import java.util.GregorianCalendar;
import org.apache.struts.upload.FormFile;
public class GrievanceComplaintTO implements java.io.Serializable {
private String complaintCode;
private String compcode; //complaind Id
private String complaintName;
private String category;
private String priority;
//private GregorianCalendar date;
private FormFile theFile;
private String compOption;
private String desc;
private String comments;
private String status;
private String serviceperson; //employee who is going to serve the complaint.Applicatble only in case of manual flow.
private String loggedEmpId; //the employee who has logged the complaint
private String applyEmpId; //employee to whom the cmplaint belongs to or owner of the complaint
private String associateComm;
private String associateRating;
private GregorianCalendar occdate;
private String occtime;
private String attachmentName;
public String getApplyEmpId() {
return applyEmpId;
public void setApplyEmpId(String applyEmpId) {
this.applyEmpId = applyEmpId;
public String getAssociateComm() {
return associateComm;
public void setAssociateComm(String associateComm) {
this.associateComm = associateComm;
public String getAssociateRating() {
return associateRating;
public void setAssociateRating(String associateRating) {
this.associateRating = associateRating;
public String getCategory() {
return category;
public void setCategory(String category) {
this.category = category;
public String getComments() {
return comments;
public void setComments(String comments) {
this.comments = comments;
public String getCompcode() {
return compcode;
public void setCompcode(String compcode) {
this.compcode = compcode;
public String getComplaintName() {
return complaintName;
public void setComplaintName(String complaintName) {
this.complaintName = complaintName;
public String getCompOption() {
return compOption;
public void setCompOption(String compOption) {
this.compOption = compOption;
public String getDesc() {
return desc;
public void setDesc(String desc) {
this.desc = desc;
public String getLoggedEmpId() {
return loggedEmpId;
public void setLoggedEmpId(String loggedEmpId) {
this.loggedEmpId = loggedEmpId;
public String getOcctime() {
return occtime;
public void setOcctime(String occtime) {
this.occtime = occtime;
public String getPriority() {
return priority;
public void setPriority(String priority) {
this.priority = priority;
public String getServiceperson() {
return serviceperson;
public void setServiceperson(String serviceperson) {
this.serviceperson = serviceperson;
public String getStatus() {
return status;
public void setStatus(String status) {
this.status = status;
public String getComplaintCode() {
return complaintCode;
public void setComplaintCode(String complaintCode) {
this.complaintCode = complaintCode;
public void setOccdate(GregorianCalendar occdate) {
this.occdate = occdate;
public GregorianCalendar getOccdate() {
return occdate;
public String getAttachmentName() {
return attachmentName;
public void setAttachmentName(String attachmentName) {
this.attachmentName = attachmentName;
public FormFile getTheFile() {
return theFile;
public void setTheFile(FormFile theFile) {
this.theFile = theFile;
but i am getting error
javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:497)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:798)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:205)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.srit.hrnet.filter.SessionValidateFilter.doFilter(SessionValidateFilter.java:81)
root cause
org.apache.commons.beanutils.ConversionException: Cannot assign value of type 'org.apache.struts.upload.CommonsMultipartRequestHandler$CommonsFormFile' to property 'file' of type 'java.lang.String'
org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:424)
org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1733)
org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648)
org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677)
org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022)
org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:798)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:205)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.srit.hrnet.filter.SessionValidateFilter.doFilter(SessionValidateFilter.java:81)
and my jsp is:
=========
<%@ page language="java" %>
<%@ taglib uri="struts-bean" prefix="bean" %>
<%@ taglib uri="struts-html" prefix="html" %>
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="TabGenerator" prefix="GenerateTab" %>
<%@ page import="com.srit.hrnet.utilities.DateUtilities"%>
<%@ page import="com.srit.hrnet.components.BasicDAOConstants" %>
<%@ taglib uri="AccessLogin" prefix="GeneralAccess" %>
<%@ taglib uri="iterateTag" prefix="iterateTag" %>
<%@ page import="com.srit.hrnet.components.BasicDAOConstants,com.srit.hrnet.emp.EmployeeGenTO,com.srit.hrnet.helpdesk.grievancemechanism.*"%>
<%@ page import="com.srit.hrnet.tags.*"%>
<html:html locale="true">
<HEAD>
<TITLE>
<bean:message key="com.srit.hrnet.helpdesk.complaint.form.title"/>
</TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<link rel="stylesheet" type="text/css" href="<%= (session.getAttribute("LoginUser") != null ?
((com.srit.hrnet.emp.EmployeeGenTO)session.getAttribute("LoginUser")).getEmpPageStyleSheet() :
com.srit.hrnet.components.access.AccessCodes.GLOBAL_STYLESHEET)%>">
<script language="javaScript" src="<%= request.getContextPath()%>/jscript/GlobalValidationScript.js" purpose="include"></script>
<%
int dateFormat = (session.getAttribute("LoginUser") != null ? ((com.srit.hrnet.emp.EmployeeGenTO)session.getAttribute("LoginUser")).getDateFormat() : 2);
System.out.println("/reports/training/TRngBaseReport dateFormat = "+dateFormat);
/* *** get the current date *** */
java.util.GregorianCalendar gc1 = new java.util.GregorianCalendar();
int yy = gc1.get(java.util.Calendar.YEAR);
int mm = gc1.get(java.util.Calendar.MONTH);
int dd = gc1.get(java.util.Calendar.DATE);
mm = mm + 1;
String mon;
String day;
if(dd <= 9)
day = "0" + java.lang.String.valueOf(dd);
else
day = java.lang.String.valueOf(dd);
if(mm <= 9)
mon = "0" + java.lang.String.valueOf(mm);
else
mon = java.lang.String.valueOf(mm);
java.lang.String currentDate = "";
if(dateFormat == 3){
currentDate = java.lang.String.valueOf(yy+"/"+mon+"/"+day);/* (yyy-mm-dd format) */
}else if(dateFormat == 1){
currentDate = java.lang.String.valueOf(mon+"/"+day+"/"+yy);/* (mm-dd-yyy format) */
}else if(dateFormat == 2){
currentDate = java.lang.String.valueOf(day+"/"+mon+"/"+yy);/* (dd-mm-yyy format) */
System.out.println("/reports/training/TRngBaseReport currentDate = "+currentDate);
%>
<script language="javaScript" src="<%= (session.getAttribute("LoginUser")!=null ? ((com.srit.hrnet.emp.EmployeeGenTO)session.getAttribute("LoginUser")).getScriptFile() : "")%>" purpose="include"></script>
<script language="javaScript" src="jscript/CommonDialog.js" purpose="include"></script>
<script language="javaScript" src="jscript/GlobalValidationScript.js"></script>
<script language="javascript">
var gNow = new Date("<%=currentDate%>");
function val_complaint()
if(document.GreivanceForm.complaintName.value.length==0)
alert("Enter Complaint Name");
document.GreivanceForm.complaintName.focus();
return false;
if(document.GreivanceForm.category.value =='NA')
alert("select category");
document.GreivanceForm.category.focus();
return false;
if(document.GreivanceForm.priority.value == 'NA')
alert("select priority");
document.GreivanceForm.priority.focus();
return false;
if(document.GreivanceForm.occdate.value == "")
alert("Enter Date (dd/mm/yy)");
document.GreivanceForm.occdate.focus();
return false;
else
if(document.GreivanceForm.occdate.value>document.GreivanceForm.currentDate.value){
alert("select Previous or Current date");
document.GreivanceForm.occdate.focus();
return false;
if(document.GreivanceForm.occtime.value == "")
alert("Select Time of Occurence.");
document.GreivanceForm.occtime.focus();
return false;
else
if(!IsValidTime(document.GreivanceForm.occtime.value) )
alert("Enter Valid Time (HH:MM)");
return false;
if(document.GreivanceForm.desc.value == "")
alert("Enter Description");
document.GreivanceForm.desc.focus();
return false;
document.forms[0].compOption.value='submitForm';
document.forms[0].submit();
return false;
function IsValidTime(givenTime)
var hour = 0;
var minute = 0;
var timePat = /^(\d{1,2}):(\d{1,2})?$/;
var matchArray = givenTime.match(timePat);
if (matchArray == null)
alert("Enter Valid Time.");
return false;
hour = matchArray[1];
minute = matchArray[2];
if(hour==0 && minute==0)
alert("The Time You Entered is 0:0");
return false;
if (hour < 0 || hour > 23)
alert("Hour must be between 0 and 23");
return false;
if (minute<0 || minute > 59)
alert ("Minute must be between 0 and 59.");
return false;
return true;
unction help(url)
var attributes = 'menubar=no,toolbar=no,location=no,width=625,height=375,resizable=yes';
var name = 'Help';
window.open(url,name,attributes);
//return false;
</script>
<script language = "javaScript" src = "<%=request.getContextPath()%>/jscript/CommonDialog.js" purpose = "include"></script>
</HEAD>
<body bgcolor="#FFFFFF" onload="setFocus()">
<GenerateTab:displaytabs tabId="<%=com.srit.hrnet.masters.gui.GUIConstants.HD_GRIEVANCE_REDRESSAL_FORM%>" activeSubTab="0" >
<table align="right">
<tr>
<td>
<img src="<%=request.getContextPath()%>/images/help.gif" border="0" alt="Help">
</td>
</tr>
</table>
<html:form action="/helpdesk/GrievanceComplaint" enctype="multipart/form-data" method="POST" onsubmit="javascript:return val_complaint()">
<html:hidden property="compOption" value="submitForm" />
<html:hidden property="onbehalf"/>
<html:hidden property="employeeId"/>
<html:hidden property="hidSelectedNames"/>
<html:hidden property="selectedrequestor"/>
<html:hidden property="individual"/>
<table cellpadding="3" cellspacing="0" align="center" >
<th align="center" class="tablehead" colspan="2">
<b> Complaint Form </b>
</th>
<tr>
<td colspan="1" class='tablesubhead'>
<b><bean:message key="com.srit.hrnet.helpdesk.redressal.form.complaintname"/></b><font class="star"> *</font>
</td>
<td class='subhead'>
<html:text property="complaintName" maxlength="99"/>
</td>
</tr>
<tr>
<td class='tablesubhead' colspan="1"><b><bean:message key="com.srit.hrnet.helpdesk.redressal.form.category"/></b>
<font class="star">*</font></td>
<td class="tableright" property="category" >
<iterateTag:iterate propertyName='<%=IterateInterface.ITERATE_HELPDESK_GRIEVANCE_CATEGORY%>' defaultSelected='<%=request.getAttribute("category")==null?null:""+request.getAttribute("category")%>' selectSize='<%=100%>' tabInd='<%="3"%>'>
</iterateTag:iterate>
</td>
</tr>
<tr>
<td class='tablesubhead' colspan="1"><b><bean:message key="com.srit.hrnet.helpdesk.redressal.form.priority"/></b>
<font class="star">*</font></td>
<td class="subhead">
<iterateTag:iterate propertyName='<%=IterateInterface.ITERATE_HELPDESK_GRIEVANCE_PRIORITY%>' defaultSelected='<%=request.getAttribute("priority")==null?null:""+request.getAttribute("priority")%>' selectSize='<%=100%>' tabInd='<%="3"%>'>
</iterateTag:iterate>
</td>
</tr>
<tr>
<td class='tablesubhead' colspan=1><b>Date of Occurence</b>
<font class="star">*</font> </td>
<td class="subhead">
<html:text name="GreivanceForm" property="occdate" maxlength="10"/>
<input type="hidden" name="currDate" />
<img src="<%= request.getContextPath()%>/images/calendar.jpg" border="0" alt="Calendar" >
</td>
</tr>
<tr>
<td class='tablesubhead' colspan=1><b>Time of Occurence</b>
<font class="star">*</font></td>
<td class="subhead">
<html:text name="GreivanceForm" property="occtime" maxlength="10"/> (24 Hrs format)</td>
</tr>
<tr>
<td class="tablesubhead" colspan=1>
<b>Description</b>
<font class="star">*</font></td>
<td class="subhead">
<html:textarea property="desc" styleClass="formObject" cols="40" rows="4"></html:textarea>
</td>
</tr>
<tr>
<td class="tablesubhead" colspan=1>
<b>Comments/Suggestions</b>
</td>
<td class="subhead">
<html:textarea property="comments" styleClass="formObject" value="" cols="40" rows="4"></html:textarea>
</td>
</tr>
<tr>
<td class="tableleft">
<b><bean:message key="com.srit.hrnet.helpdesk.redressal.form.attachment"/> </b>
</td>
<td class="tableright">
<html:file property="file" size="18" />
</td>
</tr>
<tr>
<td colspan="2" align="center" class="tablesubhead">
<input type="submit" class="submit" value="Submit" >
<html:reset property="reset" styleClass="submit" />
</td>
</tr>
</table>
<input type="hidden" name="currentDate" value="<%=currentDate%>">
</html:form>
</GenerateTab:displaytabs>
<html:javascript formName="/SubmitComplaint"/>
</body>
</html:html>
please help me..VAS_MS wrote:
please help me..First help yourself by posting a clear question
You have far to much code posted and without the use of the correct code tags its almost unreadable.
You have a question about uplaoding files with Struts then get rid of all the junk in your code thats not related to uploading files.
If you have an error then post the relevant information on the error
like
org.apache.commons.beanutils.ConversionException:
Cannot assign value of type 'org.apache.struts.upload.CommonsMultipartRequestHandler$CommonsFormFile' to property 'file' of type 'java.lang.String'
org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:424)If you had posted only that you would have given enough information, that error says it all you are trying to put your file into a String and its not working.
reread the tutorial/documentation provided and try again
Edited by: pgeuens on 21-mrt-2008 8:04 -
Outlook Integration: unable to create snapshot templates.
Dear all,
I followed all the steps mentioned in note 861055
"You can easily repeat the step of template creation after running the server installation:
1. Start the Addon Outlook Integration from Business one.
2. Choose/Administration/Outlook Integration/Define Snapshot Templates
3. Select "Create Default Templates" from the "Goto" menu. This will repeat the procedure that could not be started because of the missing layout files."
But when I choose "Create Default Templates" nothing happens...
I'm using SBO 2005A SP01 PL31 and Outlook Integration PL60.
Also, what's the difference between the OIStandAlone and the OutlookIntegration files?
Best Regards,
Vítor
Message was edited by:
Vitor VieiraHello,
This issue is really interesting, I really desperate to install it. I read the note and find out that server installation must be run before initialisation of addon in the client workstation. Initialisation means addon registration. I just think the template will be created in the client workstation if the server installation has run. Both must be run. But here the explanation I've got from pdf file :
Template Layout Files for Microsoft Outlook Integration Snapshots
The SAP Business One Add-On Server Installer copies the template layout files for snapshots in the following subfolder in <B1DIR>: B1_SHR\AddOn\Microsoft Outlook Integration\Templates\Default. However, if the SAP Business One 2005 SP01 application is not a new installation but an upgrade, the name of the subfolder is the same as for SAP Business One 2004.
In the Default folder, there are language-specific folders for all templates. After you complete the registration of the Microsoft Outlook add-on on your server and begin the initialization in a company database from a client, the add-on creates default templates for the current language of the company to which you are logged on. These default layout files are also stored in <B1DIR> in the following subfolder: B1_SHR\AddOn\Microsoft Outlook Integration\Templates\<name of company database>\Default. When you later use the add-on to create additional default templates (by using the Create Default Templates function of the add-on), your default templates are also stored in: B1_SHR\AddOn\Microsoft Outlook Integration\Templates\<name of company database>\Default.
However, if the application is unable to locate this folder or the folder cannot be created, a selection window will allow you to select a different location. This path will be stored in the company settings of the Microsoft Outlook Integration add-on and can be changed by you. The default layout files for the company are copied to the Default subfolder of the folder you select.
The OIStandalone is a standalone installer for the Microsoft Outlook Integration add-on. This tool allows you to install the add-on without having to install the SAP Business One client on your PC. The alternative installer is appropriate for scenarios in which the SAP Business One client is not installed on the same PC as Microsoft Outlook. An example of such a scenario is the use of the Terminal Server for SAP Business One.
If you have tried, let me know the result.
Rgds,
Maybe you are looking for
-
This has happened before to me, and, it's very frustrating. I can't use Bridge. I just get the message "Adobe Bridge has stopped working." My Event Viewer shows that it crashed, but, the message is just a bunch of hex codes that mean nothing to me. T
-
Installing and Using Logic Studio and Final Cut Studio 2 On the Same iMac
In March of this year, I switched from being a long-time user of PC's to a 24 in. 2.4 GHZ iMac. In late May I purchased Final Cut Studio 2 and Aperture and have greatly enjoyed using both of these applications on my iMac. Both run with no problems un
-
Hi, I have the following setup: Service Provider connected to SLM2008 port 2 SLM2008 connected to SG300-20 using LAG2 SG300-20 connected to SG200-08 using LAG1 SG200-08 port 1 connected to PC I have configured VLAN 4 to isolate this (port-to-port) t
-
How to display O365 image in Win 8 App?
I'm developing a win 8 app with Javascript and WinRT Component. I have get an O365 image's url from WinRT Component and now want to display it on html page by Javascript. But it always a "X"... BTW, if I display an image from domain SharePoint site,
-
Hi, I'm trying to apply filters to my users in Shared Services. I'm using version 9.3.1. I set a user as Filter for one database in provisioning, but then under Application Groups /Analytic Services/<DBname>/Assign access control, my user is not in t