I'm encountering this error:
Caused by: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
C:\Users\ASUS\.gradle\caches\transforms-2\files-2.1\fbc90cfd248703a7e0db4d61153601cb\res\values\values.xml:14:5-370: AAPT: error: duplicate value for resource 'attr/layout_scrollFlags' with config ''.
C:\Users\ASUS\.gradle\caches\transforms-2\files-2.1\fbc90cfd248703a7e0db4d61153601cb\res\values\values.xml:14:5-370: AAPT: error: resource previously defined here.
C:\Users\ASUS\.gradle\caches\transforms-2\files-2.1\fbc90cfd248703a7e0db4d61153601cb\res\values\values.xml:15:5-180: AAPT: error: duplicate value for resource 'attr/behavior_peekHeight' with config ''.
C:\Users\ASUS\.gradle\caches\transforms-2\files-2.1\fbc90cfd248703a7e0db4d61153601cb\res\values\values.xml:15:5-180: AAPT: error: resource previously defined here.
C:\Users\ASUS\.gradle\caches\transforms-2\files-2.1\dc61720a1def28041d1d315e107b6600\res\values\values.xml:142:5-149:95: AAPT: error: duplicate value for resource 'attr/layout_collapseMode' with config ''.
C:\Users\ASUS\.gradle\caches\transforms-2\files-2.1\dc61720a1def28041d1d315e107b6600\res\values\values.xml:142:5-149:95: AAPT: error: resource previously defined here.
C:\Users\ASUS\.gradle\caches\transforms-2\files-2.1\fbc90cfd248703a7e0db4d61153601cb\res\values\values.xml:19:5-827: AAPT: error: duplicate value for resource 'attr/layout_anchorGravity' with config ''.
C:\Users\ASUS\.gradle\caches\transforms-2\files-2.1\fbc90cfd248703a7e0db4d61153601cb\res\values\values.xml:19:5-827: AAPT: error: resource previously defined here.
I don't know what are duplicated in my values.xml file. Here are the lines that is mentioned:
<declare-styleable name="AppBarLayout_LayoutParams"><attr name="layout_scrollFlags"><flag name="scroll" value="0x1"/><flag name="exitUntilCollapsed" value="0x2"/><flag name="enterAlways" value="0x4"/><flag name="enterAlwaysCollapsed" value="0x8"/><flag name="snap" value="0x10"/></attr><attr format="reference" name="layout_scrollInterpolator"/></declare-styleable>
<declare-styleable name="BottomSheetBehavior_Params"><attr format="dimension" name="behavior_peekHeight"/><attr format="boolean" name="behavior_hideable"/></declare-styleable>
<declare-styleable name="CollapsingAppBarLayout_LayoutParams"><attr name="layout_collapseMode"><enum name="none" value="0"/><enum name="pin" value="1"/><enum name="parallax" value="2"/></attr><attr format="float" name="layout_collapseParallaxMultiplier"/></declare-styleable>
<declare-styleable name="CollapsingToolbarLayout"><attr format="dimension" name="expandedTitleMargin"/><attr format="dimension" name="expandedTitleMarginStart"/><attr format="dimension" name="expandedTitleMarginTop"/><attr format="dimension" name="expandedTitleMarginEnd"/><attr format="dimension" name="expandedTitleMarginBottom"/><attr format="reference" name="expandedTitleTextAppearance"/><attr format="reference" name="collapsedTitleTextAppearance"/><attr format="color" name="contentScrim"/><attr format="color" name="statusBarScrim"/><attr format="reference" name="toolbarId"/><attr name="collapsedTitleGravity"><flag name="top" value="0x30"/><flag name="bottom" value="0x50"/><flag name="left" value="0x03"/><flag name="right" value="0x05"/><flag name="center_vertical" value="0x10"/><flag name="fill_vertical" value="0x70"/><flag name="center_horizontal" value="0x01"/><flag name="center" value="0x11"/><flag name="start" value="0x00800003"/><flag name="end" value="0x00800005"/></attr><attr name="expandedTitleGravity"><flag name="top" value="0x30"/><flag name="bottom" value="0x50"/><flag name="left" value="0x03"/><flag name="right" value="0x05"/><flag name="center_vertical" value="0x10"/><flag name="fill_vertical" value="0x70"/><flag name="center_horizontal" value="0x01"/><flag name="center" value="0x11"/><flag name="start" value="0x00800003"/><flag name="end" value="0x00800005"/></attr><attr format="boolean" name="titleEnabled"/><attr name="title"/></declare-styleable>
<declare-styleable name="CoordinatorLayout"><attr format="reference" name="keylines"/><attr format="reference" name="statusBarBackground"/></declare-styleable>
<declare-styleable name="CoordinatorLayout_LayoutParams"><attr name="android:layout_gravity"/><attr format="string" name="layout_behavior"/><attr format="reference" name="layout_anchor"/><attr format="integer" name="layout_keyline"/><attr name="layout_anchorGravity"><flag name="top" value="0x30"/><flag name="bottom" value="0x50"/><flag name="left" value="0x03"/><flag name="right" value="0x05"/><flag name="center_vertical" value="0x10"/><flag name="fill_vertical" value="0x70"/><flag name="center_horizontal" value="0x01"/><flag name="fill_horizontal" value="0x07"/><flag name="center" value="0x11"/><flag name="fill" value="0x77"/><flag name="clip_vertical" value="0x80"/><flag name="clip_horizontal" value="0x08"/><flag name="start" value="0x00800003"/><flag name="end" value="0x00800005"/></attr></declare-styleable>
<declare-styleable name="CollapsingToolbarLayout_Layout"><attr name="layout_collapseMode">
I'm using FloatingActionButton and TextInputLayout in one of my xml files
AAPT: error: duplicate value for resource 'attr/layout_scrollFlags' with config ''.
AAPT: error: resource previously defined here.
AAPT: error: duplicate value for resource 'attr/behavior_peekHeight' with config ''.
AAPT: error: resource previously defined here.
AAPT: error: duplicate value for resource 'attr/layout_collapseMode' with config ''.
AAPT: error: resource previously defined here.
AAPT: error: duplicate value for resource 'attr/layout_anchorGravity' with config ''.
AAPT: error: resource previously defined here.
Try building your project again, because my error output stated only 2 duplicates.
This suggests that you've defined duplicate attributes in your values.xml file.
Here are some duplicates I found:
For layout_collapseMode:
<declare-styleable name="CollapsingAppBarLayout_LayoutParams">
<attr name="layout_collapseMode">
<enum name="none" value="0"/>
<enum name="pin" value="1"/>
<enum name="parallax" value="2"/>
</attr>
<attr format="float" name="layout_collapseParallaxMultiplier"/>
</declare-styleable>
and
<declare-styleable name="CollapsingToolbarLayout_Layout">
<attr name="layout_collapseMode"> <!--Why is this here??-->
<!--Should be like this:-->
<declare-styleable name="CollapsingToolbarLayout_Layout">
<attr name="layout_collapseMode"/>
</declare-styleable>
For layout_anchorGravity:
The new versions of ConstraintLayouts already define layout_anchorGravity
Related
I'm trying to create an API from a WSDL and currently getting this error back from Azure APIM during the import step:
Error: Parsing error : Line 17, position 22: Unable to import API from WSDL: Undefined
complexType 'http://schemas.xmlsoap.org/soap/encoding/:Array' is used as a base for
complex type restriction.
I'm gathering that the Array type is not WSI-compliant, but would love insight as to how I can tinker with the WSDL to make it work? I don't own the service which generated the WSDL, but the WSDL hasn't changed since it was incepted and the provider has said it's okay for us to mess with it to get the Azure APIM import step to work. Just meaning, since Azure APIM's a passthrough what can I slice out of the WSDL which would still (a) let Azure APIM import it, and (b) allow the calls to successfully flow through Azure APIM at runtime?
I slimmed down the WSDL to this, but let me know if anything looks off as the original WSDL is ~5,500 lines:
<?xml version="1.0"?>
<definitions
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:s0="urn:ChestersCopperpotsServiceSoap"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:atls="http://tempuri.org/vc/atl/server/"
targetNamespace="urn:ChestersCopperpotsServiceSoap"
xmlns="http://schemas.xmlsoap.org/wsdl/"
>
<types>
<s:schema targetNamespace="urn:ChestersCopperpotsServiceSoap" attributeFormDefault="qualified" elementFormDefault="qualified">
<s:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<s:complexType name="CMessage">
<s:sequence>
<s:element name="Code" type="s:int"/>
<s:element name="Text" type="s:string"/>
</s:sequence>
</s:complexType>
<s:complexType name="GetMessages_return_Array">
<s:complexContent>
<s:restriction base="soapenc:Array">
<s:attribute ref="soapenc:arrayType" wsdl:arrayType="s0:CMessage[]"/>
</s:restriction>
</s:complexContent>
</s:complexType>
<s:complexType name="MyHeader">
<s:sequence>
<s:element name="m_SessionID" type="s:string"/>
</s:sequence>
</s:complexType>
</s:schema>
</types>
<message name="GetMessagesIn">
</message>
<message name="GetMessagesOut">
<part name="return" type="s0:GetMessages_return_Array"/>
</message>
<message name="m_Header">
<part name="m_Header" type="s0:MyHeader"/>
</message>
<portType name="ChestersCopperpotsServiceSoap">
<operation name="GetMessages">
<input message="s0:GetMessagesIn"/>
<output message="s0:GetMessagesOut"/>
</operation>
</portType>
<binding name="ChestersCopperpotsServiceSoap" type="s0:ChestersCopperpotsServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
<operation name="GetMessages">
<soap:operation soapAction="#GetMessages" style="rpc"/>
<input>
<soap:body use="encoded" namespace="urn:ChestersCopperpotsService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
<soap:header message="s0:m_Header" part="m_Header" use="encoded" namespace="urn:ChestersCopperpotsService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded" namespace="urn:ChestersCopperpotsService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
<soap:header message="s0:m_Header" part="m_Header" use="encoded" namespace="urn:ChestersCopperpotsService" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="ChestersCopperpotsService">
<port name="ChestersCopperpotsServiceSoap" binding="s0:ChestersCopperpotsServiceSoap">
<soap:address location="http://localhost:80/ChestersCopperpots/ccSOAP.dll?Handler=Default"/>
</port>
</service>
</definitions>
Full message stack from Azure APIM is:
Informational: ParsingXMLStarted : Started parsing XML
Informational: ParsingXMLComplete : Completed parsing XML
Verbose: WsdlImportRuleVerifyWadl11Schema : WSDL validated against XML Schema
Informational: WsdlPrecheckComplete : Completed WSDL verification. WSDL is considered valid.
Informational: WsdlParsingStarted : Service : Endpoint :
Informational: WsdlIdentification : WsdlVersion: 'Wsdl11' TargetNamespace: 'urn:ChestersCopperpotsServiceSoap'.
Informational: LoadedSchema : Target Namespace: 'urn:ChestersCopperpotsServiceSoap'.
Informational: LoadedSchemas : Loaded '1' schemas.
Informational: LoadedTypes : Loaded '0' types.
Informational: LoadedMessages : Loaded '3' messages.
Informational: LoadedInterfaces : Loaded '1' interfaces.
Informational: LoadedBindings : Loaded '1' bindings.
Informational: LoadedServices : Loaded '1' services.
Informational: WsdlParsingComplete : Parsed 1 operations and 3 messages
Informational: ApiType : Creating SOAP Passthrough API
Informational: APICreated : Name : chesterscopperpotsservice Service Url: http://localhost:80/ChestersCopperpots/ccSOAP.dll?Handler=Default
Informational: XsdParsing : Starting to parse urn:ChestersCopperpotsServiceSoap
Error: Parsing error : Line 17, position 22: Unable to import API from WSDL: Undefined complexType 'http://schemas.xmlsoap.org/soap/encoding/:Array' is used as a base for complex type restriction.
my money is on this part (which in lack of row #, I suspect this is where the error get's triggered). The SOAP-to-REST transformation in APIM only supports "embedded" arrays, whereas yours is referring to another definition ("s0.CMessage" above). Try replacing that bit with
<s:complexType name="GetMessages_return_Array">
<sequence>
<element name="ArrayOfCMessages" type="CMessage" minOccurs="1" maxOccurs="1"/>
</sequence>
</s:complexType>
After updating Android studio 3.2.1. i am facing above issue
i had go through com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed after updating android studio but no useful.
Previously i have faced Build errors after Android Studio 3.2.1 upgrade issue after adding this lines project level gridle iam getting above issue
buildscript {
repositories {
google() // <--here
}
}
allprojects {
repositories {
google() // <-- here
}
}
This is the Error log :
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
Output: warn: removing resource com.viotalk:string/account_settings_confirm_password without required default value.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3510: error: style attribute 'attr/attr/color_text_primary (aka com.viotalk:attr/attr/color_text_primary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3511: error: style attribute 'attr/attr/color_text_secondary (aka com.viotalk:attr/attr/color_text_secondary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3513: error: style attribute 'attr/attr/color_background_primary (aka com.viotalk:attr/attr/color_background_primary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3514: error: style attribute 'attr/attr/color_background_secondary (aka com.viotalk:attr/attr/color_background_secondary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3516: error: style attribute 'attr/attr/infocard_border (aka com.viotalk:attr/attr/infocard_border)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3517: error: style attribute 'attr/attr/divider (aka com.viotalk:attr/attr/divider)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3519: error: style attribute 'attr/attr/ic_send_cancel_offline (aka com.viotalk:attr/attr/ic_send_cancel_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3520: error: style attribute 'attr/attr/ic_send_location_offline (aka com.viotalk:attr/attr/ic_send_location_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3521: error: style attribute 'attr/attr/ic_send_photo_offline (aka com.viotalk:attr/attr/ic_send_photo_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3522: error: style attribute 'attr/attr/ic_send_picture_offline (aka com.viotalk:attr/attr/ic_send_picture_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3523: error: style attribute 'attr/attr/ic_send_text_offline (aka com.viotalk:attr/attr/ic_send_text_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3524: error: style attribute 'attr/attr/ic_send_voice_offline (aka com.viotalk:attr/attr/ic_send_voice_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3526: error: style attribute 'attr/attr/ic_attach_camera (aka com.viotalk:attr/attr/ic_attach_camera)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3527: error: style attribute 'attr/attr/ic_attach_document (aka com.viotalk:attr/attr/ic_attach_document)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3528: error: style attribute 'attr/attr/ic_attach_location (aka com.viotalk:attr/attr/ic_attach_location)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3529: error: style attribute 'attr/attr/ic_attach_photo (aka com.viotalk:attr/attr/ic_attach_photo)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3530: error: style attribute 'attr/attr/ic_attach_record (aka com.viotalk:attr/attr/ic_attach_record)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3532: error: style attribute 'attr/attr/icon_add_group (aka com.viotalk:attr/attr/icon_add_group)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3533: error: style attribute 'attr/attr/icon_add_person (aka com.viotalk:attr/attr/icon_add_person)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3534: error: style attribute 'attr/attr/icon_cancel (aka com.viotalk:attr/attr/icon_cancel)' not found.
Command: /Users/user/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/bde3fad980e487b411c5a0ae6f8ff6d1/aapt2-3.2.1-4818971-osx/aapt2 link -I\
/Users/user/Library/Android/sdk/platforms/android-28/android.jar\
--manifest\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml\
-o\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_\
-R\
#/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r\
--proguard-main-dex\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/legacy_multidex_aapt_derived_proguard_rules/debug/processDebugResources/manifest_keep.txt\
--custom-package\
com.viotalk\
-0\
apk\
--output-text-symbols\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/symbols/debug/R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
Output: warn: removing resource com.viotalk:string/account_settings_confirm_password without required default value.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/color_text_primary (aka com.viotalk:attr/attr/color_text_primary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/color_text_secondary (aka com.viotalk:attr/attr/color_text_secondary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/color_background_primary (aka com.viotalk:attr/attr/color_background_primary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/color_background_secondary (aka com.viotalk:attr/attr/color_background_secondary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/infocard_border (aka com.viotalk:attr/attr/infocard_border)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/divider (aka com.viotalk:attr/attr/divider)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_send_cancel_offline (aka com.viotalk:attr/attr/ic_send_cancel_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_send_location_offline (aka com.viotalk:attr/attr/ic_send_location_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_send_photo_offline (aka com.viotalk:attr/attr/ic_send_photo_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_send_picture_offline (aka com.viotalk:attr/attr/ic_send_picture_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_send_text_offline (aka com.viotalk:attr/attr/ic_send_text_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_send_voice_offline (aka com.viotalk:attr/attr/ic_send_voice_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_attach_camera (aka com.viotalk:attr/attr/ic_attach_camera)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_attach_document (aka com.viotalk:attr/attr/ic_attach_document)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_attach_location (aka com.viotalk:attr/attr/ic_attach_location)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_attach_photo (aka com.viotalk:attr/attr/ic_attach_photo)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/ic_attach_record (aka com.viotalk:attr/attr/ic_attach_record)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/icon_add_group (aka com.viotalk:attr/attr/icon_add_group)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/icon_add_person (aka com.viotalk:attr/attr/icon_add_person)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/src/main/res/values/themes.xml:79:5-152:13: AAPT: error: style attribute 'attr/attr/icon_cancel (aka com.viotalk:attr/attr/icon_cancel)' not found.
Command: /Users/user/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/bde3fad980e487b411c5a0ae6f8ff6d1/aapt2-3.2.1-4818971-osx/aapt2 link -I\
/Users/user/Library/Android/sdk/platforms/android-28/android.jar\
--manifest\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml\
-o\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_\
-R\
#/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r\
--proguard-main-dex\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/legacy_multidex_aapt_derived_proguard_rules/debug/processDebugResources/manifest_keep.txt\
--custom-package\
com.viotalk\
-0\
apk\
--output-text-symbols\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/symbols/debug/R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
at com.android.build.gradle.internal.res.Aapt2ErrorUtils.rewriteException(Aapt2ErrorUtils.kt:97)
at com.android.build.gradle.internal.res.Aapt2ErrorUtils.rewriteLinkException(Aapt2ErrorUtils.kt:73)
at com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask.invokeAaptForSplit(LinkApplicationAndroidResourcesTask.java:527)
at com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask.doFullTaskAction(LinkApplicationAndroidResourcesTask.java:275)
at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:106)
at sun.reflect.GeneratedMethodAccessor616.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:124)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:113)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:95)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:73)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:256)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:249)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:238)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:663)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:597)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
Output: warn: removing resource com.viotalk:string/account_settings_confirm_password without required default value.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3510: error: style attribute 'attr/attr/color_text_primary (aka com.viotalk:attr/attr/color_text_primary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3511: error: style attribute 'attr/attr/color_text_secondary (aka com.viotalk:attr/attr/color_text_secondary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3513: error: style attribute 'attr/attr/color_background_primary (aka com.viotalk:attr/attr/color_background_primary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3514: error: style attribute 'attr/attr/color_background_secondary (aka com.viotalk:attr/attr/color_background_secondary)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3516: error: style attribute 'attr/attr/infocard_border (aka com.viotalk:attr/attr/infocard_border)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3517: error: style attribute 'attr/attr/divider (aka com.viotalk:attr/attr/divider)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3519: error: style attribute 'attr/attr/ic_send_cancel_offline (aka com.viotalk:attr/attr/ic_send_cancel_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3520: error: style attribute 'attr/attr/ic_send_location_offline (aka com.viotalk:attr/attr/ic_send_location_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3521: error: style attribute 'attr/attr/ic_send_photo_offline (aka com.viotalk:attr/attr/ic_send_photo_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3522: error: style attribute 'attr/attr/ic_send_picture_offline (aka com.viotalk:attr/attr/ic_send_picture_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3523: error: style attribute 'attr/attr/ic_send_text_offline (aka com.viotalk:attr/attr/ic_send_text_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3524: error: style attribute 'attr/attr/ic_send_voice_offline (aka com.viotalk:attr/attr/ic_send_voice_offline)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3526: error: style attribute 'attr/attr/ic_attach_camera (aka com.viotalk:attr/attr/ic_attach_camera)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3527: error: style attribute 'attr/attr/ic_attach_document (aka com.viotalk:attr/attr/ic_attach_document)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3528: error: style attribute 'attr/attr/ic_attach_location (aka com.viotalk:attr/attr/ic_attach_location)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3529: error: style attribute 'attr/attr/ic_attach_photo (aka com.viotalk:attr/attr/ic_attach_photo)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3530: error: style attribute 'attr/attr/ic_attach_record (aka com.viotalk:attr/attr/ic_attach_record)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3532: error: style attribute 'attr/attr/icon_add_group (aka com.viotalk:attr/attr/icon_add_group)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3533: error: style attribute 'attr/attr/icon_add_person (aka com.viotalk:attr/attr/icon_add_person)' not found.
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3534: error: style attribute 'attr/attr/icon_cancel (aka com.viotalk:attr/attr/icon_cancel)' not found.
Command: /Users/user/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/bde3fad980e487b411c5a0ae6f8ff6d1/aapt2-3.2.1-4818971-osx/aapt2 link -I\
/Users/user/Library/Android/sdk/platforms/android-28/android.jar\
--manifest\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml\
-o\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_\
-R\
#/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r\
--proguard-main-dex\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/legacy_multidex_aapt_derived_proguard_rules/debug/processDebugResources/manifest_keep.txt\
--custom-package\
com.viotalk\
-0\
apk\
--output-text-symbols\
/Users/user/Desktop/VioTalk_Android_16Nov 2/build/intermediates/symbols/debug/R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
at com.android.builder.internal.aapt.v2.Aapt2DaemonImpl.doLink(Aapt2DaemonImpl.kt:177)
at com.android.builder.internal.aapt.v2.Aapt2Daemon.link(Aapt2Daemon.kt:103)
at com.android.builder.internal.aapt.v2.Aapt2DaemonManager$LeasedAaptDaemon.link(Aapt2DaemonManager.kt:176)
at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:823)
at com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask.invokeAaptForSplit(LinkApplicationAndroidResourcesTask.java:525)
... 49 more
Please help me ?
I have the following Spring Integration configuration for inbound channel Adaptor:
<bean id="inputQueue"
class="org.apache.activemq.command.ActiveMQQueue">
<constructor-arg value="INBOUND.QUEUE" />
</bean>
<int:channel id="inputChannel">
<int:queue ref="inputQueue"></int:queue>
</int:channel>
<jms:inbound-channel-adapter
channel="inputChannel" connection-factory="activemqConnectionFactory"
destination-name="inputQueue"></jms:inbound-channel-adapter>
I am facing issues while starting the application as it is unable to create the inputChannel bean. Please help.
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'inputChannel': Unsatisfied dependency expressed through constructor parameter 0: Could not convert argument value of type [org.apache.activemq.command.ActiveMQQueue] to required type [java.util.Queue]: Failed to convert value of type 'org.apache.activemq.command.ActiveMQQueue' to required type 'java.util.Queue'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'org.apache.activemq.command.ActiveMQQueue' to required type 'java.util.Queue': no matching editors or conversion strategy found
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:697) ~[spring-beans-5.0.5.RELEASE.jar:5.0.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:192) ~[spring-beans-5.0.5.RELEASE.jar:5.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1270) ~[spring-beans-5.0.5.RELEASE.jar:5.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1127) ~[spring-beans-5.0.5.RELEASE.jar:5.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:541) ~[spring-beans-5.0.5.RELEASE.jar:5.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501) ~[spring-beans-5.0.5.RELEASE.jar:5.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.5.RELEASE.jar:5.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-5.0.5.RELEASE.jar:5.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[spring-beans-5.0.5.RELEASE.jar:5.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.5.RELEASE.jar:5.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:760) ~[spring-beans-5.0.5.RELEASE.jar:5.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869) ~[spring-context-5.0.5.RELEASE.jar:5.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.0.5.RELEASE.jar:5.0.5.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-2.0.1.RELEASE.jar:2.0.1.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395) [spring-boot-2.0.1.RELEASE.jar:2.0.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) [spring-boot-2.0.1.RELEASE.jar:2.0.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255) [spring-boot-2.0.1.RELEASE.jar:2.0.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243) [spring-boot-2.0.1.RELEASE.jar:2.0.1.RELEASE]
at com.example.demo.Example1Application.main(Example1Application.java:12) [classes/:na]
The "org.apache.activemq.command.ActiveMQQueue doesn’t implement Java.util.Queue. That is what you have in the stack trace so far. On the other hand you don’t need to ad that <queue> declaration to the channel: you define a JMS Channel Adapter to deal with ActiveMQ.
Another your problem that you declare a destination-name="inputQueue", where it is a bean name. You should consider to use just destination which is indeed a reference to a bean, or really just use that INBOUND.QUEUE in this destination-name.
I'm having some problems with Hazelcast deserialize. I don't know why it is happening to me.
When I build my project with Maven I can see the next error code:
GRAVE: Failed to execute callback: com.hazelcast.client.proxy.ClientMapProxy$1#382710c7! Request: com.hazelcast.map.impl.client.MapGetRequest#cbe959e, response: HeapData{type=- 25,
hashCode=1128451374, partitionHash=1128451374, dataSize=89, heapCost=117}
com.hazelcast.nio.serialization.HazelcastSerializationException: Failed to deserialize enum: com.grupo.exception.ExceptionCauseEnum
at com.hazelcast.nio.serialization.DefaultSerializers$EnumSerializer.read(DefaultSerializers.java:243)
at com.hazelcast.nio.serialization.DefaultSerializers$EnumSerializer.read(DefaultSerializers.java:225)
at com.hazelcast.nio.serialization.StreamSerializerAdapter.toObject(StreamSerializerAdapter.java:65)
at com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:260)
at com.hazelcast.client.spi.impl.ClientCallFuture$1.run(ClientCallFuture.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76)
at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92)
Caused by: java.lang.ClassNotFoundException: com.grupo.exception.ExceptionCauseEnum
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
at com.hazelcast.nio.ClassLoaderUtil.tryLoadClass(ClassLoaderUtil.java:124)
at com.hazelcast.nio.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:113)
at com.hazelcast.nio.serialization.DefaultSerializers$EnumSerializer.read(DefaultSerializers.java:241)
... 9 more
ExceptionCauseEnum is in my classpath.
My Hazelcast instance configuration (just in case it is useful):
<hz:hazelcast id="instance">
<hz:config>
<hz:group name="${name}"
password="${pass}" />
<hz:network port="23456"
port-auto-increment="true">
<hz:join>
<hz:multicast
enabled="false"
multicast-group="${multicast-group}"
multicast-port="${multicast-port}" />
<hz:tcp-ip enabled="true">
<hz:interface>127.0.0.1</hz:interface>
</hz:tcp-ip>
</hz:join>
<hz:interfaces enabled="false">
<hz:interface></hz:interface>
</hz:interfaces>
</hz:network>
<hz:map name="myMap" max-size="5000" max-idle-seconds="3600"
time-to-live-seconds="7200" eviction-percentage="25"
eviction-policy="LRU" />
</hz:config>
</hz:hazelcast>
Although Maven throws me that error, it builds correctly.
Any idea what is happening and what am I doing wrong?
Thanks in advance.
I had a similar problem: in my case my enums had a constructor, so my solution was to create a parameterless constructor.
Spring Integration and Spring Integration AMQP.
I have the following code:
<bean id="allHeadersMapper" class="org.springframework.integration.amqp.support.DefaultAmqpHeaderMapper">
<property name="requestHeaderNames" value="*" />
<property name="replyHeaderNames" value="*" />
</bean>
<int-amqp:inbound-channel-adapter channel="ResponseChannel" queue-names="OutputQueue" connection-factory="amqpConnectionFactory" error-channel="274ErrorChannel" header-mapper="allHeadersMapper" />
I am converting the EDI message to JSON and Placing in "OutputQueue" . While I try to Read the mesage from OutputQueue and Place in Channel, I try to map all standard and non Standard Header.
Eg.
[payload={abcPayload}, headers={amqp_consumerQueue=OutputQueue, amqp_receivedExchange=XExchange, VERSION_ID=1.0, amqp_contentEncoding=UTF-8, contentType=text/plain, amqp_redelivered=true, STATUS=ABC, timestamp=1432235031343, id=793599d5-6236-c6a1-717e-4f85f9cd9f7b, history=JSONChannel,ResponseLogging,FilterChannel1, amqp_receivedRoutingKey=OutputQueueKey, MESSAGE_ID=MESSAGE_ID, amqp_deliveryMode=NON_PERSISTENT, RECORD_ID=RECORD_ID, amqp_consumerTag=amq.ctag-7jyApLDNT5s_HbxOU8gkPQ, FLOW_NAME=BCD, amqp_deliveryTag=1}]
I am getting the Exception:
Incorrect type specified for header 'history'. Expected [class org.springframework.integration.history.MessageHistory] but actual type is [class java.util.ArrayList]