如何修复AEM 6.1上挂钩拒绝的Bundle安装

时间:2016-10-13 17:25:30

标签: maven aem

我一直在尝试从Maven构建这个包,但它失败了。即使手动尝试从felix控制台上传也无济于事。我尝试从/ apps / project / install和installploy下的安装位置删除jar。但没有运气。下面是堆栈跟踪。曾经在早期版本中工作的那个。

任何帮助将不胜感激

extern crate libc;

use std::thread;
use std::thread::JoinHandle;
use std::os::unix::thread::JoinHandleExt;
use libc::pthread_join;
use libc::c_void;
use std::ptr;
use std::time::Duration;

pub struct WorkerPool {
    pub join_handles: Vec<JoinHandle<()>>
}

impl WorkerPool {

    ///
    /// Does the actual ingestion
    ///
    pub fn ingest(&mut self) {

        // Use 9 threads for an example.
        for i in 0..10 {
            self.join_handles.push(
                thread::spawn(move || {

                    // Get the videos
                    println!("Getting videos for thread {}", i);
                    thread::sleep(Duration::new(5, 0));
                })
            );
        }
    }

    ///
    /// Joins all threads
    ///
    pub fn terminate(&mut self) {
        println!("Total handles: {}", self.join_handles.len());

        for handle in &self.join_handles {
            println!("Joining thread...");

            unsafe {
                let mut state_ptr: *mut *mut c_void = 0 as *mut *mut c_void;
                pthread_join(handle.as_pthread_t(), state_ptr);
            }
        }

        self.join_handles = vec![];
    }
}

1 个答案:

答案 0 :(得分:0)

我已经尝试了所有事情。最后,这对我有用。

  • 我转到捆绑包的安装文件夹,说/ apps / myproject / install并将其删除。
  • 然后我去了/ system / console / bundles,发现即使将其删除后,我的捆绑包仍在那里显示。因此,我也从捆绑软件控制台中将其删除。
  • 最后我做了一个新的Maven构建。一切正常。

结论:那是一个陈旧的捆绑包。您只需要完全摆脱它,然后再安装一个即可!

可能对您不起作用。但这值得一试。