OpenEMM 2015 image preview and upload content manager
Moderator: moderator
OpenEMM 2015 image preview and upload content manager
I have installed openEMM 2015 and its working fine except one thing.
The preview of images in content manager is not working. it shows as a not found image. Also when I try to upload image using
<img src="[agnIMAGE name="Number-1.png"]" alt="Number-1.png">
I am getting an error screen
"Error occurred.
An unexpected error occurred. Please contact our support team."
The size of the image is just 15kb.
I am using version OpenEMM 2015 RC3
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
and
Using CATALINA_BASE: /opt/openemm/apache-tomcat-7.0.59
Using CATALINA_HOME: /opt/openemm/apache-tomcat-7.0.59
Using CATALINA_TMPDIR: /opt/openemm/apache-tomcat-7.0.59/temp
Using JRE_HOME: /usr
Using CLASSPATH: /opt/openemm/apache-tomcat-7.0.59/bin/bootstrap.jar:/opt/openemm/apache-tomcat-7.0.59/bin/tomcat-juli.jar
Server version: Apache Tomcat/7.0.59
Server built: Jan 28 2015 15:51:10 UTC
Server number: 7.0.59.0
OS Name: Linux
OS Version: 2.6.32-504.8.1.el6.x86_64
Architecture: amd64
JVM Version: 1.8.0_31-b13
JVM Vendor: Oracle Corporation
Can anyone please help me debug this.
The preview of images in content manager is not working. it shows as a not found image. Also when I try to upload image using
<img src="[agnIMAGE name="Number-1.png"]" alt="Number-1.png">
I am getting an error screen
"Error occurred.
An unexpected error occurred. Please contact our support team."
The size of the image is just 15kb.
I am using version OpenEMM 2015 RC3
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
and
Using CATALINA_BASE: /opt/openemm/apache-tomcat-7.0.59
Using CATALINA_HOME: /opt/openemm/apache-tomcat-7.0.59
Using CATALINA_TMPDIR: /opt/openemm/apache-tomcat-7.0.59/temp
Using JRE_HOME: /usr
Using CLASSPATH: /opt/openemm/apache-tomcat-7.0.59/bin/bootstrap.jar:/opt/openemm/apache-tomcat-7.0.59/bin/tomcat-juli.jar
Server version: Apache Tomcat/7.0.59
Server built: Jan 28 2015 15:51:10 UTC
Server number: 7.0.59.0
OS Name: Linux
OS Version: 2.6.32-504.8.1.el6.x86_64
Architecture: amd64
JVM Version: 1.8.0_31-b13
JVM Vendor: Oracle Corporation
Can anyone please help me debug this.
-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Re: OpenEMM 2015 image preview and upload content manager
At first: RC3 is a release candidate. You should use the final version of OpenEMM 2015.
Please have a look at Tomcat's log catalina.out. It should provide more info about the error.
Please have a look at Tomcat's log catalina.out. It should provide more info about the error.
OpenEMM Maintainer
Re: OpenEMM 2015 image preview and upload content manager
Okay so should I follow the update.txt.
This is what I see in the log file
Caused by: java.lang.NoSuchMethodException: Unknown property 'cm' on class 'class org.agnitas.cms.web.forms.ContentModuleForm'
at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1313)
at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:762)
at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:837)
at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyType(PropertyUtilsBean.java:1173)
at org.apache.commons.beanutils.PropertyUtils.getPropertyType(PropertyUtils.java:564)
at org.apache.struts.util.RequestUtils.rationalizeMultipleFileProperty(RequestUtils.java:504)
This is what I see in the log file
Caused by: java.lang.NoSuchMethodException: Unknown property 'cm' on class 'class org.agnitas.cms.web.forms.ContentModuleForm'
at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1313)
at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:762)
at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:837)
at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyType(PropertyUtilsBean.java:1173)
at org.apache.commons.beanutils.PropertyUtils.getPropertyType(PropertyUtils.java:564)
at org.apache.struts.util.RequestUtils.rationalizeMultipleFileProperty(RequestUtils.java:504)
-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Re: OpenEMM 2015 image preview and upload content manager
This is a bug of RC3 because we updated to the EOF release of Struts 1.3.10 which behaved differently from 1.3.8. Please use the final release of OpenEMM 2015.
OpenEMM Maintainer
Re: OpenEMM 2015 image preview and upload content manager
Thank You
Updated to OpenEMM 2015 final release and everything is fine now.
Updated to OpenEMM 2015 final release and everything is fine now.
-
- Posts: 12
- Joined: Sat May 30, 2015 3:03 am
Re: OpenEMM 2015 image preview and upload content manager
How can you tell if your installation is the final release?
Is this the final release?
OpenEMM-2015-bin.tar.gz 2015-02-23
Does the admin panel show any version number to confirm the release installed?
Is this the final release?
OpenEMM-2015-bin.tar.gz 2015-02-23
Does the admin panel show any version number to confirm the release installed?
-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Re: OpenEMM 2015 image preview and upload content manager
Yes, this is the final release.
OpenEMM Maintainer
Re: OpenEMM 2015 image preview and upload content manager
I am facing an issue now
when trying to use webservices I am getting an error "Could not connect to host"
when I try to run ./EmmSoapClient.sh
i get error
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at org.agnitas.webservice.EmmSoapClient.<clinit>(EmmSoapClient.java:35)
also
./EmmCreateWSDL.sh -o ws.wsdl -l "http://localhost/:8080/emm_webservice" -n "urn:agnitas-webservice" -w ALL org.agnitas.webservice.EmmWebService_Port
is creating the ws.wsdl
anyone know how to solve this ?
when trying to use webservices I am getting an error "Could not connect to host"
when I try to run ./EmmSoapClient.sh
i get error
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at org.agnitas.webservice.EmmSoapClient.<clinit>(EmmSoapClient.java:35)
also
./EmmCreateWSDL.sh -o ws.wsdl -l "http://localhost/:8080/emm_webservice" -n "urn:agnitas-webservice" -w ALL org.agnitas.webservice.EmmWebService_Port
is creating the ws.wsdl
anyone know how to solve this ?
-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Re: OpenEMM 2015 image preview and upload content manager
The old webservices will be removed in the next version of OpenEMM, you should use the WS2 API instead. You can find the documentation here:
https://sourceforge.net/projects/openem ... rsions%29/
https://sourceforge.net/projects/openem ... rsions%29/
OpenEMM Maintainer
Re: OpenEMM 2015 image preview and upload content manager
Thank You
I have changed my wsdl file based on the new api
As in the example file I executed code
===============================================
include("WSSESoapClient.php");
// URL of the WSDL document. Modify that for your environment
$wsdlURL = "http://localhost:8080/openemm-ws/emmservices.wsdl";
// Your authentication information
$username = "set your username here";
$password = "set your password here";
// Create new SOAP client
$client = new WsseSoapClient( $wsdlURL, $username, $password);
// Example: Retrieve list of all available webservices
var_dump( $client->__getFunctions()); This is working
// Example: Retrieve list of all mailings
var_dump( $client->ListMailings());
====================================================
The error that I get now is :
com.sun.xml.wss.impl.WssSoapFaultException: Authentication of Username Password Token Failed; nested exception is com.sun.xml.wss.XWSSecurityException: com.sun.xml.wss.impl.WssSoapFaultException: Authentication of Username Password Token Failed
I am using the username and password from table
"ws_admin_tbl"
not sure where the issue is
I have changed my wsdl file based on the new api
As in the example file I executed code
===============================================
include("WSSESoapClient.php");
// URL of the WSDL document. Modify that for your environment
$wsdlURL = "http://localhost:8080/openemm-ws/emmservices.wsdl";
// Your authentication information
$username = "set your username here";
$password = "set your password here";
// Create new SOAP client
$client = new WsseSoapClient( $wsdlURL, $username, $password);
// Example: Retrieve list of all available webservices
var_dump( $client->__getFunctions()); This is working
// Example: Retrieve list of all mailings
var_dump( $client->ListMailings());
====================================================
The error that I get now is :
com.sun.xml.wss.impl.WssSoapFaultException: Authentication of Username Password Token Failed; nested exception is com.sun.xml.wss.XWSSecurityException: com.sun.xml.wss.impl.WssSoapFaultException: Authentication of Username Password Token Failed
I am using the username and password from table
"ws_admin_tbl"
not sure where the issue is

-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Re: OpenEMM 2015 image preview and upload content manager
ws_admin_tbl is used by WS1, webservice_user_tbl is used by WS2. You can find a documentation of the OpenEMM database schema in the Extension Development Guide.
OpenEMM Maintainer
Re: OpenEMM 2015 image preview and upload content manager
Thank You
WS2 working fine now
WS2 working fine now

Re: OpenEMM 2015 image preview and upload content manager
Hi
Can you please let me know why this function is mentioned as EMM only
MailingSummaryStatisticJob (EMM only)
I would like to use it if possible in my OpenEmm 2015
Can you please let me know why this function is mentioned as EMM only
MailingSummaryStatisticJob (EMM only)
I would like to use it if possible in my OpenEmm 2015
-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Re: OpenEMM 2015 image preview and upload content manager
It is only part of the code of the commercial tool EMM because the mailing statistics use a different database schema in EMM opposed to OpenEMM.
OpenEMM Maintainer
Re: OpenEMM 2015 image preview and upload content manager
Hi
Thank You for all your help going very good with the api so for. But I am stuck with the content Manager api
I am using this file /cms_services/RemoteContentModuleManager?wsdl
but when trying to use the code below(PHP)
I am always getting the below error
org.xml.sax.SAXException: No deserializer for {http://www.w3.org/2001/XMLSchema}anyType
also just tried
new SoapVar($mailingId, XSD_INTEGER, "integer", "http://www.w3.org/2001/XMLSchema")
now the error is
java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Integer
Thank You for all your help going very good with the api so for. But I am stuck with the content Manager api
I am using this file /cms_services/RemoteContentModuleManager?wsdl
but when trying to use the code below(PHP)
Code: Select all
$newmailins = [];
foreach ($mailingIds as $mailingId){
$newmailins[] = new SoapVar( $mailingId , XSD_ANYTYPE , SOAP_ENC_OBJECT , "http://www.w3.org/2001/XMLSchema" );
}
$result = $client->addMailingBindings( 382 , $newmailins );
org.xml.sax.SAXException: No deserializer for {http://www.w3.org/2001/XMLSchema}anyType
also just tried
new SoapVar($mailingId, XSD_INTEGER, "integer", "http://www.w3.org/2001/XMLSchema")
now the error is
java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Integer